6 #include <xercesc/util/XMLUniDefs.hpp>
7 #include <xercesc/sax2/Attributes.hpp>
8 #include <xercesc/sax/SAXParseException.hpp>
9 #include <xercesc/sax/SAXException.hpp>
12 #include <strstream.h>
15 fFormatter(encodingName, this, XMLFormatter::NoEscapes, unRepFlags),
29 out.write ((
char *) toWrite, (
int) count) ;
44 const XMLCh*
const qName,
const Attributes& attributes)
48 fFormatter << localname << chSpace << chColon << chLF ;
50 unsigned int len = attributes.getLength();
51 for (
unsigned int index = 0; index < len; index++) {
52 fFormatter << XMLFormatter::NoEscapes << chSpace ;
56 << XMLFormatter::AttrEscapes
57 << attributes.getValue(index)
58 << XMLFormatter::NoEscapes << chSpace
65 const XMLCh*
const qname)
76 fFormatter.formatBuf(chars, length, XMLFormatter::NoEscapes);
87 cerr <<
"\nError at file " <<
StrX(e.getSystemId())
88 <<
", line " << e.getLineNumber()
89 <<
", char " << e.getColumnNumber()
90 <<
"\n Message: " <<
StrX(e.getMessage()) << endl;
94 cerr <<
"\nFatal Error at file " <<
StrX(e.getSystemId())
95 <<
", line " << e.getLineNumber()
96 <<
", char " << e.getColumnNumber()
97 <<
"\n Message: " <<
StrX(e.getMessage()) << endl;
101 cerr <<
"\nWarning at file " <<
StrX(e.getSystemId())
102 <<
", line " << e.getLineNumber()
103 <<
", char " << e.getColumnNumber()
104 <<
"\n Message: " <<
StrX(e.getMessage()) << endl;
void fatalError(const SAXParseException &exception)
void warning(const SAXParseException &exception)
void writeChars(const XMLByte *const toWrite)
void processingInstruction(const XMLCh *const target, const XMLCh *const data)
void characters(const XMLCh *const chars, const unsigned int length)
void error(const SAXParseException &exception)
void ignorableWhitespace(const XMLCh *const chars, const unsigned int length)
void endElement(const XMLCh *const uri, const XMLCh *const localname, const XMLCh *const qname)
void startElement(const XMLCh *const uri, const XMLCh *const localname, const XMLCh *const qname, const Attributes &attributes)
MySAXHandler(const char *const encodingName, const XMLFormatter::UnRepFlags unRepFlags, ofstream &outFile)