Method Parser.XML.Simple()->Context()->push_string()


Method push_string

void push_string(string s)
void push_string(string s, string context)

Description

Add a string to parse at the current position.

Parameter s

String to insert at the current parsing position.

Parameter context

Optional context used to refer to the inserted string. This is typically an URL, but may also be an entity (preceeded by an "&") or a SMEG reference (preceeded by a "%"). Not used by the XML parser as such, but is simply passed into the callbackinfo mapping as the field "context" where it can be useful for eg resolving relative URLs when parsing DTDs, or for determining where errors occur.