retriving XML tags from response xml using pl/sql [message #421105] |
Fri, 04 September 2009 04:46 |
rammohangowd
Messages: 2 Registered: September 2009 Location: India
|
Junior Member |
|
|
I am trying to get the node list length from response xml. but it is giving error like..n1 is used but not declared. how can i extract namespace xml tags in pl/sql..
below is the code snippet which am trying to use for to get the length....
vdomnodelist := xslprocessor.selectNodes(xmldom.makeNode(vdoc),'/env:Envelope/env:Body/n1:addressMatchReturn');
htp.p('<br>node list length = '||xmldom.getlength(vdomnodelist));
|
|
|
Re: retriving XML tags from response xml using pl/sql [message #421110 is a reply to message #421105] |
Fri, 04 September 2009 05:25 |
ThomasG
Messages: 3212 Registered: April 2005 Location: Heilbronn, Germany
|
Senior Member |
|
|
When you get an error, don't post that you get an error "like", post the EXACT error. Because with the exact error, people (including you) can look up the error. For example, here the error might be LPX-00307:
oracle ~ $ oerr LPX 00307
00307, 00000, "namespace prefix ~S used but not declared"
// *Cause: Namespace prefix is used but not declared.
// *Action: Either declare the namespace or don't use this namespace prefix.
|
|
|
|
Re: retriving XML tags from response xml using pl/sql [message #421114 is a reply to message #421111] |
Fri, 04 September 2009 05:40 |
ThomasG
Messages: 3212 Registered: April 2005 Location: Heilbronn, Germany
|
Senior Member |
|
|
OK. Errors in the >20000 range are user defined errors. That means the error handling is done by custom routines that the person that wrote the program did.
You will need to ask the person who wrote the program what the error means.
It MIGHT be that that person just did some stupid "when others" error handling that doesn't really do anything beside hide the real error. If that is the case, and the error that is hidden by it is really the LPX-00307 error, then the cause woudl be that the n1 name space is not defined in the DTD of the XML.
|
|
|
|