-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>