Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Dim xml_doc As New DOMDocument
Dim nde_Asset As IXMLDOMNode
Dim nde_Dividend As IXMLDOMNode
xml_doc.Loadxml (xml_Http.ResponseText) ' response text is the xml file being returned
For Each nde_Asset In xml_doc.selectNodes("//Asset")
str_FundCode = nde_Asset.selectSingleNode("FundCode").Text
str_distribution = nde_Asset.selectSingleNode("IncomeDistribution").Text
etc etc
For Each nde_Asset In xml_doc.selectNodes("//Asset")
with Sheet1
.cells(intR,1 = nde_Asset.selectSingleNode("FundCode").Text
.cells(intR,2) = str_distribution = nde_Asset.selectSingleNode("IncomeDistribution").Text
end with
IntR = intR + 1
Next
<?xml version="1.0" encoding="ISO-8859-1" ?>
<test date="01/10/2008" resultsguid="0000033yagow¨s`7">
<settings>
<tag name="AssetID_SN" type="string" />
<tag name="IsThreeWinding" type="float">0</tag>
</settings>
<nameplate>
<tag name="AllowedError" type="string">0.75</tag>
<tag name="Bil" type="string" />
<tag name="COOLANT" type="string">OIL</tag>
<tag name="Gallons" type="string" />
<tag name="MFR_YEAR_STR" type="string" />
<tag name="MiscFld1" type="string" />
<tag name="PriOnOffLoad" type="string">Off Load</tag>
<tag name="PriTapSetting" type="string" />
<tag name="Reason" type="string">Routine</tag>
<tag name="SecOnOffLoad" type="string" />
<tag name="SecTapSetting" type="string" />
<tag name="SerNo" type="string" />
<tag name="TankType" type="string">SEALED</tag>
</nameplate>
</test>
</xml>
Sub ReadXML()
Dim xml_doc As New DOMDocument
Dim nde_test As IXMLDOMElement
Dim nde_test2 As IXMLDOMElement
xml_doc.Load "C:\Test\test.xml"
For Each nde_test In xml_doc.selectNodes("//test")
Debug.Print nde_test.selectSingleNode("nameplate").Text
Next
End Sub