|
From: <vac...@us...> - 2009-02-21 16:22:45
|
Revision: 136
http://xmlwrapp.svn.sourceforge.net/xmlwrapp/?rev=136&view=rev
Author: vaclavslavik
Date: 2009-02-21 16:22:40 +0000 (Sat, 21 Feb 2009)
Log Message:
-----------
reverted set_namespace() addition -- correct namespaces handling is more work than that
Modified Paths:
--------------
trunk/NEWS
trunk/include/xmlwrapp/node.h
trunk/src/libxml/node.cxx
Modified: trunk/NEWS
===================================================================
--- trunk/NEWS 2009-02-06 23:57:41 UTC (rev 135)
+++ trunk/NEWS 2009-02-21 16:22:40 UTC (rev 136)
@@ -25,7 +25,7 @@
PDF version of the manual is no longer provided, use HTML documentation
included with xmlwrapp source distribution.
- Added xml::node::get_namespace() and set_namespace() functions.
+ Added xml::node::get_namespace() function.
Added new constructor to the xml::node class for creating text nodes,
using xml::node::text helper struct.
Modified: trunk/include/xmlwrapp/node.h
===================================================================
--- trunk/include/xmlwrapp/node.h 2009-02-06 23:57:41 UTC (rev 135)
+++ trunk/include/xmlwrapp/node.h 2009-02-21 16:22:40 UTC (rev 136)
@@ -377,17 +377,6 @@
//####################################################################
/**
- * Sets the namespace of this xml::node.
- *
- * @param href URI of the namespace to associate with the node.
- * @author Vaclav Slavik
- * @since 0.6.0
- **/
- //####################################################################
- void set_namespace(const char *href);
-
- //####################################################################
- /**
* Find out if this node is a text node or sometiming like a text node,
* CDATA for example.
*
Modified: trunk/src/libxml/node.cxx
===================================================================
--- trunk/src/libxml/node.cxx 2009-02-06 23:57:41 UTC (rev 135)
+++ trunk/src/libxml/node.cxx 2009-02-21 16:22:40 UTC (rev 136)
@@ -400,10 +400,6 @@
: NULL;
}
//####################################################################
-void xml::node::set_namespace (const char *href) {
- xmlNewNs(pimpl_->xmlnode_, reinterpret_cast<const xmlChar*>(href), 0);
-}
-//####################################################################
bool xml::node::is_text (void) const {
return xmlNodeIsText(pimpl_->xmlnode_) != 0;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|