Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.1k views
in Technique[技术] by (71.8m points)

the XML master tag come in the same level of the other tag

I have the below XML show the Account and all associated products bucket under it,

<ASExport>
  <Account>
    <Identifier>
      <AccountID>14555</AccountID>
      <Status>0</Status>
    </Identifier>
    <Identifier>
      <ProductID>8SSE</ProductID>
      <Status>0</Status>
    </Identifier>
    <Identifier>
      <ProductID>G34H</ProductID>
      <Status>0</Status>
    </Identifier>
    <Bucket>
      <ID>3065</ID>
      <Type>1</Type>
    </Bucket>
  </Account>
 <Account>
    <Identifier>
      <AccountID>455</AccountID>
      <Status>0</Status>
    </Identifier>
    <Identifier>
      <ProductID>333</ProductID>
      <Status>0</Status>
    </Identifier>
    <Identifier>
      <ProductID>222</ProductID>
      <Status>0</Status>
    </Identifier>
  </Account>
</ASExport>

Problem: the account come in the same level of product, and the result coming like this: Accountid ProductID 14555 Null Null 8SSE Null G34H 455 Null Null 333 Null 222

but the result should be like this: Accountid ProductID 14555 8SSE 14555 G34H 455 333 455 222

question from:https://stackoverflow.com/questions/65871412/the-xml-master-tag-come-in-the-same-level-of-the-other-tag

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...