Hi Dave Kuhlman and the list,
Thanks so much for generateDS, I've been using a generateDS parser
successfully on millions of XML files.
I have a question regarding CDATA.
I'm developing in an environment where I am processing thousands of XML
files per minute and I've been using generateDS to create the parser for
processing. These files all contain a lot of CDATA and are from third
parties.
It's been fine up to now because I am only using generateDS to parse the
xml and make decisions based on that. I now have a requirement to mutate
the data loaded using parser and export new XML.
What I am finding is that the CDATA start and end markup is lost from the
exported text .
I've pasted an example at the bottom. This is all pretty much vanilla use
of generateDS, parse and export using some of the unit test XSD and XML
files.
I've read through the list archive and noted a correspondence where this is
mentioned
Are there any plans or approaches to address this in generateDS? I can see
some comments in the list archive where this issue is mentioned and that
also indicate CDATA is a poor decision and should be avoided, unfortunately
I cannot change the dependence of my system on CDATA.
Thanks in advance for any pointers.
Adrian Cook
Source XML:
<cdataListType>
<cdatalist>
<script><![CDATA[ccc < ddd & eee]]></script>
</cdatalist>
<cdatalist>
<script>aaa < bbb <![CDATA[ccc < ddd]]> eee < &
fff<<![CDATA[ggg < & hhh]]>& iii < jjj</script>
</cdatalist>
</cdataListType>
After export:
<cdataListType>
<cdatalist>
<script>ccc < ddd & eee</script>
</cdatalist>
<cdatalist>
<script>aaa < bbb ccc < ddd eee < & fff<ggg <
& hhh& iii < jjj</script>
</cdatalist>
</cdataListType>
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
generateds-users mailing list
generateds-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/generateds-users