MySQL Forums
Forum List  »  Connector/Node.js

How to select an XML attribut with SQL
Posted by: Ray Ramsaroop
Date: September 09, 2012 02:38AM

Hi,

I am parsing out XML data, using ExtractValue:

SELECT ExtractValue(xmlfield,'//xmlstring') FROM exampletbl

<exmpltag attribut="attvalue1234">nodevalue1234</exmpltag>

Now i want to select the attribut Value (attvalue1234). ExtractValue returns only the tag value (nodevalue1234).

Is it possible to extract the value of anattribut with SQL ?

thx for help
Ray

Options: ReplyQuote


Subject
Written By
Posted
How to select an XML attribut with SQL
September 09, 2012 02:38AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.