问题描述
嗨。
i不断收到此错误。
据我所知,我的xml格式不正确。
在线勘误表示标准格式
来解决这个问题:
元素
(制表符) (tab)元素
(tab)(tab)(tab)元素/元素
(tab)(tab)(tab)元素/元素
(tab)(tab)/ element
/ element
i试图通过使用下面的行来实现这一点(xml即将到来
来自服务器):
stringbuilder.Append(Microsoft.VisualBasic.vbTab)
但是,我仍然得到错误。
我还尝试了一个xml样式表,其中style =" padding-left:n"
,这不起作用。
i继续得到那个错误。
当我提醒从服务器返回的XML时,我得到左边所有的
元素最重要的位置。没有格式化。尽管
以上两种解决方案。
我猜这出现了很多。我做错了什么?
谢谢!
不要使用字符串,使用DOM。 MSXML是显而易见的候选者,
帮助文件非常适合它。
hi.
i keep getting this error.
as i understand it, my xml isn''t formatted correctly.
the online errata suggests the standard formatting
to solve this problem:
element
(tab) (tab) element
(tab) (tab) (tab) element /element
(tab) (tab) (tab) element /element
(tab) (tab) /element
/element
i attempted to acheive this by using the below line (the xml is coming
from the server):
stringbuilder.Append(Microsoft.VisualBasic.vbTab)
but, I still get the error.
I have also tried an xml style sheet with style="padding-left:n"
and this doesnt work.
i keep getting that darn error.
when i alert the XML returned from the server, i get all
elements on the left-most position. no formatting. despite the
two solutions above.
i am guessing this comes up a lot. what am i doing wrong?
thanks!
Don''t use string, use a DOM. MSXML is the obvious candidate, and the
helpfiles are quite good for it.
这篇关于XML解析错误:文档元素之后的垃圾的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!