Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Aug 04, 2012 12:41 AM by Decker Dong - MSFT
Aug 01, 2012 07:17 PM|LINK
I am a new comer to the XML world and I am having some issues parsing an XML file for my console app:
here's the file
<?xml version="1.0" encoding="UTF-8" standalone="yes"
mf_xmld = New
'Load the Xml file
'Get the list of name nodes
mf_nodelist = mf_xmld.SelectNodes("/nds.MF_File/nds.Batch/nds.Package",
'Loop through the nodes
customerpackagekeyvalue = mf_node.ChildNodes.Item(0).InnerText
interceptpackagekeyvalue = mf_node.ChildNodes.Item(1).InnerText
dispositionIdvalue = mf_node.ChildNodes.Item(2).InnerText
DispositionDescriptionvalue = mf_node.ChildNodes.Item(3).InnerText
I don't have a good understanding of how this stuff works. Can anyone help me make sense of it? I just want to parse out the package information.
Aug 03, 2012 01:35 AM|LINK
Well……Your xml contents are at a mess……So please format your xml contents again as well as your codes，and then tell us what you really want to do？
Aug 03, 2012 01:18 PM|LINK
Aug 04, 2012 12:41 AM|LINK
Decker, Hey I am sorry about that. Should have cut and paste from notepad. I did find what I was doing wrong finally. I had to resolve both namespaces and use the references as qualifiers for each node I was trying to reach. Thanks for trying to help. Christmas
You should click the "Insert Code" button and paste your xml contents.