Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Obtain XML from QueryString

Status
Not open for further replies.

rickwat

Programmer
Nov 17, 2004
3
US
I am trying to send an XML string to another web page via the query string in VB.Net. I have created the XML string from a data set using ds.GetXML and assigned it to a string variable (strTestXML = ds.GetXML). The strTestXML is passed in the query string.

Only the first XML tag is getting received (<NewDataSet>) and nothing more. The complete strTestXML string content is:
<NewDataSet>
<Customers>
<SESSIONID>12345678914</SESSIONID>
<CUSTOMERNAME>Liz White</CUSTOMERNAME>
<CUSTOMERID>1234567894</CUSTOMERID>
<DOB>03/03/2004</DOB>
<DUMMY>1</DUMMY>
</Customers>
<Customers>
<SESSIONID>12345678925</SESSIONID>
<CUSTOMERNAME>Marian White</CUSTOMERNAME>
<CUSTOMERID>1234567815</CUSTOMERID>
<DOB>02/03/2005</DOB>
<DUMMY>2</DUMMY>
</Customers>
</NewDataSet>

I have eliminated all line feeds (vblf) prior to sending it in the URL.

Any suggestions?
rickwat
 
This is a guess, but have you tried URLEncoding the XML before stuffing it in the query string?
 
URLEncoding was the trick!

Thank you harebrain!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top