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.attr)"IsChanged" = 'Y';

Post new topic  Reply to topic
 (XML.attr)"IsChanged" = 'Y'; « View previous topic :: View next topic » 
Author Message
firoj.badsa
PostPosted: Mon Aug 24, 2009 11:46 pm    Post subject: (XML.attr)"IsChanged" = 'Y'; Reply with quote

Centurion

Joined: 16 Feb 2007
Posts: 104

I am creating a xml for peoplesoft. I am getting a tag (output)like ..
<ZI_FILEID>TAMTAMS 20090000001</ZI_FILEID>

I have to change this to ...
<ZI_FILEID IsChanged="Y">ADVKK104</ZI_FILEID>

I am using SET OutputRoot.MRM.ZI_FILEID.(XML.attr)"IsChanged" = 'Y';

but getting something like ..
<ZI_FILEID>
TAMTAMS 20090000001
<IsChanged>Y</IsChanged>
</ZI_FILEID>

Pls Help.
Back to top
View user's profile Send private message
kimbert
PostPosted: Tue Aug 25, 2009 12:25 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Two things you should be aware of
- You should not be using MRM XML in a new message flow. XMLNSC is the recommended parser for almost all XML processing.
- The MRM parser does not use field types ( XML.Attr ) to identify attributes. It matches the structure of the message tree against the message definition. If you insist on using MRM XML, you will have to change your message definition and make isChanged an attribute.
Back to top
View user's profile Send private message
firoj.badsa
PostPosted: Tue Aug 25, 2009 1:06 am    Post subject: Reply with quote

Centurion

Joined: 16 Feb 2007
Posts: 104

Full xsd will be too big to paste here. I am just pasting a part here. Looks like in the xsd file IsChanged defined as attribute.

<xsd:complexType name="RECORD_IDENTIFIER_TypeShape">
<xsd:simpleContent>
<xsd:extension base="RECORD_IDENTIFIER_TypeDef">
<xsd:attribute name="IsChanged" type="xsd:string" use="optional"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
<xsd:complexType name="ZI_FILEID_TypeShape">
<xsd:simpleContent>
<xsd:extension base="ZI_FILEID_TypeDef">
<xsd:attribute name="IsChanged" type="xsd:string" use="optional"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
<xsd:complexType name="JOURNAL_ID_TypeShape">
<xsd:simpleContent>
<xsd:extension base="JOURNAL_ID_TypeDef">
<xsd:attribute name="IsChanged" type="xsd:string" use="optional"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
Back to top
View user's profile Send private message
kimbert
PostPosted: Tue Aug 25, 2009 1:15 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

In that case, the structure of your message tree does not match your message definition. It's a common problem, and it proves that MRM XML is not being used correctly. You might as well use XMLNSC.
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.attr)"IsChanged" = 'Y';
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.