Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
Password Reminder
Register
| FAQ | Members List | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #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
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 06:13 AM.


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