Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old December 18th, 2008, 11:28 AM
Authorized User
Points: 169, Level: 3
Points: 169, Level: 3 Points: 169, Level: 3 Points: 169, Level: 3
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2008
Location: Northampton, , United Kingdom.
Posts: 35
Thanks: 1
Thanked 0 Times in 0 Posts
Default XML Serialisation

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.
__________________
Regards,

Sean


Similar Threads
Thread Thread Starter Forum Replies Last Post
SQL Server 2005 XML: FOR XML PATH -> cdata? stoves SQL Server 2005 1 July 8th, 2008 02:40 AM
VB.net, adding XML data to an existing XML file saikoboarder XML 11 April 17th, 2008 04:19 PM
Generic List Serialisation with custom property rodmcleay C# 2005 1 April 23rd, 2007 12:52 PM
xml invalid top level from ASP write XML(solution) g000we XML 0 August 9th, 2006 03:56 AM
DTS Package, XML task. Read XML file and store it Victoria SQL Server DTS 0 July 24th, 2006 02:43 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.