2014-0430

操作XML时报错:The ':' character, hexadecimal value 0x3A, cannot be included in a name.

相关源代码如下:

XNamespace xnamespace = "http://www.sitemaps.org/schemas/sitemap/0.9";
XNamespace xnamespaceForBaiduMobile = "http://www.baidu.com/schemas/sitemap-mobile/1/";
XElement siteMapForArticles = new XElement(xnamespace + "urlset",
     阅读全文>>
                
标签: xml sitemap XElement XNamespace XAttribute 阅读:4619