Verion编号XML 1.1无效 [英] Verion number XML 1.1 is invalid

查看:39
本文介绍了Verion编号XML 1.1无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好





我的代码中的这一行会导致此异常



hi everyone


this line in my code causes this exception

Uri endpoint = new Uri("http://dbpedia.org");
            string query = "SELECT ?cat   WHERE { <http://dbpedia.org/resource/London> dcterms:subject ?cat .}";


       
            SparqlRemoteEndpoint source = new SparqlRemoteEndpoint(new Uri("http://dbpedia.org/sparql"), "http://dbpedia.org");
            SparqlResultSet resultSet = new SparqlResultSet();

       

            resultSet = source.=QueryWithResultSet(query);







请帮帮我

thanx




help me please
thanx

推荐答案

请看我对这个问题的评论。使用XML v.1.0。这是.NET XML工具支持的版本,例如生成器。

这个MSDN页面声明.NET(v.4.6)支持XML v.1.0:

https://msdn.microsoft.com/en-us /library/system.xml%28v=vs.110%29.aspx [ ^ ],

http://www.w3.org/TR/2006/REC-xml-20060816/ [ ^ ]。



祝你好运。

-SA
Please see my comment to the question. Use XML v.1.0. This is the version supported by .NET XML tools, such as generators.
This MSDN page states that .NET (as of v.4.6) supports XML v.1.0:
https://msdn.microsoft.com/en-us/library/system.xml%28v=vs.110%29.aspx[^],
http://www.w3.org/TR/2006/REC-xml-20060816/[^].

Good luck.
—SA


这篇关于Verion编号XML 1.1无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