Sanity Check Please - XML DOM getElementsByTagName
Hey,
So here is my problem, I have this xml file (attached). And for some reason whenever I try to get a hold on the noteinfo Element, it won't. The problem originated in a large project I have been working on, and so I wrote this test app (also attached) to see if the problem was a bug in my other code. So here it is, anything wrong with my code? Try out the app... see what I mean... Wierd. I just wanted to run it by some other vbProgramers to be sure I am not loosing my marbles, before I re-write it to use SAX. (which I have wanted to do anyways)
VB Code:
Dim dxlDoc As MSXML2.DOMDocument40
Dim nodeList As MSXML2.IXMLDOMNodeList
Set dxlDoc = New MSXML2.DOMDocument40
Call dxlDoc.loadXML(getFile(strFileName))
Set nodeList = dxlDoc.documentElement.getElementsByTagName("noteinfo")
MsgBox nodeList.length
btw... the XML file is a Lotus Notes Document that has been exported to DXL (Domino XML)
To use the program (IRPeek) just click the Load IR button, select the xml file, then click on the test button below the treeview to test the getElementsByTagName.
Thanks,
Joey Novak
You have no idea how many idiots there are among us.
Winsock is awesome!
If you are reading this, your a geek, just face it.