12 #include <libxml/xmlreader.h> 13 #include <libxml/xmlerror.h> 40 : _reader( _no_reader )
60 return str <<
"NoNode" << endl;
63 if (
X(
nodeType) == XML_READER_TYPE_NONE )
78 str <<
" {" <<
X(
value) <<
'}';
NodeType nodeType() const
Get the node type of the current node.
XmlString value() const
Provides the text value of the node if present.
xmlTextReaderPtr const & _reader
Reference to the Reader.
String related utilities and Regular expression matching.
XmlString prefix() const
A shorthand reference to the namespace associated with the node.
xmlTextReader based interface to Reader's current node.
int attributeCount() const
Provides the number of attributes of the current node.
int depth() const
The depth of the node in the tree.
int hasValue() const
Whether the node can have a text value.
std::ostream & operator<<(std::ostream &str, const Node &obj)
int isEmptyElement() const
Check if the current node is empty.
Easy-to use interface to the ZYPP dependency resolver.
static xmlTextReaderPtr const _no_reader
NULL Reader referenced by default ctor.
int hasAttributes() const
Whether the node has attributes.
XmlString localName() const
The local name of the node.
ReadState readState() const
Gets the read state of the reader.