Results 1 to 2 of 2

Thread: Sanity Check Please - XML DOM getElementsByTagName

Threaded View

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 2000
    Location
    Aiken, SC
    Posts
    36

    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:
    1. Dim dxlDoc As MSXML2.DOMDocument40
    2.     Dim nodeList As MSXML2.IXMLDOMNodeList
    3.     Set dxlDoc = New MSXML2.DOMDocument40
    4.     Call dxlDoc.loadXML(getFile(strFileName))
    5.     Set nodeList = dxlDoc.documentElement.getElementsByTagName("noteinfo")
    6.     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
    Attached Files Attached Files
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width