Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: Invalid name character in 'atom:link'. The ':' character cannot be included in a name [Thread Next] Re: Invalid name character in 'atom:link'. The ':' character cannot be included in a nameTo: NULL Date: 9/11/2008 4:44:00 PM
The documentation sucks, there is an overload. Intellisense gave me the clue
but it wouldn't give me the list of overload constructors(is there a
keystroke or some way to get the list of overloads from Intellisense?)
// This is how conformance to W3C atom:link element is written using the
XmlWriter...
#region Task: <atom:link> element...
if (link.Length != 0)
writer.WriteStartElement("atom", "link", null);
writer.WriteAttributeString("href", link);
writer.WriteAttributeString("rel", "self");
writer.WriteAttributeString("type", "application/rss+xml");
writer.WriteEndElement();
#endregion
// generates the following
<atom:link href="http://somewhere.com/" rel="self"
type="application/rss+xml"/>
//still working on how to use XmlWriter using writer.WriteFullEndElement()
<atom:value>inner text</atom:value>
"Martin Honnen" <mahotrash@y...> wrote in message
news:OpaDGSDFJHA.1460@T......
> Hillbilly wrote:
>> What? I have the atom namespace declared correctly and I'm wondering why
>> the XmlWriter has a problem with this element?
>
> Can you show us your exact code that gives the error?
>
>
> --
>
> Martin Honnen --- MVP XML
> http://JavaScript.FAQTs.com/
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
