troubleshooting Question

XML in ViBa with DOM

Avatar of LaMoS
LaMoS asked on
Visual Basic Classic
4 Comments1 Solution230 ViewsLast Modified:
Using Visual Basic together with Ms Xml 4.0 SP1

with the following xml-file:

<?xml version="1.0" ?>
<!DOCTYPE data SYSTEM "-------Censored--------">
<error code="-3002804">
<string>WARNING: vault..proc_insertMSG. Message cannot be queued. Transmission is within 60 seconds of existing entry in queue.</string>

Now, i'm looking for ways to read the <string> , but strangely it works no matter what i try, but i can't read the error code itself

VB code i have sofar:

Dim doc As New DOMDocument40
doc.async = False
doc.validateOnParse = False
doc.resolveExternals = False
xmlPath = "temp.xml"
doc.Load xmlPath
message = doc.selectSingleNode("data").Text  '<-- still gives the whole line :S

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros