From: Brian on 13 Aug 2010 15:09 Here is the XML sample <?xml version='1.0' encoding='UTF-8'?> <nvd xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rec="http://www.mysite.com" xmlns:cvss="http://myschoolsite.com"> <entry id="01-2345"> <rec:last-modified>2008-09-05T17:34:06</rec:last-modified> <rec:cvss> <cvss:base_metrics> <cvss:score>5.0</cvss:score> <cvss:grade>6th</cvss:grade> </cvss:base_metrics> </rec:cvss> <rec:summary>Misc Summary</rec:summary> </entry> </nvd> 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.mysite.com""" Set objChild = objNode.selectSingleNode("rec:" & "last-modified-datetime") 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??? Thanks,
|
Pages: 1 Prev: ActiveX EXE SingleUse Vs MultiUse Next: Microsoft may back off of .NET languages |