|
Could never figure it myself.What i did is convert
the attributes into elements,process elements then write output as an
attribute.
Hope it helps
----- Original Message -----
Sent: Tuesday, June 11, 2002 1:11P
M
Subject: XML attributes being
lost/converted to tags
Hi there,
I was wandering if someone could help. We're using the
following configuration:
MQSI
2.0.2 CSD 3 Windows NT 4 SP 6a MQSeries 5.2 CSD
1
We're sending XML messages through a
flow and having problems with the XML format. When we send a message
through a flow that will:
- Move a portion of the the XML message to the
destination list
- Create a new XML message
- Restore the XML portion from the destination
list to the outbound message
We end
up with a problem with the XML produced. For example if we send the
following XML tags in the input XML message:
<GSK.ChartOfAccounts elementName="GSK.ChartOfAccounts"
language="English" action="load"><UniqueName
class="java.lang.String">A00PC63020.1225.10</UniqueName></GSK.ChartOfAccounts>
The output message produced contains the
above tags in the following format:
<GSK.ChartOfAccounts><elementName>GSK.ChartOfAccounts></elementName><language>English</language><action>load</action><UniqueName>A00PC63020.1225.10</UniqueName></GSK.ChartOfAccounts>
The following problems exist:
attributes are sometimes converted to tags
(i.e. elementName, language, action> attributes are lost (i.e. class attribute for the UniqueName
tag)
Has anyone seen this before?
Any suggestions?
Regards,
Kulbir.
*******************************************************************
This message may contain information which is confidential and subject to legal privilege. If you are not the intended recipient, you may not peruse, use, disseminate, distribute or copy this message. If you have received this message in error, please notify the sender immediately by email, facsimile or telephone and return and/or destroy the original message.
*******************************************************************
|