Take a look at this updated version of your BuildDone Sub:
Public Sub XOM_BuildDone(XOM_Doc As XOMDocument, Tag As Object)
If XOM_Doc.IsInitialized Then
Dim NameSpace As String="urn:schemas-upnp-org:device-1-0"
' Get root node and find children nodes itteratively
Dim rootNode As XOMElement=XOM_Doc.RootElement
GetChildren(rootNode, 0)
' Now try and find first child element called friendlyName
Dim node As XOMElement=rootNode.GetFirstChildElementByNameAndNamespace("device", NameSpace)
Log(node.GetFirstChildElementByNameAndNamespace("friendlyName", NameSpace).Value)
Else
Log("XOM_Doc is not initialized: "&LastException)
End If
End Sub
It works!
First check if the XOMDocument is initialized - don't check if it's Null.
(I think i updated the library at some point and probably didn't post details on the forum
).
Next you need to use the methods which accept a namespace.
As for case of element names - there's no easy solution for you here.
XML is case sensitive and can't be treated as case insensitive.
Martin.