Version 7.0
Copyright © 2021 Lowell D. Thomas
APG
… an ABNF Parser Generator
Data Fields
xmldecl_info Struct Reference

Information about the XML declaration. More...

#include <xml.h>

Data Fields

const char * cpExists
 "yes" if the XML declaration exists, "no" otherwise. More...
 
const char * cpVersion
 The value of version="1.ddd". Default is 1.0. Any other value is a fatal error. More...
 
const char * cpEncoding
 If present must be UTF-8 or UTF-16. It is a fatal error if the data is not in the specified format. Note that UTF-16 data may be either UTF-16BE or UTF-LE. Either is acceptable. More...
 
const char * cpStandalone
 The value of the standalone declaration. More...
 

Detailed Description

Information about the XML declaration.

This structure is presented to the XML Declaration callback function, even if no XML declaration is present.

Definition at line 58 of file xml.h.

Field Documentation

◆ cpEncoding

const char* xmldecl_info::cpEncoding

If present must be UTF-8 or UTF-16. It is a fatal error if the data is not in the specified format. Note that UTF-16 data may be either UTF-16BE or UTF-LE. Either is acceptable.

Definition at line 62 of file xml.h.

◆ cpExists

const char* xmldecl_info::cpExists

"yes" if the XML declaration exists, "no" otherwise.

Definition at line 59 of file xml.h.

◆ cpStandalone

const char* xmldecl_info::cpStandalone

The value of the standalone declaration.

Definition at line 65 of file xml.h.

◆ cpVersion

const char* xmldecl_info::cpVersion

The value of version="1.ddd". Default is 1.0. Any other value is a fatal error.

Definition at line 60 of file xml.h.


The documentation for this struct was generated from the following file:
APG Version 7.0 is licensed under the 2-Clause BSD License,
an Open Source Initiative Approved License.