TSDuck v3.46-4867
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches

Representation of XML documents. More...

Collaboration diagram for XML:

Files

file  tsxml.h
 Forward declaration of XML classes.
 

Classes

class  ts::xml::Attribute
 Attribute of an XML element. More...
 
class  ts::xml::Comment
 Comment in an XML document. More...
 
class  ts::xml::Declaration
 Declaration in an XML document. More...
 
class  ts::xml::Document
 Representation of an XML document. More...
 
class  ts::xml::Element
 Structured element in an XML document. More...
 
class  ts::xml::JSONConverter
 XML-to-JSON converter. More...
 
class  ts::xml::ModelDocument
 Representation of the model of an XML document. More...
 
class  ts::xml::Node
 Base class for all XML objects in a document. More...
 
class  ts::xml::PatchDocument
 Representation of an XML document which is used to patch another XML document. More...
 
class  ts::xml::RunningDocument
 Representation of a "running" XML document which is displayed on the fly. More...
 
class  ts::xml::Text
 Text element in an XML document. More...
 
class  ts::xml::Tweaks
 Global tweaks to manipulate, parse and format XML documents. More...
 
class  ts::xml::Unknown
 Unknown element in an XML document. More...
 

Typedefs

using ts::xml::ElementVector = std::vector< const Element * >
 Vector of constant elements.
 

Enumerations

enum class  ts::xml::MergeAttributes {
  ts::xml::MergeAttributes::NONE ,
  ts::xml::MergeAttributes::ADD ,
  ts::xml::MergeAttributes::REPLACE
}
 How to process attributes when merging XML elements. More...
 

Variables

static constexpr size_t ts::json::DEFAULT_MAX_NESTED = 256
 Specify the defaut maximum number of nested levels of objects.
 
static constexpr size_t ts::xml::DEFAULT_MAX_NESTED = 256
 Specify the defaut maximum number of nested levels of elements.
 
static constexpr size_t ts::xml::UNLIMITED = std::numeric_limits<size_t>::max()
 Specify an unlimited number of elements or unlimited number of nested levels.
 

Detailed Description

Representation of XML documents.

Enumeration Type Documentation

◆ MergeAttributes

enum class ts::xml::MergeAttributes
strong

How to process attributes when merging XML elements.

In the merge process, there a main element and a secondary element which is merged into the main. These declarations describe what to do when merging two elements with same tag.

See also
Element::merge()
Enumerator
NONE 

Ignore attributes in the secondary element.

ADD 

Add attributes from the secondary element which are not already present in the main element.

REPLACE 

Unconditionally copy attributes from the secondary element into the main.

Variable Documentation

◆ DEFAULT_MAX_NESTED [1/2]

constexpr size_t ts::json::DEFAULT_MAX_NESTED = 256
staticconstexpr

Specify the defaut maximum number of nested levels of objects.

Higher numbers of nested levels may put pressure on the thread stack size.

◆ DEFAULT_MAX_NESTED [2/2]

constexpr size_t ts::xml::DEFAULT_MAX_NESTED = 256
staticconstexpr

Specify the defaut maximum number of nested levels of elements.

Higher numbers of nested levels may put pressure on the thread stack size.