Details
-
Type: Wish
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.1
-
Component/s: None
-
Labels:None
Description
I'd like to use SaxWriter to produce part of XML file, but SaxWriter always writes xml declaration, it always calls startDocument() and endDocument(). So generated document looks like:
<?xml version="1.0"?>
<root>
<?xml version="1.0"?>
<string>a</string>
<?xml version="1.0"?>
<string>b</string>
<?xml version="1.0"?>
<string>c</string>
<?xml version="1.0"?>
<string>d</string>
</root>
Thanks.
I'll add a constructor parameter as to whether startDocument/endDocument should be called, as sometimes it makes sense.