rapidxml_print.hpp File Reference

This file contains rapidxml printer implementation. More...

#include "rapidxml.hpp"
#include <ostream>
#include <iterator>
Include dependency graph for rapidxml_print.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<class OutIt , class Ch >
OutIt rapidxml::print (OutIt out, const xml_node< Ch > &node, int flags=0)
 
template<class Ch >
std::basic_ostream< Ch > & rapidxml::print (std::basic_ostream< Ch > &out, const xml_node< Ch > &node, int flags=0)
 
template<class Ch >
std::basic_ostream< Ch > & rapidxml::operator<< (std::basic_ostream< Ch > &out, const xml_node< Ch > &node)
 

Variables

const int rapidxml::print_no_indenting = 0x1
 Printer flag instructing the printer to suppress indenting of XML. See print() function.
 

Detailed Description

This file contains rapidxml printer implementation.

Function Documentation

template<class Ch >
std::basic_ostream<Ch>& rapidxml::operator<< ( std::basic_ostream< Ch > &  out,
const xml_node< Ch > &  node 
)
inline

Prints formatted XML to given output stream. Uses default printing flags. Use print() function to customize printing process.

Parameters
outOutput stream to print to.
nodeNode to be printed.
Returns
Output stream.
template<class OutIt , class Ch >
OutIt rapidxml::print ( OutIt  out,
const xml_node< Ch > &  node,
int  flags = 0 
)
inline

Prints XML to given output iterator.

Parameters
outOutput iterator to print to.
nodeNode to be printed. Pass xml_document to print entire document.
flagsFlags controlling how XML is printed.
Returns
Output iterator pointing to position immediately after last character of printed text.
template<class Ch >
std::basic_ostream<Ch>& rapidxml::print ( std::basic_ostream< Ch > &  out,
const xml_node< Ch > &  node,
int  flags = 0 
)
inline

Prints XML to given output stream.

Parameters
outOutput stream to print to.
nodeNode to be printed. Pass xml_document to print entire document.
flagsFlags controlling how XML is printed.
Returns
Output stream.