all groups > dotnet xml > july 2004 >
You're in the

dotnet xml

group:

Reading Non-standard XML


Reading Non-standard XML Jim Bayers
7/26/2004 3:58:49 PM
dotnet xml:
When we send in credit card info, we get this in reply:

<auth_resp xmlns="urn:auth"><auth_info_resp
id="A1"><order_id>2XXXJl</order_id>
<shopper_id></shopper_id>
<total_amount>0.01</total_amount>
<settlement_amount>0.00</settlement_amount>
<action>X</action>
<response_code>9</response_code>
<response_desc>This order reference has already been processed .
</response_desc></auth_info_resp></auth_resp>

It's returned in xmlnode variable. We'd like to read the variables but
when I load it into an xml reader, it gives an error, saying the file isn't
Re: Reading Non-standard XML Chris Lovett
7/26/2004 11:24:34 PM
There isn't anything wrong with this XML as far as I can see. Can you
provide more info, for example the entire file and the code you are using to
load it?

[quoted text, click to view]

Re: Reading Non-standard XML Jim Bayers
7/27/2004 9:09:44 AM
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim stream As StringReader
Dim reader As XmlTextReader = Nothing
stream = New StringReader(strxml)

stream = New StringReader(strxml)
' Load the XmlTextReader from the stream
reader = New XmlTextReader(stream)

'FormatXml(reader)
While reader.Read()
Literal1.Text += reader.Value()

End While

reader.Close()

End Sub


"Chris Lovett" <clovett@microsoft.com.no_spam> wrote in
news:ug0jjJ6cEHA.4092@TK2MSFTNGP10.phx.gbl:

[quoted text, click to view]
AddThis Social Bookmark Button