Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

extracting XML from XML 1

Status
Not open for further replies.

nikola11

Programmer
Oct 4, 2007
5
CA
example XML:
<employee>
<location>
<id>3</id>
<timezone>2</timezone>
</location>
</employee>

i need to extract the location portion (with all the child nodes) of the employee node as a string. I'm using java and xpath. i can extract a value of a node w/o a problem, but i can't extract the xml (child nodes) of a given node.

any help is greatly appreciated!

nik
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top