我创建了一个小的XML文件,如下所示:
<?xml version="1.0" encoding="utf-8" ?>
<Helical>
<modeA>
<thickness value = "1mm">
<kernel SMOOTH="1.0013" SMOOTH_PLUS="0.0583" STANDARD="1.0000"/>
</thickness>
<thickness value = "2mm">
<kernel SMOOTH="1.0013" SMOOTH_PLUS="0.0583" STANDARD="1.0000"/>
</thickness>
</modeA>
<modeB>
<thickness value = "0.6mm">
<kernel SMOOTH="1.0013" SMOOTH_PLUS="0.0583" STANDARD="1.0000"/>
</thickness>
<thickness value = "1.2mm">
<kernel SMOOTH="1.0013" SMOOTH_PLUS="0.0583" STANDARD="1.0000"/>
</thickness>
</modeB>
</Helical>
<AxialRebin2D>
<modeA>
<thickness value = "1.2mm">
<kernel SMOOTH="1.0013" SMOOTH_PLUS="0.0583" STANDARD="1.0000"/>
</thickness>
<thickness value = "2.4mm">
<kernel SMOOTH="1.0013" SMOOTH_PLUS="0.0583" STANDARD="1.0000"/>
</thickness>
</modeA>
<modeB>
<thickness value = "0.6mm">
<kernel SMOOTH="1.0013" SMOOTH_PLUS="0.0583" STANDARD="1.0000"/>
</thickness>
<thickness value = "1.2mm">
<kernel SMOOTH="1.0013" SMOOTH_PLUS="0.0583" STANDARD="1.0000"/>
</thickness>
</modeB>
</AxialRebin2D>
但是,当我双击它,加载IE时,网页上没有显示任何内容。我觉得我的格式一定有问题吗?我不知道如何编辑XML文件。任何人都可以指出它被弄乱的指针吗?
答案 0 :(得分:0)
您的&#34; XML&#34;不是 well-formed (因此根本不是XML),因为它有多个根元素:FATAL ERROR: Network error: Connection timed out
和Helical
。您必须删除其中一个根元素或将它们包装在一个公共根元素中。