From 8abf3a7e0222e89a681c6510adbdf0578b6107a4 Mon Sep 17 00:00:00 2001 From: Rahul Jain <rahulj@apache.org> Date: Sat, 17 Jun 2000 01:58:06 +0000 Subject: [PATCH] Now output the PI's with no space between ? and target. git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@172174 13f79535-47bb-0310-9956-ffa450edef68 --- samples/DOMPrint/DOMPrint.cpp | 4 ++-- samples/SAXPrint/SAXPrintHandlers.cpp | 10 +++++++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/samples/DOMPrint/DOMPrint.cpp b/samples/DOMPrint/DOMPrint.cpp index 236553455..7c86ef7d9 100644 --- a/samples/DOMPrint/DOMPrint.cpp +++ b/samples/DOMPrint/DOMPrint.cpp @@ -98,8 +98,8 @@ // those types constants directly. // --------------------------------------------------------------------------- static const XMLCh gEndElement[] = { chOpenAngle, chForwardSlash, chNull }; -static const XMLCh gEndPI[] = { chQuestion, chCloseAngle, chSpace, chNull}; -static const XMLCh gStartPI[] = { chOpenAngle, chQuestion, chSpace, chNull }; +static const XMLCh gEndPI[] = { chQuestion, chCloseAngle, chNull}; +static const XMLCh gStartPI[] = { chOpenAngle, chQuestion, chNull }; static const XMLCh gXMLDecl1[] = { chOpenAngle, chQuestion, chLatin_x, chLatin_m, chLatin_l diff --git a/samples/SAXPrint/SAXPrintHandlers.cpp b/samples/SAXPrint/SAXPrintHandlers.cpp index 5749e8a28..9805e6949 100644 --- a/samples/SAXPrint/SAXPrintHandlers.cpp +++ b/samples/SAXPrint/SAXPrintHandlers.cpp @@ -56,6 +56,9 @@ /* * $Log$ + * Revision 1.10 2000/06/17 01:58:06 rahulj + * Now output the PI's with no space between ? and target. + * * Revision 1.9 2000/05/31 23:58:19 rahulj * Needed an explicit char* cast to get it working under Solaris. * @@ -111,8 +114,8 @@ // those types constants directly. // --------------------------------------------------------------------------- static const XMLCh gEndElement[] = { chOpenAngle, chForwardSlash, chNull }; -static const XMLCh gEndPI[] = { chQuestion, chCloseAngle, chSpace }; -static const XMLCh gStartPI[] = { chOpenAngle, chQuestion, chSpace }; +static const XMLCh gEndPI[] = { chQuestion, chCloseAngle, chNull }; +static const XMLCh gStartPI[] = { chOpenAngle, chQuestion, chNull }; static const XMLCh gXMLDecl1[] = { chOpenAngle, chQuestion, chLatin_x, chLatin_m, chLatin_l @@ -125,7 +128,7 @@ static const XMLCh gXMLDecl1[] = static const XMLCh gXMLDecl2[] = { - chDoubleQuote, chSpace, chQuestion, chCloseAngle + chDoubleQuote, chQuestion, chCloseAngle , chCR, chLF, chNull }; @@ -171,6 +174,7 @@ void SAXPrintHandlers::writeChars(const XMLByte* const toWrite) // Quite annoying, considering every other platform printed // the string with the explicit cast to char* below. cout << (char *) toWrite; + cout.flush(); } -- GitLab