Hi everibody.
I'm kinda new to this of XML parsing. So I'll appreciate if you can help me with this.
I need to extract some data that's inside an XML document whose structure is:
<DWDocument DW5BasketFileName="DOCU0001.001">
<FileInfos>
<ImageInfos>
<ImageInfo id="0,0,0" nPages="0">
<FileInfo fileName="PATH_1" dwFileName="FILE_NAME_1" signedFileName="FILE_NAME_2" type="normal" length="77324" />
</ImageInfo>
</ImageInfos>
</FileInfos>
<FileDatas />
<Section number="0" startPage="0" dwguid="d8a50daf-d4df-4012-ad0c-85e26a6e0755">
<Metadata version="0">
<FieldProperties>
<TextVar length="20" field="FIELD_1" id="0">9866627</TextVar>
<TextVar length="20" field="FIELD_2" id="1">78050830431</TextVar>
<TextVar length="40" field="FIELD_3" id="32">GOMEZ PADILLA</TextVar>
<TextVar length="40" field="FIELD_4" id="33">JOSSER KICO</TextVar>
<Date field="FIELD_5" id="64">1985-07-02T00:00:00</Date>
</FieldProperties>
</Metadata>
</Section>
</DWDocument>
I'm inside a Java Desktop Application. I wan't to know how to do it, And if its possible maybe a code example.
I need to extract FIELD_1 to FIELD_4 values (986627, ...) each one is a different variable.
Thanks.