|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
XML Generation with : in parent tag |
« View previous topic :: View next topic » |
Author |
Message
|
pdmenon |
Posted: Wed Apr 06, 2011 9:03 pm Post subject: XML Generation with : in parent tag |
|
|
 Voyager
Joined: 05 Apr 2010 Posts: 80
|
Dear Experts,
We are trying to generate an xml file like this:
Code: |
<UDF:ROOTNAME DESC="`<string1>``<String2>`" ISLIST="YES" TYPE="String">
<UDF:CSROOTNAME DESC="`<string1>``<String2>`">string</UDF:CSROOTNAME>
</UDF:ROOTNAME> |
But, the result is coming like this:
Code: |
<NS4:ROOTNAME xmlns:NS4="UDF" DESC="<string1>,<string2>" ISLIST="YES" TYPE="String">
<NS4:CSROOTNAME DESC="<string1>,<string2>">string</NS4:CSROOTNAME>
</NS4:ROOTNAME> |
Instead of "UDF:ROOTNAME" it is displaying "NS4:ROOTNAME xmlns:NS4="UDF"
We are using MB 6.1.0.4 |
|
Back to top |
|
 |
kimbert |
Posted: Thu Apr 07, 2011 12:52 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
This root tag:
Code: |
<UDF:ROOTNAME DESC="`<string1>``<String2>`" ISLIST="YES" TYPE="String"> |
is not well-formed XML, so your flow should not be attempting to output it. Try opening it in a browser, or in XMLSpy to see what the problem is.
There are a number of strange features in this document.
- UDF: looks like a namespace prefix, but there is no xmlns attribute to bind it to a namespace URI. Please explain why you need to output a tag name that contains a colon.
- the attribute looks as if it was purposely designed as a functional test for an XML parser. No problem with that, but it would be useful to know what you are trying to achieve.
Quote: |
Instead of "UDF:ROOTNAME" it is displaying "NS4:ROOTNAME xmlns:NS4="UDF" |
That's because the ROOTNAME element in the message tree has its namespace set to 'UDF'.
Please can you
a) insert a Trace node just before the output node with its pattern set to '${Root}' and post the output here.
b) describe what your message flow is doing |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|