第2行第1列的错误:文档元素XML问题后的垃圾 [英] Error at line 2, column 1: junk after document element XML issue
问题描述
嘿,我对XML的理解几乎不存在。我正在尝试修复它,以便我可以在Autodesk3DMax中打开它并编辑网格。我一直收到错误'错误在第2行,第1列:文档元素之后的垃圾'。如果有人可以帮我修改代码,或者尽可能简单地向我解释什么是错的,我会非常感激。
我尝试过:
代码为:
Hey my understanding of XML is pretty much non-existent. I am trying to fix it so I am able to open it in Autodesk3DMax and edit the mesh. I keep getting the error 'Error at line 2, column 1: junk after document element'. If anyone could help me fix the code, or explain to me as simply as possible what is wrong I would be really grateful.
What I have tried:
The code is:
<MESH NUMSUBMESH="1"><SUBMESH NUMVERTICES="829" NUMFACES="859" NUMLODSTEPS="0" NUMSPRINGS="0" NUMMORPHS="0" NUMTEXCOORDS="1" MATERIAL="-2">
<VERTEX NUMINFLUENCES="1" ID="0">
<pos>51.6886 2.03197 1011.29
<norm>0.727597 0.395241 -0.560703
<color>0 0 0
<texcoord>0.231275 0.813344
<INFLUENCE ID="22">1
....
<FACE VERTEXID="662 827 825" />
<FACE VERTEXID="662 825 828" />
<FACE VERTEXID="646 662 828" />
</SUBMESH>
</MESH>
推荐答案
<mesh numsubmesh="1">
<submesh numvertices="829" numfaces="859" numlodsteps="0" numsprings="0" nummorphs="0" numtexcoords="1" material="-2">
<vertex numinfluences="1" id="0"><!-- No matching closing tag -->
<pos><!-- No matching closing tag -->
51.6886 2.03197 1011.29
<norm><!-- No matching closing tag -->
0.727597 0.395241 -0.560703
<color><!-- No matching closing tag -->
0 0 0
<texcoord><!-- No matching closing tag -->
0.231275 0.813344
<influence id="22"><!-- No matching closing tag -->
1
....
<face vertexid="662 827 825" />
<face vertexid="662 825 828" />
<face vertexid="646 662 828" />
</submesh><!-- No matching opening tag -->
</mesh>
查看格式良好的XML始终可以提供帮助。更好地使用XML查看器工具......
你的XML充满了格式问题 - 问题来自哪里?
Looking at your XML nicly formatted always can help. Using a XML viewer tool even better...
You XML is full of problems of formatting - the question where it come from?
这篇关于第2行第1列的错误:文档元素XML问题后的垃圾的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!