Error!
Success!

XmlTextWriter.WriteStartElement for RootElement and overriding namespa

0
kicks

XmlTextWriter.WriteStartElement for RootElement and overriding namespa  (Unpublished)

Hi there, I'm having some problems with the XMLTextWriter. On MSDN it says: Namespace Declaration Overriding with the XmlTextWriter The following code example shows how to manually override the namespace associated with a given prefix. Notice that the order value overrides the original namespace URI of 123. This allows the namespace to be redefined in a new element scope. Visual Basic w.WriteStartElement("x", "node", "123") w.WriteAttributeString("xmlns", "x", Nothing, "order") C# w.WriteStartElement("x","node","123"); w.WriteAttributeString("xmlns","x",null,"order"); So I used the following construction for the root element: lXmlWriter.WriteStartElement("MyPrefix", "RootElement", null);


Kicked By:
Drop Kicked By: