X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-xmltooling.git;a=blobdiff_plain;f=xmltooling%2FAbstractXMLObject.h;h=77671670755f518c3757aa68ad63e076c192ba22;hp=3b41d6d7d0d0316c4b1e7e60104bdfaf16e8c902;hb=f6221acce6ee490b9189dd2f5efabda3b9e64fb1;hpb=4913cbd6482062423445463449fa30812f5b595e diff --git a/xmltooling/AbstractXMLObject.h b/xmltooling/AbstractXMLObject.h index 3b41d6d..7767167 100644 --- a/xmltooling/AbstractXMLObject.h +++ b/xmltooling/AbstractXMLObject.h @@ -79,7 +79,18 @@ namespace xmltooling { const XMLCh* getXMLID() const { return NULL; } - + + xmlconstants::xmltooling_bool_t getNil() const { + return m_nil; + } + + void nil(xmlconstants::xmltooling_bool_t value) { + if (m_nil != value) { + releaseThisandParentDOM(); + m_nil = value; + } + } + bool hasParent() const { return m_parent != NULL; } @@ -205,6 +216,11 @@ namespace xmltooling { * Stores off xsi:noNamespaceSchemaLocation attribute. */ XMLCh* m_noNamespaceSchemaLocation; + + /** + * Stores off xsi:nil attribute. + */ + xmlconstants::xmltooling_bool_t m_nil; private: XMLObject* m_parent;