Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Invalid name character in 'atom:link'. The ':' character cannot be included in a name

From: Martin Honnen <mahotrash@-----.-->
To: NULL
Date: 9/12/2008 2:34:00 PM

Hillbilly wrote:

   const string atom = "http://www.w3.org/2005/Atom";

> using (XmlWriter writer =
> XmlWriter.Create(writerFileMapPath, settings))
> {
> 
> writer.WriteStartDocument();
> writer.WriteStartElement("rss");
> writer.WriteAttributeString("version", "2.0");
> 
> // Atom namespace
> writer.WriteAttributeString("xmlns",
>       "atom", null,
>       "http://www.w3.org/2005/Atom");

  writer.WriteAttributeString("xmlns",
        "atom", null,
        atom);
> ...
> // W3C recommended usage for link element
> #region Task: <link> element...
> if (link.Length != 0)
>    writer.WriteStartElement("atom:link");

Use
      writer.WriteStartElement("atom", "link", atom);




-- 

	Martin Honnen --- MVP XML
	http://JavaScript.FAQTs.com/


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent