Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.1
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 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
 
Old September 6th, 2005, 07:09 PM
Registered User
 
Join Date: Sep 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to occsjediknight
Default Iterating through an XML Document

I have a rather large XML file that I am iterating through and need to return 2 sets of nodes and values. Consider this:
Code:
<OverCode>
<Products>
<Code>###</Code>
<Price>###</Price>
</Products>
----More XML Data Here----
<Shipping>
<Code>####</Code>
<Price>####</Price>
</Shipping>
</OverCode>

Now if i want to select the price from the products element i would use XpathNavigator.Select("//Shipping/Price") now say after i retrieved that value I wanted to select the price from the shipping element, do I have to redefine XpathNavigator to select the new nodes? Also take into consideration that the XML file i am working with is about 100 lines long, and I only want to pull data from 2 or 3 NodeSets, not the entire document.

"There is nothing more honorable then doing a thing well."





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Get XML Document from iFrame rvanandel Ajax 6 April 10th, 2009 05:24 AM
Problem with For loop, iterating through XML Doc rj_mayer Classic ASP XML 2 April 6th, 2004 01:16 PM
Help formatting an XML document!!! jrmsmo XML 2 February 13th, 2004 06:35 PM
xml document androger XML 2 November 19th, 2003 05:52 PM
XML Document Problem Ben Horne XML 5 November 19th, 2003 01:49 PM





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