1

我正在使用 javascript 来提取从 XML 文档返回的数据。在这个 XML 文件中是可能有 XHTML 标记的元素。当 XHTML 被 CDATA 标记包围时,或者当我手动输入 </> 时,节点值都不会显示。当元素内没有 XHTML 格式时,节点值显示正常。

<note title="criteria">
 <ul>
  <li>If patient has wide complex tachycardia and is pulseless, see VF/Pulseless VT protocol</li>
  <li>Stable VT protocol - Asymptomatic or minor symptoms (palpitations, heart racing, etc.)</li>
  <li>Unstable VT protocol – <u>HR&gt;150</u> with altered mental status changes, chest pain, hypotension, shock symptoms (cap refill &gt; 2 sec, poor peripheral pulses, cool distal extremities, diaphoresis).</li>
 </ul>
 </note>

我试图不使用 XSLT,但还有其他方法可以做到这一点吗?

4

1 回答 1

0

我建议您查看Embedded HTML Tags Inside XML - Dev Shed并查看IE XML Data Island Functionality in NS6+ Browsers

于 2009-10-25T23:47:16.873 回答