[Prev]

12.2.2 Decoder Extension Points

The generated code is instrumented with following macros

ZX_ATTR_DEC_EXT(ss)

Extension point called just after decoding known attribute

ZX_XMLNS_DEC_EXT(ss)

Extension point called just after decoding xmlns attribute

ZX_UNKNOWN_ATTR_DEC_EXT(ss)

Extension point called just after decoding unknown attr

ZX_START_DEC_EXT(x)

Extension point called just after decoding element name and allocating struct, but before decoding any of the attributes.

ZX_END_DEC_EXT(x)

Extension point called just after decoding the entire element.

ZX_START_BODY_DEC_EXT(x)

Extension point called just after decoding element tag, including attributes, but before decoding the body of the element.

ZX_PI_DEC_EXT(pi)

Extension point called just after decoding processing instruction

ZX_COMMENT_DEC_EXT(comment)

Extension point called just after decoding comment

ZX_CONTENT_DEC(ss)

Extension point called just after decoding string content

ZX_UNKNOWN_ELEM_DEC_EXT(elem)

Extension point called just after decoding unknown element

Following macros are available to the extension points

TPF

Type prefix (as specified by -p during code generation)

EL_NAME

Namespaceful element name (NS_EEE)

EL_STRUCT

Name of the struct that describes the element

EL_NS

Namespace prefix of the element (as seen in input schema)

EL_TAG

Name of the element without any namespace qualification.


[Prev | Next]