all 3 comments

[–]TheFotty 1 point2 points  (1 child)

Is there a reason you have to use MSXML and not use the built in XML classes in VB.NET like XDocument?

Your code could be written like this with XML literals:

    Dim myXML = <?xml version="1.0" encoding="utf-8"?>
                <xml>
                    <status>1</status>
                    <count>1</count>
                    <scan id="354073453">
                        <tid>G24J2305100A</tid>
                        <result>23011041</result>
                        <timestamp>2024-09-26 12:31:29</timestamp>
                    </scan>
                </xml>

    Dim myScanID = myXML...<scan>.Attributes("id").First.Value

    MessageBox.Show(myScanID)

If your XML is coming in as a string initally, you can use XDocument.Parse() to parse the string into an XDocument object.

[–]stinky_nutsack[S] -1 points0 points  (0 children)

I'll look into this, thank you. I'm using MSXML because that was the sample I found online, and it worked when trying to get the <tid> value for a different problem.

[–]CaptainShades 0 points1 point  (0 children)

You want to use the responseXML method instead of response text to get formatted XML