Put this in your aspx.
StringWriter strWriter = new StringWriter();
XmlTextWriter writer = new XmlTextWriter(strWriter);
writer.WriteStartElement("SESSION_INFO_ID");
writer.WriteStartElement("TEL_NBR");
writer.WriteAttributeString("VALUE=","4258009000"
writer.WriteAttributeString("EXTN=","9000");
writer.WriteAttributeString("NAME=","Oleg Tkachenko XML MVP")
writer.WriteEndElement();
writer.WriteEndElement();
string input = strWriter.ToString();
"Oleg Tkachenko [MVP]" <oleg@NO!SPAM!PLEASEtkachenko.com> wrote in message
news:uZ**************@TK2MSFTNGP10.phx.gbl...
Pete wrote:
I don't want to argue with you but have you tried that class and writing
attributes?
Well, have I tried XmlTextWriter? Sure :) It writes wellformed XML with
no backslashes whatsoever. It's a class from System.Xml namespace, you
can trust it.
Provide more info, may be reproducible sample etc. Should be some silly
error somewhere.
Even my xsl transformation wouldn't recognize this crap.
What do you mean exactly? Any exceptions?
--
Oleg Tkachenko [XML MVP]
http://blog.tkachenko.com