PeiYong,
sorry for waiting so long with my answer. I was very busy and couldn't get
into this issue. Thank you very much for your demo program! It helped me to
enable splitting of CDataSections in my application :-) .
But I'm still not quite satisfied. Let's suppose, I want to put the
following content into a DOM node:
]]>[LibPreLoad] ]]>]]>]]> abcdef]]>ghijk]]>
The DOMWriter gives me the following result:
<![CDATA[[LibPreLoad] ]]><![CDATA[ abcdef]]><![CDATA[ghijk]]>
i.e., encounters of the end tag "]]>" are ignored:
* when repeated ("]]>]]>]]>")
* at the beginning
I want to get the following result:
<![CDATA[]]><![CDATA[[LibPreLoad] ]]><![CDATA[]]><![CDATA[]]><![CDATA[
abcdef]]><![CDATA[ghijk]]>
Is there something I can do about it?
TIA
Martin
> -----Urspr�ngliche Nachricht-----
> Von: PeiYong PY Zhang [mailto:peiyongz_xml@;ca.ibm.com]
> Gesendet: Mittwoch, 23. Oktober 2002 20:40
> An: [EMAIL PROTECTED]
> Betreff: Re: split-cdata-sections (DOMWriter, DOMDocument)
> doesn't work
>
>
> Martin,
>
> I've looked into the issue and come up with a testing
> program, which
> creates a dom document, adds
> a CDATASection and serializes the result to the a file (to
> avoid messing up
> with error message on the screen).
>
> My conclusion is that, the DOMwriter does follow what the Specs
> requires, that is,
> .Once the slipt_cdata_section is set, it outputs multiple
> CDATASection as needed.
> .Otherwise, it stops processing (seralization).
>
> Attached is the testing program with two output files,
> each is the
> result of running with different setting of
> this feature as shown below:
>
> #1
> theSerializer->setFeature(XMLUni::fgDOMWRTSplitCdataSections, true);
> XMLFormatTarget *myFormTarget = new
> LocalFileFormatTarget("result1");
>
> #2
>
> theSerializer->setFeature(XMLUni::fgDOMWRTSplitCdataSections, false);
> XMLFormatTarget *myFormTarget = new
> LocalFileFormatTarget("result2");
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]