Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

Public Types | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
FormatterToXML Class Reference

FormatterToXML formats SAX-style events into XML. More...

Inheritance diagram for FormatterToXML:
FormatterListener FormatterToHTML

Public Types

enum  eDummy { eDefaultIndentAmount = 0 }
typedef XalanVector< bool > BoolStackType
typedef XalanVector< XalanDOMChar > DOMCharBufferType
typedef XalanVector< char > ByteBufferType
- Public Types inherited from FormatterListener
enum  eFormat {
  OUTPUT_METHOD_NONE = 0, OUTPUT_METHOD_XML = 1, OUTPUT_METHOD_HTML = 2, OUTPUT_METHOD_TEXT = 3,
  OUTPUT_METHOD_DOM = 4, OUTPUT_METHOD_OTHER = 5
}
enum  eXMLVersion { XML_VERSION_1_0 = 0, XML_VERSION_1_1 = 1 }
typedef
XERCES_CPP_NAMESPACE_QUALIFIER
DocumentHandler 
ParentType
typedef unsigned int size_type

Public Member Functions

 FormatterToXML (Writer &writer, const XalanDOMString &version=XalanDOMString(XalanMemMgrs::getDummyMemMgr()), bool doIndent=false, int indent=eDefaultIndentAmount, const XalanDOMString &encoding=XalanDOMString(XalanMemMgrs::getDummyMemMgr()), const XalanDOMString &mediaType=XalanDOMString(XalanMemMgrs::getDummyMemMgr()), const XalanDOMString &doctypeSystem=XalanDOMString(XalanMemMgrs::getDummyMemMgr()), const XalanDOMString &doctypePublic=XalanDOMString(XalanMemMgrs::getDummyMemMgr()), bool xmlDecl=true, const XalanDOMString &standalone=XalanDOMString(XalanMemMgrs::getDummyMemMgr()), eFormat format=OUTPUT_METHOD_XML, bool fBufferData=true, MemoryManagerType &theManager XALAN_DEFAULT_MEMMGR)
 Constructor for customized encoding and doctype.
virtual ~FormatterToXML ()
MemoryManagerTypegetMemoryManager ()
virtual void setDocumentLocator (const LocatorType *const locator)
virtual void startDocument ()
virtual void endDocument ()
virtual void startElement (const XMLCh *const name, AttributeListType &attrs)
virtual void endElement (const XMLCh *const name)
virtual void characters (const XMLCh *const chars, const unsigned int length)
virtual void charactersRaw (const XMLCh *const chars, const unsigned int length)
 Receive notification of character data.
virtual void entityReference (const XMLCh *const name)
 Receive notification of a entityReference.
virtual void ignorableWhitespace (const XMLCh *const chars, const unsigned int length)
virtual void processingInstruction (const XMLCh *const target, const XMLCh *const data)
virtual void resetDocument ()
virtual void comment (const XMLCh *const data)
 Called when a Comment is to be constructed.
virtual void cdata (const XMLCh *const ch, const unsigned int length)
 Receive notification of cdata.
virtual WritergetWriter () const
virtual const XalanDOMStringgetDoctypeSystem () const
virtual const XalanDOMStringgetDoctypePublic () const
virtual const XalanDOMStringgetEncoding () const
virtual const XalanDOMStringgetMediaType () const
virtual int getIndent () const
const XalanDOMStringgetVersion () const
const XalanDOMStringgetStandalone () const
bool getShouldWriteXMLHeader () const
void setShouldWriteXMLHeader (bool b)
bool getStripCData () const
void setStripCData (bool b)
bool getEscapeCData () const
void setEscapeCData (bool b)
bool getDoIndent () const
void setDoIndent (bool value)
void setIndent (int value)
- Public Member Functions inherited from FormatterListener
 FormatterListener (eFormat theFormat)
virtual ~FormatterListener ()
eFormat getOutputFormat () const
 Get the output format for the instance.
eXMLVersion getXMLVersion () const
 Get the version of XML the FormatterListener is generating.
bool isXML1_1Version () const
 Determine if the version of XML output is 1.1.
const PrefixResolvergetPrefixResolver () const
 Get the PrefixResolver for the FormatterListener.
void setPrefixResolver (const PrefixResolver *thePrefixResolver)
 Set the PrefixResolver for the FormatterListener.
virtual void setDocumentLocator (const Locator *const locator)=0
virtual void startElement (const XMLCh *const name, AttributeList &attrs)=0

