J
Julie
Hi,
I have an xml string like so.....
<q path="bugs/bug/bugs/@bug_id=3" match="endswith" true="true" op="and">
<q path="bugs/bug/reports/@id=57" match="binary" true="true" op="and">
<q path="bugs/bug/reports/@id=21" match="partial" true="true" op="or"/>
</q>
</q>
I want to parse it so that I can then
create a query via
reading the innermost loop and then the outer loop and then the outer loop,
and creating sql queries with each pass.
like.....
SELECT * from reports r,bugs b where r.id=21 and r.id= 57 and b.bug_id = 3;
how do I parse the xml to do this ?
any help will be appreciated.
thanks.
Julie
I have an xml string like so.....
<q path="bugs/bug/bugs/@bug_id=3" match="endswith" true="true" op="and">
<q path="bugs/bug/reports/@id=57" match="binary" true="true" op="and">
<q path="bugs/bug/reports/@id=21" match="partial" true="true" op="or"/>
</q>
</q>
I want to parse it so that I can then
create a query via
reading the innermost loop and then the outer loop and then the outer loop,
and creating sql queries with each pass.
like.....
SELECT * from reports r,bugs b where r.id=21 and r.id= 57 and b.bug_id = 3;
how do I parse the xml to do this ?
any help will be appreciated.
thanks.
Julie