So you know how to find an Element object in your JDOM tree, and the only thing you are missing is how to get an attribute from that Element? In that case you should just look in the JDOM documentation; go to the page for Element and see if you can find a method that gets an attribute.
Joined: Jan 04, 2005
thanks, i know it and since i started this work i put it as my home page
but now i realised what i was doing wrong!! i was using the == to compare my strings!! and that doesnt work for strings so i fixed it
but my problem now is how to reach "c" of type 2 when i call element.getChild("c").getAttributeValue(), it only returns "1"! [ November 03, 2007: Message edited by: H Melua ]