X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fxmltooling.git;a=blobdiff_plain;f=xmltooling%2FAbstractXMLObject.h;fp=xmltooling%2FAbstractXMLObject.h;h=77671670755f518c3757aa68ad63e076c192ba22;hp=3b41d6d7d0d0316c4b1e7e60104bdfaf16e8c902;hb=ebb2772c2c65d4fe6f52e7978b9c7f656829614e;hpb=862161ef6283127928bd9307e1a184bf2ea0a6c8 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;