XDocument和文档类型定义 [英] XDocument and Document Type Definition

查看:68
本文介绍了XDocument和文档类型定义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好

推荐答案

您发布的内容看起来像是带有内部DTD子集的XML文档的开头,只缺少元素。外部DTD文件看起来会有所不同,它肯定不会有任何"<!DOCTYPE root ["。

What you posted looks like the start of an XML document with an internal DTD subset, only the elements are missing. An external DTD file would look differently, it certainly would not have any "<!DOCTYPE root [".

所以至少根据你提供的样本你有一些东西与XML类似,但不遵循XML语法规则。任何XML解析器都会拒绝这样的输入,并且不希望能够使用XML工具处理这样的输入。

So at least based on the samples you have presented you have something that is similar to XML but is not following the XML syntax rules. Any XML parser will reject such input and don't expect to be able to process such input with XML tools.


这篇关于XDocument和文档类型定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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