Multi-line svn commit, see body.
[shibboleth/cpp-xmltooling.git] / xmltooling / XMLObject.h
index cc8e54b..1fb26d6 100644 (file)
@@ -171,6 +171,24 @@ namespace xmltooling {
         virtual void removeChild(XMLObject* child)=0;\r
 \r
         /**\r
+         * Returns the text content at the specified position relative to\r
+         * any child elements. A zero represents leading text, 1 comes after\r
+         * the first child, and so forth.\r
+         *\r
+         * @param position  the relative child element position of the text  \r
+         * @return the designated text value\r
+         */\r
+        virtual const XMLCh* getTextContent(unsigned int position=0) const=0;\r
+\r
+        /**\r
+         * Sets (or clears) text content relative to a child element's position. \r
+         * \r
+         * @param value         value to set, or NULL to clear\r
+         * @param position      position relative to child element \r
+         */\r
+        virtual void setTextContent(const XMLCh* value, unsigned int position=0)=0;\r
+\r
+        /**\r
          * Gets the DOM representation of this XMLObject, if one exists.\r
          * \r
          * @return the DOM representation of this XMLObject\r