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 namespace

Post new topic  Reply to topic
 XML namespace « View previous topic :: View next topic » 
Author Message
neo_revolution
PostPosted: Mon Feb 23, 2004 12:04 pm    Post subject: XML namespace Reply with quote

Voyager

Joined: 21 Oct 2003
Posts: 80
Location: NJ

My XML mapping is like this

SET myOutXML.header.verion = myInXML.header."ns:version";


my input XML is
<myInXML>
<header>
<ns:version xmlns:ns="http://localhost/">2</ns:version>
</header>
</myInXML>


my output XML is
<myOutXML>
<header>
<verion xmlns:ns="http://localhost/">2</version>
</header>
</myOutXML>

how can I remove the namespace problem for the output XML... it shouldn't appear in the output XML...

thanks in advance
Back to top
View user's profile Send private message Yahoo Messenger
neo_revolution
PostPosted: Mon Feb 23, 2004 12:39 pm    Post subject: Reply with quote

Voyager

Joined: 21 Oct 2003
Posts: 80
Location: NJ

It worked out for me this way... let me know if I am correct...

SET myOutXML.header.verion VALUE = myInXML.header."ns:version";

It is said in the latest ESQL guide...

let me know.

Thanks
Back to top
View user's profile Send private message Yahoo Messenger
wooda
PostPosted: Tue Feb 24, 2004 3:03 am    Post subject: Reply with quote

Master

Joined: 21 Nov 2003
Posts: 265
Location: UK

Your new approach is correct.

Because...

Code:
SET myOutXML.header.version = myInXML.header."ns:version";


will copy all of ns:version to the output version.
This will include all attributes.
And therefore include the xmlns attribute.

Code:
SET myOutXML.header.version VALUE = myInXML.header."ns:version";


Will copy only the value and therefore not the attributes.

xmlns is just another attribute.
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 namespace
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.