Get CDATA text using xslt

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hi,<br/>
<br/>
I am trying to get the CDATA content of an XML node using XSL. <br/>
The XML currently looks like this:<br/>
<br/>
<body><br/>
<![CDATA[ This is a dummytext. <br/>
<div class="abc <br/>
<img>some img </img><br/>
<br/>
<br/>
dummy text <br/>
<br/>
]]><br/>
<br/>
</body><br/>
<br/>
My scenario is to check whether the cdata contains div tag or not.<br/>
If the div tag is there i have to check it contains image to display otherwise remove the div tag and display
<br/>
only the text out side of the div tag..<br/>
<br/>
Can we do it using XSLT?

View the full article
 
Back
Top