|
-
June 8th, 2008, 02:48 AM
#8
Re: how to read XML file in Java?
 Originally Posted by ujjvalpandya
can you please tell me what exactly your traverseSchema(doc); function does? whats code underlying? and for getting node attribute value u mention one code snippet. So, how i will get NODE element value?
you may be finding my question too silly, but i am really new to this XML READING thing.
and will it traverse node one by one ?because i want find the parent of the given attribute value.
my node structure :
....
<node id="1" name="n1" parent="p1">
<node id="2" name="n2" parent="p2">
......
my function will be like this :
if I pass "n1" it should return the "p1". and if "n2" then "p2" should be returned.
means, on passing the value of one node attribute's value, it should return the value of other attributes value , and that of the same node.
thx.i got the solution from this
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|