B
BeGreen
Hi All,
I am trying to read the xml file below using java/xml API, such as
DocumentBuilderFactory, DocumentBuilder and so on.
Do you know if there is any java/xml class, I can use to be able to
ignore the first record below which doesn't have any weight value. The
tag is: <weight/>
<?xml version="1.0" encoding="ISO-8859-1" ?>
<root>
<Record>
<PartNo>01</PartNo>
<weight/>
<Record>
<Record>
<PartNo>02</PartNo>
<weight>A</weight>
</Record>
</root>
I am trying to read the xml file below using java/xml API, such as
DocumentBuilderFactory, DocumentBuilder and so on.
Do you know if there is any java/xml class, I can use to be able to
ignore the first record below which doesn't have any weight value. The
tag is: <weight/>
<?xml version="1.0" encoding="ISO-8859-1" ?>
<root>
<Record>
<PartNo>01</PartNo>
<weight/>
<Record>
<Record>
<PartNo>02</PartNo>
<weight>A</weight>
</Record>
</root>