ID attribute processing bug.
authorcantor <cantor@de75baf8-a10c-0410-a50a-987c0e22f00f>
Wed, 10 May 2006 18:03:52 +0000 (18:03 +0000)
committercantor <cantor@de75baf8-a10c-0410-a50a-987c0e22f00f>
Wed, 10 May 2006 18:03:52 +0000 (18:03 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-xmltooling/trunk@98 de75baf8-a10c-0410-a50a-987c0e22f00f

xmltooling/base.h

index c471dc2..7398e0c 100644 (file)
 #define PROC_ID_ATTRIB(proper,ucase,namespaceURI) \
     if (xmltooling::XMLHelper::isNodeNamed(attribute, namespaceURI, ucase##_ATTRIB_NAME)) { \
         set##proper(attribute->getValue()); \
-        static_cast<DOMElement*>(attribute->getParentNode())->setIdAttributeNode(attribute); \
+        attribute->getOwnerElement()->setIdAttributeNode(attribute); \
         return; \
     }