Jump to content
Sign in to follow this  
chanveil

how to select certain xml group based on attribute id and return as xmltype

Recommended Posts

hi,i have an xmltype column name "NM" in table "XMLTEST", the content of the xml in NM is<ct><sp id="ALEX"><sp id="JOHN"><sp id="MIKE"><sp id="CALEB"/><sp id="PAUL"/></sp></sp><sp id="MAX"><sp id="WAYNE"/></sp><sp id="MAX"/></sp></ct>The group i want to select is ALEX except group "MIKE" and "MAX", which return<ct><sp id="ALEX"><sp id="JOHN"/><sp id="SEAN"/></sp></ct>Is it possible? i'm processing this using stored procedure PL/SQL, my environment is 11g R2 Win 32bit.please advice

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...