Link to home
Start Free TrialLog in
Avatar of darrgyas
darrgyas

asked on

Query XML in DB2

Hi all,

Is there a way to to select just particular element(s) from a VARCHAR column that contains XML?

Example:
This is in the XML column -
<msg index="2">priority</msg>

Is there a way to select just index property (returns "2"), or just value
of the <msg> tag (returns priority)?

Any help is appreciated,

Thank you
SOLUTION
Avatar of Kent Olsen
Kent Olsen
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial