XmlWriter Run Time Exception



When I use XmlWriter to write XML file, I've encountered a following problem:


what I need to write :



<soap:Body>some xml</soap:Body>


I've tried to use XmlWriter.WriteStartElement method



XmlWriter.WriteStartElement("soap:Body")


, but I'll get a runtime exception like "Invalid name character in 'soap:Body'. The ':' character, hexadecimal value 0x3A, cannot be included in a name."


I am new to xmlwriter,I dont know about overloaded with namespace


if u konow about it Suggest way?


No comments:

Post a Comment