message with duplicateed key

Home Page Forums BizTalk 2004 – BizTalk 2010 message with duplicateed key

Viewing 1 reply thread
  • Author
    Posts
    • #13878

      Hi,

      lets say we have an xml like:


      <someKey>
      <key1>1</key1>
      </somekey>
      <someKey>
      <key1>2</key1>
      </somekey>

      so we want to get a collection of soemKey values instead of only one. I created typical xsd schema like:

      <xs:element name=\”someKey\”>
      <xs:complexType>
      <xs:sequence>
      <xs:element name=\”key1\” type=\”xs:int\” />
      </xs:sequence>
      </xs:complexType>
      </xs:element>

      If I try to access xml message in expression shape, i get only the last key1 value. How to get all values ? Should I change the xsd schema ? There is no error but as I said, only last value is accessible.

      Thanks

    • #13879

      I have a proper message msgData and in expression make sth like msgData(myNameSpace.PropertySchema.key1). And I would like to pass the key value to some variable to make some stuff. Everything works fine if the keys are unique. Hope to give you all information you wanted.

      Thanks

      Peter

      • #13880

        How are you trying to access the Xml message?
        What are you trying to do with the key values?

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.