tng 2003/01/03 12:17:51 Modified: c/src/xercesc/dom/deprecated DOMParser.cpp DOMParser.hpp Log: New feature StandardUriConformant to force strict standard uri conformance. Revision Changes Path 1.13 +12 -2 xml-xerces/c/src/xercesc/dom/deprecated/DOMParser.cpp Index: DOMParser.cpp =================================================================== RCS file: /home/cvs/xml-xerces/c/src/xercesc/dom/deprecated/DOMParser.cpp,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- DOMParser.cpp 27 Dec 2002 16:16:50 -0000 1.12 +++ DOMParser.cpp 3 Jan 2003 20:17:50 -0000 1.13 @@ -154,7 +154,7 @@ } void DOMParser::cleanUp() -{ +{ delete fNodeStack; delete fScanner; delete fGrammarResolver; @@ -273,6 +273,11 @@ return fScanner->getCalculateSrcOfs(); } +bool DOMParser::getStandardUriConformant() const +{ + return fScanner->getStandardUriConformant(); +} + unsigned int DOMParser::getSrcOffset() const { return fScanner->getSrcOffset(); @@ -375,6 +380,11 @@ void DOMParser::setCalculateSrcOfs(const bool newState) { fScanner->setCalculateSrcOfs(newState); +} + +void DOMParser::setStandardUriConformant(const bool newState) +{ + fScanner->setStandardUriConformant(newState); } void DOMParser::useScanner(const XMLCh* const scannerName) 1.15 +26 -2 xml-xerces/c/src/xercesc/dom/deprecated/DOMParser.hpp Index: DOMParser.hpp =================================================================== RCS file: /home/cvs/xml-xerces/c/src/xercesc/dom/deprecated/DOMParser.hpp,v retrieving revision 1.14 retrieving revision 1.15 diff -u -r1.14 -r1.15 --- DOMParser.hpp 30 Dec 2002 20:15:51 -0000 1.14 +++ DOMParser.hpp 3 Jan 2003 20:17:50 -0000 1.15 @@ -414,6 +414,18 @@ bool getCalculateSrcOfs() const; /** + * Get the 'force standard uri flag' + * + * This method returns the state if the parser forces standard uri + * + * @return true, if the parser is currently configured to + * force standard uri, i.e. malformed uri will be rejected. + * + * @see #setStandardUriConformant + */ + bool getStandardUriConformant() const; + + /** * Retrieve the grammar that is associated with the specified namespace key * * @param nameSpaceKey Namespace key @@ -759,6 +771,18 @@ */ void setCalculateSrcOfs(const bool newState); + /** Force standard uri + * + * This method allows users to tell the parser to force standard uri conformance. + * + * The parser's default state is: false. + * + * @param newState The value specifying whether the parser should reject malformed URI. + * + * @see #getStandardUriConformant + */ + void setStandardUriConformant(const bool newState); + /** Set the scanner to use when scanning the XML document * * This method allows users to set the scanner to use @@ -1659,7 +1683,7 @@ // ----------------------------------------------------------------------- void initialize(); void cleanUp(); - + // ----------------------------------------------------------------------- // Private data members //
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]