Results 1 to 1 of 1

Thread: Xml Dom Problem passing through all nodes

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2003
    Posts
    175

    Xml Dom Problem passing through all nodes

    Attached 3 files
    books.xml
    xmlDomShowTree.aspx - which contains one label
    xmlDomShowTree.aspx.vb - Code behind

    i am trying to loop through the xml file with showtree(ByVal node As XmlNode) function the i passing into it xmldoc.DocumentElement object.
    in this function i have the 2 declarations

    Dim attrnode As XmlNode
    Dim map As XmlNamedNodeMap

    and map is initiated as

    map = node.Attributes

    im trying to loop the tree by the folowing loop

    For Each attrnode In map
    strOutput += "<b>" & attrnode.Name & "</b>&lt;" & attrnode.Value & "&gt;" & vbCrLf
    Next

    and it doesnt enters the for each loop - why is that??
    thnks
    Attached Files Attached Files
    Last edited by ronlahav; Jun 26th, 2005 at 02:10 AM. Reason: attaching files

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