I am trying to put a username and password child into an XML element. I want it so that when the user enters their information, it will check to see if the elements exist. If it does, it will check to see if it is different. if it is different, it will update. If it doesn't exist it will create a new child.
XML:
<ServersList>
<Server>
<ServiceName>Test Service</ServiceName>
<Url requestQuery="default">http://localhost</Url>
<DefaultLayers filter="off"></DefaultLayers>
</Server>
</ServersList>
As there are many Servers, I want to search for the server with service name "Test Service", and then perform the check.
Here is the VB code that creates the DOMDOCUMENT.
Dim xmlDocServers As DOMDocument
Dim XMLFile As String
XMLFile = projectpath & "\system\WMS_Servers.xml"
If Not (ehfexist(XMLFile)) Then Exit Sub
Set xmlDocServers = New DOMDocument
xmlDocServers.async = False
xmlDocServers.resolveExternals = False
xmlDocServers.validateOnParse = False
xmlDocServers.load XMLFile
Any help would be greatly appreciated!
Thanks so much!!!