Read XML using VB6 DOM 4.0 with Namespaces - See Sample XML 
Author Message
 Read XML using VB6 DOM 4.0 with Namespaces - See Sample XML

Here is the XML sample

<?xml version='1.0' encoding='UTF-8'?>
<nvd xmlns:xsi=" http://www.*-*-*.com/ ;
        xmlns:rec=" http://www.*-*-*.com/ "
        xmlns:cvss=" http://www.*-*-*.com/ ">

    <entry id="01-2345">
        <rec:summary>Misc Summary</rec:summary>

Can someone describe how I would get access to the elements in the
"base_metrics" section.  I can read the last modified date element...  but
can't seem to dig down to the lower elements with the additional namespace.

here is a segment of my code

      docXML.setProperty "SelectionNamespaces",
"xmlns:rec="" http://www.*-*-*.com/ """

      Set objChild = objNode.selectSingleNode("rec:" &
      tDate = objChild.Text
      vDetail.LastModifiedDate = Left(tDate, InStr(1, tDate, "T") - 1)

But any attempts to read anything deeper fails.

Could someone help resolve this issue???


Wed, 30 Jan 2013 03:09:03 GMT  
 [ 1 post ] 

 Relevant Pages 

1. msxml DOM: reading each element in an XML

2. XML/DOM in VB6

3. how to read xml file using vb6?

4. how to read xml file using vb6?

5. XML: Using XPath navigation to enumerate certain xml nodes

6. VB6 addin to build class code based on XML sample

7. VB sample code using MS XML Parser?

8. loading xml dom from vba string

9. Sending XML string to server and recieving without DOM objects

10. XML DOM object return from function

11. Client-side vbscript to process XML DOM

12. XML as string vs as DOM


Powered by phpBB® Forum Software