Subject: Re: [xsl] remove tags + CDATA tag out of big xml file From: David Carlisle <davidc@xxxxxxxxx> Date: Fri, 29 Jan 2010 14:38:28 +0000 |
Hello,
I have a big xml feed out of my content management system that includes wysiwyg html tags inside CDATA tags.
I am looking for a way to remove the CDATA and only get the text. CURRENT: <add> <doc> <some_title>My title</some_title> <content><![CDATA[ <p>The<strong>keyword</strong> is nice to have but is not needed to include in a solr feed</p><p><table cellspacing="2" cellpadding="2" border="1" width="100%"><tbody><tr><td>Étape 1 :</td></tr> ]]></content> </doc> <doc> .... </doc> </add>
WANTED: <add> <doc> <some_title>My title</some_title> <content>The keyword is nice to have but is not needed to include in a solr feed</content> </doc> <doc> .... </doc> </add>
Cheers
________________________________________________________________________ The Numerical Algorithms Group Ltd is a company registered in England and Wales with company number 1249803. The registered office is: Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] remove tags + CDATA tag out o, bw | Thread | Re: [xsl] remove tags + CDATA tag o, Michael Ludwig |
Re: [xsl] Definite list of XSLT 2.0, max toro q | Date | [xsl] Re: Is there a forum frontend, Vladimir Nesterovsky |
Month |