*/\r
\r
/**\r
- * @file UnknownElement.h\r
+ * @file xmltooling/impl/UnknownElement.h\r
* \r
* Basic implementation suitable for use as default for unrecognized content\r
*/\r
#ifndef __xmltooling_unkelement_h__\r
#define __xmltooling_unkelement_h__\r
\r
-#include <xmltooling/AbstractChildlessElement.h>\r
+#include <xmltooling/AbstractSimpleElement.h>\r
#include <xmltooling/exceptions.h>\r
#include <xmltooling/XMLObjectBuilder.h>\r
#include <xmltooling/io/AbstractXMLObjectMarshaller.h>\r
namespace xmltooling {\r
\r
/// @cond off\r
- class XMLTOOL_DLLLOCAL UnknownElementImpl : public AbstractChildlessElement, public AbstractDOMCachingXMLObject\r
+ class XMLTOOL_DLLLOCAL UnknownElementImpl : public AbstractSimpleElement, public AbstractDOMCachingXMLObject\r
{\r
public:\r
UnknownElementImpl(const XMLCh* namespaceURI=NULL, const XMLCh* elementLocalName=NULL, const XMLCh* namespacePrefix=NULL)\r
\r
XMLObject* clone() const;\r
\r
+ const XMLCh* getTextContent(unsigned int position=0) const {\r
+ throw XMLObjectException("Direct access to content is not permitted.");\r
+ }\r
+\r
+ void setTextContent(const XMLCh*, unsigned int position=0) {\r
+ throw XMLObjectException("Direct access to content is not permitted.");\r
+ }\r
+\r
DOMElement* marshall(\r
DOMDocument* document=NULL\r
#ifndef XMLTOOLING_NO_XMLSEC\r