the proper way to get properties from an XML?

nacanpoex

New Member
I have the following XML file\[code\] <requesting> <performing> <properties val1="foo"/> <properties val2="foo2"/> </requesting> </performing>\[/code\]what is the proper Java way to fetch this data ? I'm getting confused :)I'm trying the following..after I loaded the xml file to a \[code\]Document dom\[/code\], I tried doing the following:\[code\]NodeList nl = dom.getElementsByTagName("requesting").item(0).getOwnerDocument(). getElementsByTagName("performing").item(0).getOwnerDocument(). getElementsByTagName("properties");\[/code\]of course i get Null.I'm missing something.. i don't know what... please assist me .any information regarding the issue would be greatly appreciated.thank youKfir
 
Back
Top