Я делаю что-то неправильно, не могу захватить shipmentreceiptlineitem для добавления в первый документ, нужно ли добавить пространство имен?xdocument добавление xdocument
XDocument xdoc = XDocument.Load("FirstPart.xml");
xdoc.Root.Add(XDocument.Load("RepeatingPart.xml").Element("ShipmentReceiptLineItem").Elements());
XML, чтобы захватить из:
<tns:ShipmentReceiptNotification xmlns:dl="urn:rosettanet:specification:domain:Logistics:xsd:schema:02.18"
xmlns:tns="urn:rosettanet:specification:interchange:ShipmentReceiptNotification:xsd:schema:02.01">
<tns:ShipmentReceiptLineItem>
</tns:ShipmentReceiptLineItem>
</tns:ShipmentReceiptNotification>
Вы загружаете два документа, но вы показали только один из них - и вы не сказали, что результат сравнивается с тем, что вы хотите. –