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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

iterate through xml get elements

Status
Not open for further replies.

plork123

Programmer
Mar 8, 2004
121
GB


hi all can someone please tell me how i convert a string to xml, so that i can iterate through it and grab the elements and their values

e.g. if my string is this
String xml = "<person><firstname>first</firstname><lastname>first</lastname></person>";

i want to iterate through to get the firstname and lastname elements and then get their vlaues

thanks for any help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top