Author |
Message
|
AkankshA |
Posted: Fri Feb 02, 2007 12:03 am Post subject: XML null element |
|
|
 Grand Master
Joined: 12 Jan 2006 Posts: 1494 Location: Singapore
|
Hi
env --> WBIMB v6 Oracle 9i
My input message contains following 2 tags in the body
<x:element/>
<x:element1>abc</x:element1>
In debug mode the tree shows me
....element
....element1 = abc
Now if i try to access the value of element1 it gives me something like /n/t/t/t
this gets converted to |||| when inserted in oracle...
seems like a bug to me..
Has anyone faced this before??? |
|
Back to top |
|
 |
elvis_gn |
Posted: Fri Feb 02, 2007 12:28 am Post subject: |
|
|
 Padawan
Joined: 08 Oct 2004 Posts: 1905 Location: Dubai
|
Hi Akanksha,
Does this input message of yours contain '\n' (new line)....If yes, then what parser are u using...you should use XMLNSC...or remove all the \n,\t to make the text one line...
Regards. |
|
Back to top |
|
 |
AkankshA |
Posted: Fri Feb 02, 2007 12:56 am Post subject: |
|
|
 Grand Master
Joined: 12 Jan 2006 Posts: 1494 Location: Singapore
|
I am using XMLNSC..
as i understand it should take the value of first element as null and second element as abc
the funniest observation here is
it takes the value of first element as \n\t\t\t\t\t (\n - new line character
5 \t - used for indentation in xml message before send element tag)
if i remove the indentation of xml message forcefully then it takes only \n |
|
Back to top |
|
 |
elvis_gn |
Posted: Fri Feb 02, 2007 1:32 am Post subject: |
|
|
 Padawan
Joined: 08 Oct 2004 Posts: 1905 Location: Dubai
|
Hi Akanksha,
Please post the file trace of the incoming message, and your code.
Regards. |
|
Back to top |
|
 |
kimbert |
Posted: Fri Feb 02, 2007 1:35 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Hi Akanksha
This is not your fault - you've encountered a known defect in XMLNSC. If you raise a PMR you can get an IFix for this. You should ask for a test fix for PMR 12211,999,866. |
|
Back to top |
|
 |
|