goaway1234
Programmer
I'm new oracle's xml capabilities, and I'm having trouble making sense of the mountains of reference material available. I've had success with a couple of very ugly attempts, but I'm sure that I'm making this much more complicated than it needs to be.
My procedure is given an xmltype such as:
Then the procedure needs to evaluate the xpath expr "/entity_list/entity[@checked=1]/@id", then return all of the id's in a varray.
Doing this on other platforms is very straightforward because you can get a dom node list from this expression, and then iterate over it. I have not been able to find such functionality in the oracle packages. What am I missing?
My procedure is given an xmltype such as:
Code:
<entity_list security_uid=n>
<entity id=1 checked=0>
<entity id=2 checked=1>
...
</entity_list>
Then the procedure needs to evaluate the xpath expr "/entity_list/entity[@checked=1]/@id", then return all of the id's in a varray.
Doing this on other platforms is very straightforward because you can get a dom node list from this expression, and then iterate over it. I have not been able to find such functionality in the oracle packages. What am I missing?