diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2003-04-04 15:39:58 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2003-04-04 15:39:58 +0000 |
commit | b11d505fe9a69e72b9bc5d179ad3059eddad6c14 (patch) | |
tree | 4b3a35ecd0f4e66582066559585bd3914691aef1 /sax | |
parent | 1a487f043c614e8998a544fbdec445ab55a6fb48 (diff) |
INTEGRATION: CWS xmlfilter01 (1.13.20.1.8); FILE MERGED
2003/03/23 16:18:27 cl 1.13.20.1.8.1: #108138# ignore <?xml statement over ::unknown( when we already written it
Diffstat (limited to 'sax')
-rw-r--r-- | sax/source/expatwrap/saxwriter.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sax/source/expatwrap/saxwriter.cxx b/sax/source/expatwrap/saxwriter.cxx index dafb0ba6478c..1f4124663df0 100644 --- a/sax/source/expatwrap/saxwriter.cxx +++ b/sax/source/expatwrap/saxwriter.cxx @@ -2,9 +2,9 @@ * * $RCSfile: saxwriter.cxx,v $ * - * $Revision: 1.14 $ + * $Revision: 1.15 $ * - * last change: $Author: hr $ $Date: 2003-03-26 17:32:44 $ + * last change: $Author: hr $ $Date: 2003-04-04 16:39:58 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1387,6 +1387,9 @@ void SAXWriter::unknown(const OUString& sString) throw (SAXException, RuntimeExc throw SAXException(); } + if( sString.matchAsciiL( "<?xml", 5 ) ) + return; + sal_Int32 nLength(0); if (m_bAllowLineBreak) nLength = calcXMLByteLength( sString.getStr(), sString.getLength(), sal_False, sal_False ); |