Joao Scoob

Joao Scoob

  • NA
  • 18
  • 2.7k

Need some help to read this XML ....XDocument?X XmlDocument?

Nov 18 2018 12:47 PM
i have to read the nodes of this XML and store in variables, i can either use XDocument or XmlDocument, how can i accomplish this? the structure is quite complex, i don't how should i iterate over the elements..Thank you in advance.
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:csdb="http://site.de/csdb">
<soapenv:Header/>
<soapenv:Body>
<csadb:AP_002_CreateDocument>
<csadb:AP_015_Request>
<csadb:Header>
<csadb:AuthData>
<csadb:ClientId>?</csadb:ClientId>
<csadb:UserId>?</csadb:UserId>
<csadb:Pass>?</csadb:Pass>
</csadb:AuthData>
</csadb:Header>
<csadb:Order>
<csadb:OrderId>?</csadb:OrderId>
<csadb:IdBatch>?</csadb:IdBatch>
<csadb:ProductionDate>?</csadb:ProductionDate>
<csadb:ExpiryDate>?</csadb:ExpiryDate>
<csadb:ExpiryDateLP>
<csadb:dayOfMonth>?</csadb:dayOfMonth>
<csadb:monthOfYear>?</csadb:monthOfYear>
<csadb:year>?</csadb:year>
</csadb:ExpiryDate>
<csadb:Quantity>?</csadb:Quantity>
<csadb:ANumber>?</csadb:ANumber>
<csadb:Price>?</csadb:Price>
<csadb:ProductionId>?</csadb:ProductionId>
<csadb:SubProduction>?</csadb:SubProduction>
<csadb:ProductionConfiguration>?</csadb:ProductionConfiguration>
<csadb:CustomerPurchase>?</csadb:CustomerPurchase>
<csadb:Field01>?</csadb:Field01>
<csadb:Field02>?</csadb:Field02>
</csadb:Order>
</csadb:AP_015_Request>
</csadb:AP_002_CreateDocument>
</soapenv:Body>
</soapenv:Envelope>

Answers (4)