projects
/
shibboleth
/
xmltooling.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add xsi:nil support to objects.
[shibboleth/xmltooling.git]
/
xmltooling
/
AbstractXMLObject.h
diff --git
a/xmltooling/AbstractXMLObject.h
b/xmltooling/AbstractXMLObject.h
index
3b41d6d
..
7767167
100644
(file)
--- a/
xmltooling/AbstractXMLObject.h
+++ b/
xmltooling/AbstractXMLObject.h
@@
-79,7
+79,18
@@
namespace xmltooling {
const XMLCh* getXMLID() const {
return NULL;
}
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;
}
bool hasParent() const {
return m_parent != NULL;
}
@@
-205,6
+216,11
@@
namespace xmltooling {
* Stores off xsi:noNamespaceSchemaLocation attribute.
*/
XMLCh* m_noNamespaceSchemaLocation;
* Stores off xsi:noNamespaceSchemaLocation attribute.
*/
XMLCh* m_noNamespaceSchemaLocation;
+
+ /**
+ * Stores off xsi:nil attribute.
+ */
+ xmlconstants::xmltooling_bool_t m_nil;
private:
XMLObject* m_parent;
private:
XMLObject* m_parent;