Hey,
then this is not strictly a bug. The spec says you can do pretty much what you want. If you want to change the behavior, then take a look at dom/impl/DOMWriterImpl.cpp around the 1350 line mark. If you feel you can come up with the change you suggest without breaking anything else I will happily take a look and commit.
Cheers,
Gareth
On 5 Aug 2004, at 11:57, T MacAdam wrote:
Yes, I do have the pretty printing feature on...
Tom.
--- Gareth Reakes <[EMAIL PROTECTED]> wrote:
http://marc.theaimsgroup.com/?l=xerces-c-dev&m=109098018927374&w=2Hi,
IIRC, we put some code in before last release that fixed a few other problems in DOMWriter. This seems to have had the effect of introducing the problem you are seeing. Do you have the pretty print feature on?
Gareth
On 5 Aug 2004, at 3:14, T MacAdam wrote:
DOMWriter.I posted a question recently regarding blank lines being introduced around CDATA sections byI didn't get any responses, and I've spent moretimeatesting things and still have no solution. The problem can easily be reproduced by simply runningsimple XML file containing a CDATA section throughtheDOMPrint sample that comes with Xerces (makingsurepretty printing is turned on). For example, mysimplestandalone="no"XML file contains:
<?xml version="1.0" encoding="UTF-8"standalone="no"?> <script> <![CDATA[Some Text]]> </script>
When I run it through DOMPrint using:
C:\>DOMPrint -wfpp=on TestSimple.xml
I get the following output:
<?xml version="1.0" encoding="UTF-8"through, I?> <script>
<![CDATA[Some Text]]>
</script>
If I save that output to a file and run itnotget even more blank lines!
I'm beginning to think it's a bug; a file shouldgrow like this when saved repeatedly should it? Ididget the latest from CVS and I began to dig intothecode differences between the two versions, butXercesis so big I didn't get very far. Could anyonepointnot ame in the right direction as to where to start looking? Also, could someone confirm whether orUnix or Linux version does the same. If not,could itbe something about end-of-line characterconversion onWindows?
Thanks in advance... Tom.
P.S. my last message is in the archives at:
---------------------------------------------------------------------
__________________________________ Do you Yahoo!? Yahoo! Mail is new and improved - Check it out! http://promotions.yahoo.com/new_mail
---------------------------------------------------------------------To unsubscribe, e-mail:[EMAIL PROTECTED]For additional commands, e-mail:[EMAIL PROTECTED]
-- Gareth Reakes, Managing Director Parthenon Computing +44-1865-811184 http://www.parthcomp.com
To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Gareth Reakes, Managing Director Parthenon Computing +44-1865-811184 http://www.parthcomp.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]