Static Public Member Functions

static FormatterToXMLcreate (MemoryManagerType &theManager, Writer &writer, const XalanDOMString &version=XalanDOMString(XalanMemMgrs::getDummyMemMgr()), bool doIndent=false, int indent=eDefaultIndentAmount, const XalanDOMString &encoding=XalanDOMString(XalanMemMgrs::getDummyMemMgr()), const XalanDOMString &mediaType=XalanDOMString(XalanMemMgrs::getDummyMemMgr()), const XalanDOMString &doctypeSystem=XalanDOMString(XalanMemMgrs::getDummyMemMgr()), const XalanDOMString &doctypePublic=XalanDOMString(XalanMemMgrs::getDummyMemMgr()), bool xmlDecl=true, const XalanDOMString &standalone=XalanDOMString(XalanMemMgrs::getDummyMemMgr()), eFormat format=OUTPUT_METHOD_XML, bool fBufferData=true)

Protected Types

enum  eDummyTwo { SPECIALSSIZE = 256 }
typedef void(FormatterToXML::* AccumCharFunctionType )(XalanDOMChar)
typedef void(FormatterToXML::* AccumStringFunctionType )(const XalanDOMChar *)
typedef void(FormatterToXML::* AccumDOMStringFunctionType )(const XalanDOMString &)
typedef void(FormatterToXML::* AccumArrayFunctionType )(const XalanDOMChar[], XalanDOMString::size_type, XalanDOMString::size_type)
typedef void(FormatterToXML::* FlushFunctionType )()

Protected Member Functions

void outputLineSep ()
 Output a line break.
void accumName (XalanDOMChar ch)
 Append a wide character to the buffer.
void accumContent (XalanDOMChar ch)
 Append a wide character to the buffer.
void accumName (const XalanDOMChar *chars)
 Append a null-terminated array of wide characters to the buffer.
void accumContent (const XalanDOMChar *chars)
 Append a null-terminated array of wide characters to the buffer.
void accumName (const XalanDOMChar chars[], XalanDOMString::size_type start, XalanDOMString::size_type length)
 Append an array of wide character to the buffer.
void accumContent (const XalanDOMChar chars[], XalanDOMString::size_type start, XalanDOMString::size_type length)
 Append an array of wide character to the buffer.
void accumName (const XalanDOMString &str)
 Append a string to the buffer.
void accumContent (const XalanDOMString &str)
 Append a string to the buffer.
XalanDOMString::size_type accumDefaultEscape (XalanDOMChar ch, XalanDOMString::size_type i, const XalanDOMChar chars[], XalanDOMString::size_type len, bool escLF)
 Escape and accum a character.
virtual bool accumDefaultEntity (XalanDOMChar ch, bool escLF)
 Handle one of the default entities, return false if it is not a default entity.
void initAttrCharsMap ()
 Set the attribute characters what will require special mapping.
void initCharsMap ()
 Set the output characters what will require special mapping.
void flushChars ()
 Flush the char buffer.
void flushBytes ()
 Flush the byte buffer.
void flushWriter ()
void openElementForChildren ()
bool childNodesWereAdded ()
bool shouldIndent () const
void writeParentTagEnd ()
 Check to see if a parent's ">" has been written, and, if it has not, write it.
void indent (int n)
 Prints a newline character and n spaces.
virtual void writeNormalizedChars (const XalanDOMChar ch[], XalanDOMString::size_type start, XalanDOMString::size_type length, bool isCData)
 Write normalized characters to the writer.
void writeNumberedEntityReference (unsigned long theNumber)
 Write a number into the buffer as an entity reference.
virtual void writeAttrString (const XalanDOMChar *theString, XalanDOMString::size_type theStringLength)
 Write an attribute string.
virtual void accumCommentData (const XalanDOMChar *data)
 Write the data for a comment.
- Protected Member Functions inherited from FormatterListener
void setXMLVersion (eXMLVersion theVersion)
 Set the output version during serializing.

Static Protected Member Functions

static void throwInvalidUTF16SurrogateException (XalanDOMChar ch, MemoryManagerType &theManager)
 Throw an exception when an invalid surrogate is encountered.
static void throwInvalidUTF16SurrogateException (XalanDOMChar ch, XalanDOMChar next, MemoryManagerType &theManager)
 Throw an exception when an invalid surrogate is encountered.
static void throwInvalidCharacterException (unsigned int ch, MemoryManagerType &theManager)
 Throw an exception when an invalid XML character is encountered.
static bool isUTF16Surrogate (XalanDOMChar ch)

Protected Attributes

Writer *const m_writer
 The writer where the XML will be written.
XalanOutputStream *const m_stream
 The stream where the XML will be written.
XalanDOMChar m_maxCharacter
 The maximum character size before we have to resort to escaping.
XalanDOMChar m_attrCharsMap [SPECIALSSIZE]
XalanDOMChar m_charsMap [SPECIALSSIZE]
bool m_shouldWriteXMLHeader
 If true, XML header should be written to output.
bool m_ispreserve
 State flag to tell if preservation of whitespace is important.
bool m_doIndent
 Flag to tell if indenting (pretty-printing) is on.
bool m_startNewLine
 Flag to signal that a newline should be added.
bool m_needToOutputDocTypeDecl
 Flag to tell that we need to add the doctype decl, which we can't do until the first element is encountered.
bool m_isprevtext
 State flag that tells if the previous node processed was text, so we can tell if we should preserve whitespace.
bool m_stripCData
 If true, cdata sections are simply stripped of their CDATA brackets, without escaping.
bool m_nextIsRaw
 Tell if the next text should be raw.
bool m_inCData
 Tells if we're in CData section.
bool m_encodingIsUTF
 Flag to quickly tell if the encoding is capable of full Unicode support.
const XalanDOMString m_doctypeSystem
 The System ID for the doc type.
const XalanDOMString m_doctypePublic
 The public ID for the doc type.
XalanDOMString m_encoding
 The character encoding.
int m_currentIndent
 Flag to keep track of the indent amount.
int m_indent
 Amount to indent.
BoolStackType m_preserves
 Stack to keep track of whether or not we need to preserve whitespace.
XalanDOMString m_stringBuffer
- Protected Attributes inherited from FormatterListener
const PrefixResolverm_prefixResolver

Additional Inherited Members

- Static Public Attributes inherited from FormatterListener
static const XalanDOMChar s_piTarget []
static const XalanDOMChar s_piData []
static const
XalanDOMString::size_type 
s_piTargetLength
static const
XalanDOMString::size_type 
s_piDataLength
- Static Protected Attributes inherited from FormatterListener
static const XalanDOMString s_emptyString

Detailed Description

FormatterToXML formats SAX-style events into XML.

Member Typedef Documentation

typedef void(FormatterToXML::* FormatterToXML::AccumArrayFunctionType)(const XalanDOMChar[], XalanDOMString::size_type, XalanDOMString::size_type)
protected
typedef void(FormatterToXML::* FormatterToXML::AccumCharFunctionType)(XalanDOMChar)
protected
typedef void(FormatterToXML::* FormatterToXML::AccumDOMStringFunctionType)(const XalanDOMString &)
protected
typedef void(FormatterToXML::* FormatterToXML::AccumStringFunctionType)(const XalanDOMChar *)
protected
typedef void(FormatterToXML::* FormatterToXML::FlushFunctionType)()
protected

Member Enumeration Documentation

Enumerator:
eDefaultIndentAmount 
enum FormatterToXML::eDummyTwo
protected
Enumerator:
SPECIALSSIZE 

Constructor & Destructor Documentation

FormatterToXML::FormatterToXML ( Writer writer,
const XalanDOMString version = XalanDOMString(XalanMemMgrs::getDummyMemMgr()),
bool  doIndent = false,
int  indent = eDefaultIndentAmount,
const XalanDOMString encoding = XalanDOMString(XalanMemMgrs::getDummyMemMgr()),
const XalanDOMString mediaType = XalanDOMString(XalanMemMgrs::getDummyMemMgr()),
const XalanDOMString doctypeSystem = XalanDOMString(XalanMemMgrs::getDummyMemMgr()),
const XalanDOMString doctypePublic = XalanDOMString(XalanMemMgrs::getDummyMemMgr()),
bool  xmlDecl = true,
const XalanDOMString standalone = XalanDOMString(XalanMemMgrs::getDummyMemMgr()),
eFormat  format = OUTPUT_METHOD_XML,
bool  fBufferData = true,
MemoryManagerType &theManager  XALAN_DEFAULT_MEMMGR 
)

Constructor for customized encoding and doctype.

Parameters
writercharacter output stream to use
versionversion of the output method
doIndenttrue if output is to be indented
indentnumber of spaces to indent at each nesting level
encodingcharacter encoding in use by writer
mediaTypemedia type (MIME content type) of the data
doctypeSystemsystem identifier to be used in the document type declaration
doctypePublicpublic identifier to be used in the document type declaration
xmlDecltrue if the XSLT processor should output an XML declaration
standalonetrue if the XSLT processor should output a standalone document declaration
formatshould be used only by derived classes.
fBufferDataIf true, data will be buffered in the formatter
virtual FormatterToXML::~FormatterToXML ( )
virtual

Member Function Documentation

virtual void FormatterToXML::accumCommentData ( const XalanDOMChar *  data)
protectedvirtual

Write the data for a comment.

Parameters
dataThe comment's data.

Reimplemented in FormatterToHTML.

void FormatterToXML::accumContent ( XalanDOMChar  ch)
protected

Append a wide character to the buffer.

the character to append.

void FormatterToXML::accumContent ( const XalanDOMChar *  chars)
protected

Append a null-terminated array of wide characters to the buffer.

the array to append

void FormatterToXML::accumContent ( const XalanDOMChar  chars[],
XalanDOMString::size_type  start,
XalanDOMString::size_type  length 
)
protected

Append an array of wide character to the buffer.

the array to append the offset into the array to start from the number of characters to append

void FormatterToXML::accumContent ( const XalanDOMString str)
protected

Append a string to the buffer.

Parameters
strthe string to append
virtual bool FormatterToXML::accumDefaultEntity ( XalanDOMChar  ch,
bool  escLF 
)
protectedvirtual

Handle one of the default entities, return false if it is not a default entity.

Reimplemented in FormatterToHTML.

XalanDOMString::size_type FormatterToXML::accumDefaultEscape ( XalanDOMChar  ch,
XalanDOMString::size_type  i,
const XalanDOMChar  chars[],
XalanDOMString::size_type  len,
bool  escLF 
)
protected

Escape and accum a character.

void FormatterToXML::accumName ( XalanDOMChar  ch)
protected

Append a wide character to the buffer.

Characters that are not representable in the encoding are not written as entities.

the character to append.

void FormatterToXML::accumName ( const XalanDOMChar *  chars)
protected

Append a null-terminated array of wide characters to the buffer.

Characters that are not representable in the encoding are not written as entities.

the array to append

void FormatterToXML::accumName ( const XalanDOMChar  chars[],
XalanDOMString::size_type  start,
XalanDOMString::size_type  length 
)
protected

Append an array of wide character to the buffer.

Characters that are not representable in the encoding are not written as entities.

the array to append the offset into the array to start from the number of characters to append

void FormatterToXML::accumName ( const XalanDOMString str)
protected

Append a string to the buffer.

Characters that are not representable in the encoding are not written as entities.

Parameters
strthe string to append
virtual void FormatterToXML::cdata ( const XMLCh *const  ch,
const unsigned int  length 
)
virtual

Receive notification of cdata.

The Parser will call this method to report each chunk of character data. SAX parsers may return all contiguous character data in a single chunk, or they may split it into several chunks; however, all of the characters in any single event must come from the same external entity, so that the Locator provides useful information.

The application must not attempt to read from the array outside of the specified range.

Note that some parsers will report whitespace using the ignorableWhitespace() method rather than this one (validating parsers must do so).

Parameters
chpointer to characters from the XML document
lengthnumber of characters to read from the array
Exceptions
SAXException

Implements FormatterListener.

Reimplemented in FormatterToHTML.

virtual void FormatterToXML::characters ( const XMLCh *const  chars,
const unsigned int  length 
)
virtual

Implements FormatterListener.

Reimplemented in FormatterToHTML.

virtual void FormatterToXML::charactersRaw ( const XMLCh *const  chars,
const unsigned int  length 
)
virtual

Receive notification of character data.

If available, when the disable-output-escaping attribute is used, output raw text without escaping.

Parameters
charspointer to characters from the XML document
lengthnumber of characters to read from the array
Exceptions
SAXException

Implements FormatterListener.

bool FormatterToXML::childNodesWereAdded ( )
protected
virtual void FormatterToXML::comment ( const XMLCh *const  data)
virtual

Called when a Comment is to be constructed.

Parameters
datapointer to comment data
Exceptions
SAXException

Implements FormatterListener.

static FormatterToXML* FormatterToXML::create ( MemoryManagerType theManager,
Writer writer,
const XalanDOMString version = XalanDOMString(XalanMemMgrs::getDummyMemMgr()),
bool  doIndent = false,
int  indent = eDefaultIndentAmount,
const XalanDOMString encoding = XalanDOMString(XalanMemMgrs::getDummyMemMgr()),
const XalanDOMString mediaType = XalanDOMString(XalanMemMgrs::getDummyMemMgr()),
const XalanDOMString doctypeSystem = XalanDOMString(XalanMemMgrs::getDummyMemMgr()),
const XalanDOMString doctypePublic = XalanDOMString(XalanMemMgrs::getDummyMemMgr()),
bool  xmlDecl = true,
const XalanDOMString standalone = XalanDOMString(XalanMemMgrs::getDummyMemMgr()),
eFormat  format = OUTPUT_METHOD_XML,
bool  fBufferData = true 
)
static
virtual void FormatterToXML::endDocument ( )
virtual

Implements FormatterListener.

Reimplemented in FormatterToHTML.

virtual void FormatterToXML::endElement ( const XMLCh *const  name)
virtual

Implements FormatterListener.

Reimplemented in FormatterToHTML.

virtual void FormatterToXML::entityReference ( const XMLCh *const  name)
virtual

Receive notification of a entityReference.

Parameters
datapointer to characters from the XML document
Exceptions
SAXException

Implements FormatterListener.

Reimplemented in FormatterToHTML.

void FormatterToXML::flushBytes ( )
protected

Flush the byte buffer.

void FormatterToXML::flushChars ( )
protected

Flush the char buffer.

void FormatterToXML::flushWriter ( )
protected
virtual const XalanDOMString& FormatterToXML::getDoctypePublic ( ) const
virtual

Reimplemented from FormatterListener.

virtual const XalanDOMString& FormatterToXML::getDoctypeSystem ( ) const
virtual

Reimplemented from FormatterListener.

bool FormatterToXML::getDoIndent ( ) const
virtual const XalanDOMString& FormatterToXML::getEncoding ( ) const
virtual

Reimplemented from FormatterListener.

bool FormatterToXML::getEscapeCData ( ) const
virtual int FormatterToXML::getIndent ( ) const
virtual

Reimplemented from FormatterListener.

virtual const XalanDOMString& FormatterToXML::getMediaType ( ) const
virtual

Reimplemented from FormatterListener.

MemoryManagerType& FormatterToXML::getMemoryManager ( )
bool FormatterToXML::getShouldWriteXMLHeader ( ) const
const XalanDOMString& FormatterToXML::getStandalone ( ) const
bool FormatterToXML::getStripCData ( ) const
const XalanDOMString& FormatterToXML::getVersion ( ) const
virtual Writer* FormatterToXML::getWriter ( ) const
virtual

Reimplemented from FormatterListener.

virtual void FormatterToXML::ignorableWhitespace ( const XMLCh *const  chars,
const unsigned int  length 
)
virtual

Implements FormatterListener.

void FormatterToXML::indent ( int  n)
protected

Prints a newline character and n spaces.

Parameters
nNumber of spaces to print.
void FormatterToXML::initAttrCharsMap ( )
protected

Set the attribute characters what will require special mapping.

void FormatterToXML::initCharsMap ( )
protected

Set the output characters what will require special mapping.

static bool FormatterToXML::isUTF16Surrogate ( XalanDOMChar  ch)
staticprotected
void FormatterToXML::openElementForChildren ( )
protected
void FormatterToXML::outputLineSep ( )
protected

Output a line break.

virtual void FormatterToXML::processingInstruction ( const XMLCh *const  target,
const XMLCh *const  data 
)
virtual

Implements FormatterListener.

Reimplemented in FormatterToHTML.

virtual void FormatterToXML::resetDocument ( )
virtual

Implements FormatterListener.

virtual void FormatterToXML::setDocumentLocator ( const LocatorType *const  locator)
virtual
void FormatterToXML::setDoIndent ( bool  value)
void FormatterToXML::setEscapeCData ( bool  b)
void FormatterToXML::setIndent ( int  value)
void FormatterToXML::setShouldWriteXMLHeader ( bool  b)
void FormatterToXML::setStripCData ( bool  b)
bool FormatterToXML::shouldIndent ( ) const
protected
virtual void FormatterToXML::startDocument ( )
virtual

Implements FormatterListener.

Reimplemented in FormatterToHTML.

virtual void FormatterToXML::startElement ( const XMLCh *const  name,
AttributeListType attrs 
)
virtual

