ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » XML Generation with : in parent tag

Post new topic  Reply to topic
 XML Generation with : in parent tag « View previous topic :: View next topic » 
Author Message
pdmenon
PostPosted: Wed Apr 06, 2011 9:03 pm    Post subject: XML Generation with : in parent tag Reply with quote

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
View user's profile Send private message
kimbert
PostPosted: Thu Apr 07, 2011 12:52 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » XML Generation with : in parent tag
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.