12#include <libxml/xmlreader.h>
13#include <libxml/xmlerror.h>
17#include <zypp/base/LogControl.h>
18#include <zypp/base/LogTools.h>
19#include <zypp/base/Exception.h>
40 : _reader( _no_reader )
60 return str <<
"NoNode" << endl;
62 str <<
X(depth) <<
":" << std::string(
X(depth),
' ') <<
X(nodeType) <<
" <";
63 if (
X(nodeType) == XML_READER_TYPE_NONE )
65 return str <<
'[' <<
X(readState) <<
"]>";
68 str <<
X(prefix) <<
':';
69 str <<
X(localName) <<
"> ";
70 if (
X(hasAttributes) )
71 str <<
" [attr " <<
X(attributeCount);
74 if (
X(isEmptyElement) )
78 str <<
" {" <<
X(value) <<
'}';
xmlTextReader based interface to Reader's current node.
XmlString prefix() const
A shorthand reference to the namespace associated with the node.
static xmlTextReaderPtr const _no_reader
NULL Reader referenced by default ctor.
String related utilities and Regular expression matching.
std::ostream & operator<<(std::ostream &str, const ReadState &obj)
Easy-to use interface to the ZYPP dependency resolver.