Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Working with Hierarchical XML Data
Message
From
20/12/2006 04:08:19
 
 
To
19/12/2006 14:05:30
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
General information
Forum:
ASP.NET
Category:
XML
Environment versions
Environment:
VB.NET 1.1
Miscellaneous
Thread ID:
01178848
Message ID:
01179148
Views:
14
This message has been marked as the solution to the initial question of the thread.
Hi,

>Sorry... I should have specified...
>
>I need to G_BC_CAT fields for a specified date. Such a little task... but I don't really want to create a text parser to tear through it. I thought now would be a good time to figure out some unfamiliar XML fuctions.

Still not clear exactly what you want. Does something like this help:
            XmlDocument xd = new XmlDocument();
            xd.Load("e:\\tmp\\yield.xml");
            XmlNodeList nl =    xd.DocumentElement.SelectNodes("//G_NEW_DATE[BID_CURVE_DATE='05-DEC-06']//G_BC_CAT/*");
            foreach (XmlNode n in nl)
            {
                Console.WriteLine(n.Name + ":" + n.InnerText);
                // Or put in a collection or whatever....
            }
Regards,
Viv
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform