« Return to Thread: Remove CDATA Blocks via Smooks

Remove CDATA Blocks via Smooks

by orbeonX :: Rate this Message:

| View in Thread

I am trying to transform an XML document that has reoccurring CDATA blocks. The CDATA blocks can be in the value of any tag. Is there any way to remove CDATA blocks so that transformation won’t include it?

 

Example:

 

<start>

                <tag><![CDATA[String context goes here]]></tag>

                <tag>String context goes here</tag>

                <parent>

                                <child>><![CDATA[String context goes here]]></child

                </parent>

</start>

 

Thank you in advance.

 

-Patrick

 « Return to Thread: Remove CDATA Blocks via Smooks