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 » Migrating to XMLNSC domain

Post new topic  Reply to topic
 Migrating to XMLNSC domain « View previous topic :: View next topic » 
Author Message
mqxplorer
PostPosted: Sun Feb 21, 2010 12:08 pm    Post subject: Migrating to XMLNSC domain Reply with quote

Master

Joined: 22 Jun 2009
Posts: 206

I have an issue while changing the existing code in XMLNS domain to XMLNSC.

I have the below code for XMLNS domain set on MQInput node.

Code:
CREATE FIELD OutputRoot.XMLNS.TestCase.Division[1].Number TYPE NameValue VALUE 'Premiership';


and the output is--

Quote:
<TestCase>
<Division Number="Premiership"/>
</TestCase>


Below code for XMLNSC domain set on MQInput node.

Code:
CREATE FIELD OutputRoot.XMLNSC.TestCase.Division[1].Number TYPE NameValue VALUE 'Premiership';


and the output is -

Quote:
<TestCase>
<Division>
<Number>Premiership</Number>
</Division>
</TestCase>


I am not able to understand why the resulst are different when using XMLNS and XNLNSC parsers. I have gone through the forum some documentation in info center, however, I could not get a clear idea why I am not able to get the same output with XMLNS and XMLNSC parsers. Please guide me if I have to write some extra code to achieve the same result with XMLNSC parser.


However, I could get the same output with XMLNSC domain what I am getting with the XMLNS domain set code (case 1) by using the below code.

Code:
SET OutputRoot.XMLNSC.TestCase.Division[1].(XMLNSC.Attribute)Number = 'Premiership';


The output is:

Quote:
<TestCase>
<Division Number="Premiership"/>
</TestCase>


Any help would be appreaciated.

Thanks
Back to top
View user's profile Send private message
kimbert
PostPosted: Sun Feb 21, 2010 12:45 pm    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

You should not expect to migration to XMLNSC without making code changes. XMLNSC is not code-compatible with XMLNS. As you have just discovered, XMLNSC uses different field type constants. It also builds a differently-shaped message tree. The infocenter contains a lot of information about the XML parsers, and you should read it carefully before continuing with your migration.
Your fix ( setting the field type to XMLNSC.Attribute ) is correct.
Back to top
View user's profile Send private message
mqxplorer
PostPosted: Sun Feb 21, 2010 12:53 pm    Post subject: Reply with quote

Master

Joined: 22 Jun 2009
Posts: 206

Thanks Kimbert. I will go through the info center one more time regarding this issue. If anybody has any ideads, please do post here..

Thanks
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 » Migrating to XMLNSC domain
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.