I now have code which I think should work, but isn't. It returns nothing. I'm absolutely new to XML so it could just be a syntax problem.
Code:
Public Sub CreateXmlDom()
Dim xDoc As MSXML2.DOMDocument
Dim xmlNameSpaces As String
Dim xmlNodeList As MSXML2.IXMLDOMNodeList
Dim strFullFilename As String
strFullFilename = "S:\Investments\Data\Companies House\Monthly Companies House Downloads\Accounts_Monthly_Data-April2014\Prod224_0005_00011771_20131231.html"
Set xDoc = New MSXML2.DOMDocument
With xDoc
If .Load(strFullFilename) Then
.setProperty "SelectionLanguage", "XPath"
.setProperty "SelectionNamespaces", "xmlns:ns5=""http://www.xbrl.org/uk/gaap/core/2009-09-01"""
Set xmlNodeList = .SelectNodes("//ns5:CashBankInHand")
End If
End With
End Sub
Element from an XML document I am trying to select:
From the doc header:


