Commit 9fb8ea34 authored by Murray Cumming's avatar Murray Cumming

Increased version

svn path=/trunk/; revision=158
parent aaa44531
2.19.1:
2007-07-30 Stef Walter <stef@memberwebs.com>
* libxml++/nodes/element.cc:
* libxml++/nodes/element.h: Added get_attribute_value(),
to get a simple text value for an attribute, as a
convenience.
Patch in bug #373573.
2007-07-30 Murray Cumming <murrayc@murrayc.com>
......
2.19.1:
* Element.h: Added get_attribute_value(),
to get a simple text value for an attribute.
(Stef Walter) Bug #373573.
2.18.2:
* TextReader: get_name(): Fixed a memory leak.
......
......@@ -2,8 +2,8 @@ AC_INIT(libxml++/libxml++.h)
#release versioning
GENERIC_MAJOR_VERSION=2
GENERIC_MINOR_VERSION=18
GENERIC_MICRO_VERSION=2
GENERIC_MINOR_VERSION=19
GENERIC_MICRO_VERSION=1
GENERIC_VERSION=$GENERIC_MAJOR_VERSION.$GENERIC_MINOR_VERSION.$GENERIC_MICRO_VERSION
AC_SUBST(GENERIC_MAJOR_VERSION)
AC_SUBST(GENERIC_MINOR_VERSION)
......
......@@ -52,20 +52,19 @@ Attribute* Element::get_attribute(const Glib::ustring& name,
Glib::ustring ns_uri = get_namespace_uri_for_prefix(ns_prefix);
xmlAttr* attr = xmlHasNsProp(const_cast<xmlNode*>(cobj()), (const xmlChar*)name.c_str(),
(const xmlChar*)ns_uri.c_str());
if( attr )
{
if( attr )
{
return reinterpret_cast<Attribute*>(attr->_private);
}
}
}
return 0;
}
Glib::ustring Element::get_attribute_value(const Glib::ustring& name,
const Glib::ustring& ns_prefix) const
Glib::ustring Element::get_attribute_value(const Glib::ustring& name, const Glib::ustring& ns_prefix) const
{
Attribute* attr = get_attribute(name, ns_prefix);
return attr ? attr->get_value() : Glib::ustring();
const Attribute* attr = get_attribute(name, ns_prefix);
return attr ? attr->get_value() : Glib::ustring();
}
Attribute* Element::set_attribute(const Glib::ustring& name, const Glib::ustring& value,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment