Posted: Thu Dec 08, 2005 11:09 pm Post subject: Problem in writing element/attribute values in MRM domain
Novice
Joined: 11 Apr 2005 Posts: 22
I have a output message set which is based on xsd. In my xsd "State" is defined as both element as well as an attribute.
Example xml:
<ContractComponent State =0>
<Insured>
Person
</Insured>
<State>
Active
</State>
</ContractComponent>
In my esql I have to write a value to the element "State" under "ContractComponent", but in the output it is always writing to the Attribute "State" under "ContractComponent".
In XML domain I can use XML.Element and XML.Attribute to differentiate between the Element and the Attribute. Is there any way to achieve the same result while using MRM domain.
In XML domain I can use XML.Element and XML.Attribute to differentiate between the Element and the Attribute. Is there any way to achieve the same result while using MRM domain.
I'm afraid not. It's a known limitation of MRM XML.
I presume there's some reason why you wanted to use the MRM domain instead of XMLNS...?
I can not change the message set due to the limitations from our customer. Is there any way so that through program can I arrive at the desired output. Actually I am now supporting the existing application and I have no liberty to switch the domain.
I am seeking the help from experts so that this can be solved by changing the esql.
Does the State element get written as an Attribute when the Include element is present before it in the tree ? Or only when it is not present ?
Regardless one solution (which depending on the message set may require message set alteration) would be to use namespaces and ensure that the attribute and element were in different namespaces. But As you don't want to alter the msgset this may not be acceptable if the msg set were not already modelled this way.
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