在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:
展开 | / span> 选择 | 换行 | 行号
据推测,在上面的例子中,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.