-2
我有一個文件的XML,但我有兩個第一線奇怪,與「< S:」 我想在PHP中讀取XML數據的「< OrderList> 」。 我有搜索谷歌和其他關於肥皂,但沒有任何作品。我嘗試過,simplexml_load_file()和新的DomDocument()來解析數據... snif。XML讀數值S:信封S:身體
謝謝你的幫助。
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<GetOrderListResponse xmlns="http://www.cdiscount.com">
<GetOrderListResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<ErrorMessage i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/Cdiscount.Framework.Core.Communication.Messages"/>
<OperationSuccess xmlns="http://schemas.datacontract.org/2004/07/Cdiscount.Framework.Core.Communication.Messages">true</OperationSuccess>
<ErrorList/>
<SellerLogin>login</SellerLogin>
<TokenId>???</TokenId>
<OrderList>
<Order>
<ArchiveParcelList>false</ArchiveParcelList>
<InitialTotalAmount>3.7</InitialTotalAmount>
<OrderLineList>
<OrderLine>
<AcceptationState>RefusedBySeller</AcceptationState>
<CategoryCode>06010701</CategoryCode>
<ProductEan></ProductEan>
<ProductId>3275054001106</ProductId>
<PurchasePrice>1.2</PurchasePrice>
<Quantity>1</Quantity>
<SellerProductId>REF3275054001</SellerProductId>
<Sku>3275054001106</Sku>
<SkuParent i:nil="true"/>
<UnitShippingCharges>2.5</UnitShippingCharges>
</OrderLine>
</OrderLineList>
</Order>
</OrderList>
</GetOrderListResult>
</GetOrderListResponse>
</s:Body>
</s:Envelope>