XmlTextWriter.WriteStartElement for RootElement and overriding namespa(hockblogs.net)

submitted by hockmanhockman(505) 2 years, 1 month ago

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);

add a comment |category: |Views: 10

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

No comments so far

information Login or create an account to comment on this story