Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Working with Hierarchical XML Data
Message
De
20/12/2006 04:08:19
 
 
À
19/12/2006 14:05:30
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
XML
Versions des environnements
Environment:
VB.NET 1.1
Divers
Thread ID:
01178848
Message ID:
01179148
Vues:
15
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform