Changes between Initial Version and Version 1 of Ticket #1399
- Timestamp:
- 09/22/10 14:41:32 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #1399
- Property Owner set to
-
Ticket #1399 – Description
initial v1 27 27 }}} 28 28 29 The new serializing class is now DOMLSSerializer. It outputs to streams defined by DOMLSOutput which now controls output parameters like encoding. Other configuration details are specified by the DOMConfiguration class. The Output stream is defined by an XMLFormatTarget which we will cast as in MemBufFormatTarget.29 The new serializing class is now DOMLSSerializer. It outputs to streams defined by DOMLSOutput which now controls output parameters like encoding. Other configuration details are specified by the DOMConfiguration class. The Output stream is defined by an XMLFormatTarget which we will cast as in !MemBufFormatTarget. 30 30 {{{ 31 31 // get a serializer, an instance of DOMWriter … … 57 57 }}} 58 58 59 memTarget is initialized with a MemBufFormatTarget object and this is attached to the output stream of DOMLSOutput. Note that writenode has been replaced with just write.59 memTarget is initialized with a !MemBufFormatTarget object and this is attached to the output stream of DOMLSOutput. Note that writenode has been replaced with just write. 60 60 {{{ 61 61 INT32 bytesLen = (INT32)((MemBufFormatTarget*)memTarget)->getLen(); 62 62 BYTE_ARRAY_IN rawBytes = (BYTE_ARRAY_IN)((MemBufFormatTarget*)memTarget)->getRawBuffer(); 63 63 }}} 64 We have to cast it as MemBufFormatTarget.64 We have to cast it as !MemBufFormatTarget. 65 65 66 3.> In FilterUtil.h the namespace was declared by 'namespace xercesc_2_7'. I changed it to xerces_3_0 for it to work with the new xerces. Note that this is bad programming practice. I would change it as soon as I get a working compile. It should be declared as 'namespace XERCES_CPP_NAMESPACE_QUALIFIER'66 3.> In !FilterUtil.h the namespace was declared by 'namespace xercesc_2_7'. I changed it to xerces_3_0 for it to work with the new xerces. Note that this is bad programming practice. I would change it as soon as I get a working compile. It should be declared as 'namespace XERCES_CPP_NAMESPACE_QUALIFIER' 67 67 68 68