A colleague of mine is telling me that you cannot serialise the following XML (example) to return a collection of the ORDER nodes.
Code:
<MY_ORDERS>
<HEADER>
<HEADER_DETAILS note="various details in childnodes" />
</HEADER>
<ORDER>
<ORDER_DETAILS note="contains various details in childnodes" />
</ORDER>
<ORDER>
<ORDER_DETAILS note="contains various details in childnodes" />
</ORDER>
</MY_ORDERS>
And that he
must add a parent to the ORDER, such as:
Code:
<MY_ORDERS>
<HEADER>
<HEADER_DETAILS note="various details in childnodes" />
</HEADER>
<ORDERS>
<ORDER>
<ORDER_DETAILS note="contains various details in childnodes" />
</ORDER>
<ORDER>
<ORDER_DETAILS note="contains various details in childnodes" />
</ORDER>
</ORDERS>
</MY_ORDERS>
Please tell me that this is
not true ... surely .NET is clevel enough to be able to pick out a chilNode set from the first example, based on "//MY_ORDERS/ORDER" as we would used in a selectNodes from MSXML.