【发布时间】:2014-11-05 20:08:39
【问题描述】:
创建的 XML 无法在浏览器中打开并引发错误。
我的 xml:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<newsitem>
<contentmeta>
<contentCreated>05/11/2014</contentCreated>
<contentModified>05/11/2014</contentModified>
<classification1>*NULL*</classification1>
<classification2>*NULL*</classification2>
<geolocation1>*NULL*</geolocation1>
<geolocation2>*NULL*</geolocation2>
<title>1</title>
<headline>2</headline>
<subtitle>3</subtitle>
<dateline>4</dateline>
<bodytext>5 4 3 2 1<b><br>5 4 3 2</b><b><br>5 4 3</b><b><br>5 4</b><b><br>5</b> </bodytext> ---> Error in this line
<Keywords>*NULL*</Keywords>
<pdfurl>BGL_2014_11_05_AM_01_MN.PDF</pdfurl>
</contentmeta>
</newsitem>
错误: XML 页面无法显示 无法使用 XSL 样式表查看 XML 输入。请更正错误,然后单击“刷新”按钮,或稍后重试。
结束标记“b”与开始标记“br”不匹配。错误处理资源'file:///C:/Documents and Settings/admin/My Docume...
5 4 3 2 1
5 4 3 2
5 4 3
5 4
【问题讨论】:
-
关闭你的
<br>标签,否则它不是一个有效的xml。使用<br />
标签: xml