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) <<
'}';
ReadState readState() const
Gets the read state of the reader.
XmlString localName() const
The local name of the node.
xmlTextReaderPtr const & _reader
Reference to the Reader.
String related utilities and Regular expression matching.
int isEmptyElement() const
Check if the current node is empty.
int depth() const
The depth of the node in the tree.
XmlString value() const
Provides the text value of the node if present.
xmlTextReader based interface to Reader's current node.
int hasValue() const
Whether the node can have a text value.
std::ostream & operator<<(std::ostream &str, const Node &obj)
int attributeCount() const
Provides the number of attributes of the current node.
XmlString prefix() const
A shorthand reference to the namespace associated with the node.
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.
NodeType nodeType() const
Get the node type of the current node.