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!

parse xml data

Status
Not open for further replies.

Jacob438

Programmer
Jul 27, 2001
69
US
I have some data stored in a database column that looks like this in a long varchar field:

<xml><instanceID>49926</instanceID><name>Jay Bartels</name><address>555 Madison Avenue</address><phone>650 555 1212</phone><comments>Please only call in an emergency</comments></xml>

Is there a way i could easily get the data to look like this in a view:

col value
Name Jay Bartels
Address 555 Madison Avenue
Phone 650 555 1212
Comments Please only call in an emergency

So basically I'm asking if there is a way to retrieve the data from that one column, then create a view with the parsed data. Thanks,

Jacob438
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top