在html文件中使用带有命名空间的XmlReader [英] using XmlReader with namespace in a html file

查看:140
本文介绍了在html文件中使用带有命名空间的XmlReader的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我必须解析这样的事情:

Hello,
I must parse something like this:

展开 | 选择 | Wrap | 行号

推荐答案

再次问好,

没有关于它的想法?
Hello again,
no ideas about it?


你能更具体地说明你收到的错误吗?另外,是否有理由以这种方式声明命名空间而不是普通的xml / xhtml文档:

Can you be more specific about the error you are receiving? Also, is there a reason you are declaring the namespace in such a fashion instead of as a normal xml/xhtml document:

展开 | 选择 | 换行 | 行号


据推测,在上面的例子中,html文档并不是你用来实现的,因为它是不完整的。


在一个元素上声明命名空间root,是完全有效的xml,所以不应该引起任何问题。
Presumably in the example above the html document isn''t what you used for real as it''s incomplete.

Declaring the namespace on an element other than the root, is perfectly valid xml, so that shouldn''t cause any issue.


这篇关于在html文件中使用带有命名空间的XmlReader的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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