Skip to main content

startElementNsSAX2Func

Type Alias startElementNsSAX2Func 

Source
pub type startElementNsSAX2Func = unsafe extern "C" fn(ctx: *mut c_void, localname: *const xmlChar, prefix: *const xmlChar, URI: *const xmlChar, nb_namespaces: c_int, namespaces: *mut *const xmlChar, nb_attributes: c_int, nb_defaulted: c_int, attributes: *mut *const xmlChar);
Expand description

Callback for element start (SAX2/namespaced).

§Parameters

  • localname: element local name
  • prefix: element namespace prefix (or NULL)
  • URI: element namespace URI (or NULL)
  • nb_namespaces: number of namespace declarations
  • namespaces: array of [prefix, URI, prefix, URI, …] (size 2*nb_namespaces)
  • nb_attributes: total number of attributes
  • nb_defaulted: number of defaulted attributes (from DTD)
  • attributes: array of [localname, prefix, URI, value, value_end, …] each attribute is 5 entries, value_end is pointer past last char of value