yup ...
download this super duper book on SPRING from esnips, the link is:
http://www.esnips.com/doc/15854f63-0...24/Spring-Live
u might need to register (free) to download, try.
and lets start a beginners thread on spring...i've also just started on it. whatsay ?...
User Profile
Collapse
-
-
how to get all the values of a specific element in an XML using java
lets say i need all the values of <scopeID> element from this xml:
<?xml version="1.0"?>
<scopes>
<item>
<scope>scope1 </scope>
<description>de scription of the scope</description>
<scopeID>12vkjl asc</scopeID>
</item>
<item>
<scope>scope2 </scope>
<description>de scription of... -
yup, i'm able to read the XML ... for eg. i can get the root name using this code:
File file = new File(filePath);
DocumentBuilder Factory dbf = DocumentBuilder Factory.newInst ance();
DocumentBuilder db = dbf.newDocument Builder();
Document doc = db.parse(file);
doc.getDocument Element().norma lize();
System.out.prin tln("Root element " + doc.getDocument Element().getNo deName());...Leave a comment:
-
Parsing XML for a specific text node (someone who knows DOM, plz help)
I have this XML here:
<?xml version="1.0"?>
<scopes>
<item>
<scope>scope1 </scope>
<description>de scription of the scope</description>
<scopeID>12vkjl asc</scopeID>
</item>
<item>
<scope>scope2 </scope>
<description>de scription of the scope2</description>
<scopeID>8s9sm2 emk</scopeID>...
No activity results to display
Show More
Leave a comment: