HTML inside XML doc doesn't display properly if first text inside element
Question
I'm using javascript to pull data returned from an XML document. Inside this XML file are elements that may have XHTML tags inside of them. The nodevalue is not displaying when the XHTML is surrounded by CDATA tags nor when I enter </> manually. When there is no XHTML formatting inside an element, the nodevalue displays fine.
<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>150</u> with altered mental status changes, chest pain, hypotension, shock symptoms (cap refill > 2 sec, poor peripheral pulses, cool distal extremities, diaphoresis).</li>
</ul>
</note>
I am trying not to use XSLT but is there any way else to do this?
Solution
I suggest you to see Embedded HTML Tags Inside XML - Dev Shed and also take a look at IE XML Data Island Functionality in NS6+ Browsers.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow