Most of the time, the xml contains node attributes other than node values. The following example shows u how to get the node attributes in xml.
Continue reading JAXP – Java API for XML Parsing @ 2
Tag Archives: Java
JAXP – Java API for XML Parsing @ 1
To parse an xml in java, we can make use of the JAXP – Java API for XML Parsing. The JAXP provides 2 standards which are SAX and DOM respectively. Here is the sample code which parses an xml using the DOM standard.
Continue reading JAXP – Java API for XML Parsing @ 1