libgpac
Documentation of the core library of GPAC

XML Parsing functions. More...

+ Collaboration diagram for XML:

Modules

 SAX Parsing
 
 DOM Parsing
 
 XML Binary Formatting
 

Data Structures

struct  GF_XMLAttribute
 
struct  GF_XMLNode
 

Enumerations

enum  { GF_XML_NODE_TYPE = 0 , GF_XML_TEXT_TYPE , GF_XML_CDATA_TYPE }
 

Detailed Description

This section documents the XML functions (full doc parsing and SAX parsing) of the GPAC framework.


Data Structure Documentation

◆ GF_XMLAttribute

struct GF_XMLAttribute

Structure containing a parsed attribute

Data Fields
char * name

name or namespace:name

char * value

value

◆ GF_XMLNode

struct GF_XMLNode

Structure containing a parsed XML node

Data Fields
u32 type

Type of the node

char * name

For DOM nodes: name For other (text, css, cdata), element content

char * ns

namespace of the node, for XML node type only

GF_List * attributes

list of attributes of the node, for XML node type only - can be NULL if no attributes

GF_List * content

list of children nodes of the node, for XML node type only - can be NULL if no content

u16 orig_pos

original pos in parent (used for DASH MPD)

u16 valid_content

set to 1 if content comes from an existing XML and character checking should be skipped

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

XML node types

Enumerator
GF_XML_NODE_TYPE 

XML node

GF_XML_TEXT_TYPE 

text node (including carriage return between XML nodes)

GF_XML_CDATA_TYPE 

CDATA node