S
sam
I have the following code that I am having issues with and I was wondering
if someone could explain to me why it's doing what it's doing:
strXML =
"<EngineDocList><DocVersion>1.0</DocVersion><TimeIn></TimeIn><TimeOut></TimeOut><EngineDoc><ContentType>OrderFormDoc</ContentType>";
strXML = strXML + "<User><Name></Name><Password></Password><ClientId
DataType='S32'></ClientId></User><Instructions><Pipeline>Payment</Pipeline></Instructions><OrderFormDoc>".ToString();
strXML = strXML +
"<Mode>Y</Mode><Id></Id><Transaction><Type>Void</Type></Transaction></OrderFormDoc></EngineDoc></EngineDocList>";
xmlDocument1.async = false;
xmlDocument1.loadXML (strXML);
When the document loads the XML it looks like the following: xml
"<EngineDocList><DocVersion>1.0</DocVersion><TimeIn></TimeIn><TimeOut></TimeOut><EngineDoc><ContentType>OrderFormDoc</ContentType><User><Name>N</Name><Password>N01</Password><ClientId
DataType=\"S32\">5367</ClientId></User><Instructions><Pipeline>Payment</Pipeline></Instructions><OrderFormDoc><Mode>Y</Mode><Id>20060809
091906MKhanks</Id><Transaction><Type>Void</Type></Transaction></OrderFormDoc></EngineDoc></EngineDocList>\r\n"
string
My problem is that the DataType now has a "\" in it \"S32\" How in the
heck do I get rid of them! I am new to c# and this code works fine in
VB.net.
Any help would be greatly appreciated.
Sam
if someone could explain to me why it's doing what it's doing:
strXML =
"<EngineDocList><DocVersion>1.0</DocVersion><TimeIn></TimeIn><TimeOut></TimeOut><EngineDoc><ContentType>OrderFormDoc</ContentType>";
strXML = strXML + "<User><Name></Name><Password></Password><ClientId
DataType='S32'></ClientId></User><Instructions><Pipeline>Payment</Pipeline></Instructions><OrderFormDoc>".ToString();
strXML = strXML +
"<Mode>Y</Mode><Id></Id><Transaction><Type>Void</Type></Transaction></OrderFormDoc></EngineDoc></EngineDocList>";
xmlDocument1.async = false;
xmlDocument1.loadXML (strXML);
When the document loads the XML it looks like the following: xml
"<EngineDocList><DocVersion>1.0</DocVersion><TimeIn></TimeIn><TimeOut></TimeOut><EngineDoc><ContentType>OrderFormDoc</ContentType><User><Name>N</Name><Password>N01</Password><ClientId
DataType=\"S32\">5367</ClientId></User><Instructions><Pipeline>Payment</Pipeline></Instructions><OrderFormDoc><Mode>Y</Mode><Id>20060809
091906MKhanks</Id><Transaction><Type>Void</Type></Transaction></OrderFormDoc></EngineDoc></EngineDocList>\r\n"
string
My problem is that the DataType now has a "\" in it \"S32\" How in the
heck do I get rid of them! I am new to c# and this code works fine in
VB.net.
Any help would be greatly appreciated.
Sam