~ubuntu-branches/ubuntu/feisty/libxml++2.6/feisty

« back to all changes in this revision

Viewing changes to libxml++/nodes/node.cc

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2006-11-17 14:53:51 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20061117145351-2a403c6h54pzia5l
Tags: 2.17.1-0ubuntu1
* New upstream release: 
  - Node: Added get_parent()
  - TextReader: Added TextReader(const char* data) constructor, for parsing 
    memory buffers.
  - Element::set_attribute(): Really return the new attribute.
  - Build: Added MS Visual Studio 2005 project files.
* debian/control:
  - remove duplicate doxygen build-dep.
* debian/rules, debian/libxml++2.6-doc.docs:
  - 2.14 -> 2.17.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
Node::~Node()
26
26
{}
27
27
 
 
28
const Element* Node::get_parent() const
 
29
{
 
30
  return cobj()->parent && cobj()->parent->type == XML_ELEMENT_NODE ? 
 
31
             static_cast<const Element*>(cobj()->parent->_private) : NULL;
 
32
}
 
33
 
 
34
Element* Node::get_parent()
 
35
{
 
36
  return cobj()->parent && cobj()->parent->type == XML_ELEMENT_NODE ? 
 
37
            static_cast<Element*>(cobj()->parent->_private) : NULL;
 
38
}
 
39
 
28
40
Node::NodeList Node::get_children(const Glib::ustring& name)
29
41
{
30
42
   xmlNode* child = impl_->children;