libzypp
13.10.6
|
Namespaces | |
parse_def_assign | |
parseDefAssign exposed details | |
Classes | |
class | Node |
xmlTextReader based interface to Reader's current node. More... | |
struct | ParseDefImplConsume |
class | ParseDef |
Define a xml node structure to parse. More... | |
struct | ParseDefConsume |
Base class for ParseDef consumer. More... | |
class | ParseDefConsumeRedirect |
ParseDef consumer redirecting all events to another consumer. More... | |
class | ParseDefConsumeCallback |
ParseDef consumer that invokes callbacks. More... | |
struct | ParseDefException |
Common base class for ParseDef exceptions. More... | |
struct | ParseDefBuildException |
Exceptions when building a ParseDef tree. More... | |
struct | ParseDefValidateException |
Parse exceptions related to the documents node structure. More... | |
struct | ParseDefDataException |
Parse exceptions related to the nodes content. More... | |
struct | ParseDefTraits |
struct | Validate |
xmlTextReader document validation. More... | |
class | Reader |
xmlTextReader based interface to iterate xml streams. More... | |
class | XmlString |
xmlChar * wrapper. More... | |
Typedefs | |
typedef xmlTextReaderMode | ReadState |
typedef xmlReaderTypes | NodeType |
Functions | |
std::ostream & | operator<< (std::ostream &str, const ReadState &obj) |
std::ostream & | operator<< (std::ostream &str, const NodeType &obj) |
std::ostream & | operator<< (std::ostream &str, const Node &obj) |
template<class _Data > | |
void | rnParse (const InputStream &input_r, _Data &data_r) |
Parse xml input_r and store data in data_r . More... | |
std::ostream & | operator<< (std::ostream &str, const ParseDef::Impl &obj) |
std::ostream & | operator<< (std::ostream &str, ParseDef::Mode obj) |
std::ostream & | operator<< (std::ostream &str, const ParseDef &obj) |
std::string | escape (const std::string &in_r) |
Escape xml special charaters (& -> & ; from IoBind library). More... | |
std::string | unescape (const std::string &in_r) |
Unescape xml special charaters (& -> & ; from IoBind library) More... | |
std::ostream & | operator<< (std::ostream &str, const XmlString &obj) |
typedef xmlTextReaderMode zypp::xml::ReadState |
Definition at line 30 of file libxmlfwd.h.
typedef xmlReaderTypes zypp::xml::NodeType |
Definition at line 34 of file libxmlfwd.h.
std::ostream& zypp::xml::operator<< | ( | std::ostream & | str, |
const ReadState & | obj | ||
) |
Definition at line 29 of file libxmlfwd.cc.
std::ostream& zypp::xml::operator<< | ( | std::ostream & | str, |
const NodeType & | obj | ||
) |
Definition at line 50 of file libxmlfwd.cc.
|
related |
|
inline |
Parse xml input_r
and store data in data_r
.
_Data
must be defaultconstructible and assignable.
_Data::RootNode
must be a xml::ParseDef constructible from _Data&
.
ParseDefException | on parse errors. |
To parse a xml file like this:
You need something like this:
std::ostream& zypp::xml::operator<< | ( | std::ostream & | str, |
const ParseDef::Impl & | obj | ||
) |
Definition at line 348 of file ParseDef.cc.
|
related |
Definition at line 447 of file ParseDef.cc.
|
related |
Definition at line 466 of file ParseDef.cc.
ZYPP_API std::string zypp::xml::escape | ( | const std::string & | in_r | ) |
Escape xml special charaters (& -> &
; from IoBind library).
Definition at line 106 of file XmlEscape.cc.
ZYPP_API std::string zypp::xml::unescape | ( | const std::string & | in_r | ) |
Unescape xml special charaters (& -> &
; from IoBind library)
Definition at line 109 of file XmlEscape.cc.
|
related |
Definition at line 46 of file XmlString.cc.