HI,
I am trying to parse an XML File some of lines are as follows
<Column Name="PROD_LINE_NAME">REFRIGERATOR</Column>
<Column Name="FINAL_PRD_DATE">2006-05-16</Column>
<Column Name="RELEASE_CODE">V</Column>
If I am using DOM Parser then It is not a problem for me.
But The XML File is very large in size, so in that case I do not think that it will be wise to use DOM Parser.
So I am trying to use SAX Parser.
BY using SAX, I am able to read the value of the element like :- REFRIGERATOR,2006-05-16,V
But I am unable to read th value of those attribute like :- PROD_LINE_NAME,FINAL_PRD_DATE,RELEASE_CODE
Some code snippet is as follows :-
document = new SAXReader.read(xmlFile);
List allNodes = document.selectNodes("Column");
Iterator itrNodes = allNodes.iterator();
while (itrNodes.hasNext()) {
Node individual = (Node) itrNodes.next();
System.out.println("Nodes are "+individual.getStringValue());
}
So can anyone help me regarding this.
Thanks and Regards
Rajesh Swain