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

Representation of XML documents. More...

Collaboration diagram for XML:

Files

file  tsxml.h

Classes

class  ts::xml::Attribute
class  ts::xml::Comment
class  ts::xml::Declaration
class  ts::xml::Document
class  ts::xml::Element
class  ts::xml::JSONConverter
class  ts::xml::ModelDocument
class  ts::xml::Node
class  ts::xml::PatchDocument
class  ts::xml::RunningDocument
class  ts::xml::Text
class  ts::xml::Tweaks
class  ts::xml::Unknown

Typedefs

using ts::xml::ElementVector = std::vector<const Element*>

Enumerations

enum class  ts::xml::MergeAttributes {
  ts::xml::MergeAttributes::NONE ,
  ts::xml::MergeAttributes::ADD ,
  ts::xml::MergeAttributes::REPLACE
}

Variables

static constexpr size_t ts::xml::DEFAULT_MAX_NESTED = 256
static constexpr size_t ts::xml::UNLIMITED = std::numeric_limits<size_t>::max()

Detailed Description

Representation of XML documents.

Typedef Documentation

◆ ElementVector

using ts::xml::ElementVector = std::vector<const Element*>

Vector of constant elements.

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

size_t ts::xml::DEFAULT_MAX_NESTED = 256
staticconstexpr

Specify the default maximum number of nested levels of elements. Higher numbers of nested levels may put pressure on the thread stack size.

◆ UNLIMITED

size_t ts::xml::UNLIMITED = std::numeric_limits<size_t>::max()
staticconstexpr

Specify an unlimited number of elements or unlimited number of nested levels.