basic-xml 1.0.1
Very basic loader/writer of XML tags with attributes and content.
Functions
node.cpp File Reference

XML Nodes. More...

#include "basic-xml/node.h"
#include "basic-xml/exception.h"
#include "basic-xml/type.h"
#include <snapdev/not_reached.h>
#include <snapdev/trim_string.h>
#include <snapdev/string_replace_many.h>
#include <iomanip>
#include <snapdev/poison.h>
Include dependency graph for node.cpp:

Go to the source code of this file.

Functions

std::string basic_xml::convert_to_entity (std::string const &raw, std::string const &which)
 
std::ostream & basic_xml::operator<< (std::ostream &out, node const &n)
 

Detailed Description

Each tag found in the input is transformed in a node. A node includes the tag name, attributes, and the text found inside the node. There is no separate node created for text data so if your node includes multiple text strings between tags, there is no way to know the correct order. We do not offer that capability.

Definition in file node.cpp.

Function Documentation

◆ convert_to_entity()

std::string basic_xml::convert_to_entity ( std::string const &  raw,
std::string const &  which 
)

Definition at line 215 of file node.cpp.

◆ operator<<()

std::ostream & basic_xml::operator<< ( std::ostream &  out,
node const &  n 
)

Definition at line 255 of file node.cpp.

This document is part of the Snap! Websites Project.

Copyright by Made to Order Software Corp.