Reimplemented in FormatterToHTML.

static void FormatterToXML::throwInvalidCharacterException ( unsigned int  ch,
MemoryManagerType theManager 
)
staticprotected

Throw an exception when an invalid XML character is encountered.

Parameters
chThe first character in the surrogate
nextThe next character in the surrogate
static void FormatterToXML::throwInvalidUTF16SurrogateException ( XalanDOMChar  ch,
MemoryManagerType theManager 
)
staticprotected

Throw an exception when an invalid surrogate is encountered.

Parameters
chThe first character in the surrogate
theManagerThe MemoryManager instance to use
static void FormatterToXML::throwInvalidUTF16SurrogateException ( XalanDOMChar  ch,
XalanDOMChar  next,
MemoryManagerType theManager 
)
staticprotected

Throw an exception when an invalid surrogate is encountered.

Parameters
chThe first character in the surrogate
nextThe next character in the surrogate
theManagerThe MemoryManager instance to use
virtual void FormatterToXML::writeAttrString ( const XalanDOMChar *  theString,
XalanDOMString::size_type  theStringLength 
)
protectedvirtual

Write an attribute string.

Parameters
theStringThe string to write.
theStringLengthThe length of the string.

Reimplemented in FormatterToHTML.

virtual void FormatterToXML::writeNormalizedChars ( const XalanDOMChar  ch[],
XalanDOMString::size_type  start,
XalanDOMString::size_type  length,
bool  isCData 
)
protectedvirtual

Write normalized characters to the writer.

Parameters
chthe string to write.
startthe start offset into the string.
lengththe length of the string.
isCDatatrue if writing CDATA.
void FormatterToXML::writeNumberedEntityReference ( unsigned long  theNumber)
protected

Write a number into the buffer as an entity reference.

Parameters
theNumberthe number to write.
void FormatterToXML::writeParentTagEnd ( )
protected

Check to see if a parent's ">" has been written, and, if it has not, write it.

Member Data Documentation

XalanDOMChar FormatterToXML::m_attrCharsMap[SPECIALSSIZE]
protected
XalanDOMChar FormatterToXML::m_charsMap[SPECIALSSIZE]
protected
int FormatterToXML::m_currentIndent
protected

Flag to keep track of the indent amount.

const XalanDOMString FormatterToXML::m_doctypePublic
protected

The public ID for the doc type.

const XalanDOMString FormatterToXML::m_doctypeSystem
protected

The System ID for the doc type.

bool FormatterToXML::m_doIndent
protected

Flag to tell if indenting (pretty-printing) is on.

XalanDOMString FormatterToXML::m_encoding
protected

The character encoding.

bool FormatterToXML::m_encodingIsUTF
protected

Flag to quickly tell if the encoding is capable of full Unicode support.

bool FormatterToXML::m_inCData
protected

Tells if we're in CData section.

int FormatterToXML::m_indent
protected

Amount to indent.

bool FormatterToXML::m_ispreserve
protected

State flag to tell if preservation of whitespace is important.

bool FormatterToXML::m_isprevtext
protected

State flag that tells if the previous node processed was text, so we can tell if we should preserve whitespace.

XalanDOMChar FormatterToXML::m_maxCharacter
protected

The maximum character size before we have to resort to escaping.

bool FormatterToXML::m_needToOutputDocTypeDecl
protected

Flag to tell that we need to add the doctype decl, which we can't do until the first element is encountered.

bool FormatterToXML::m_nextIsRaw
protected

Tell if the next text should be raw.

BoolStackType FormatterToXML::m_preserves
protected

Stack to keep track of whether or not we need to preserve whitespace.

bool FormatterToXML::m_shouldWriteXMLHeader
protected

If true, XML header should be written to output.

bool FormatterToXML::m_startNewLine
protected

Flag to signal that a newline should be added.

XalanOutputStream* const FormatterToXML::m_stream
protected

The stream where the XML will be written.

XalanDOMString FormatterToXML::m_stringBuffer
protected
bool FormatterToXML::m_stripCData
protected

If true, cdata sections are simply stripped of their CDATA brackets, without escaping.

Writer* const FormatterToXML::m_writer
protected

The writer where the XML will be written.


The documentation for this class was generated from the following file:

Interpreting class diagrams

Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.

dot

Xalan-C++ XSLT Processor Version 1.10
Copyright © 1999-2004 The Apache Software Foundation. All Rights Reserved.

Apache Logo