Name
ProcessingInstruction -- parser is processing instruction
Synopsis
ProcessingInstruction(p, target$, data$)
Function
This function is called when the parser detects XML processing instructions. The target$ is the first word in the processing instruction. The data$ is the rest of the characters in it after skipping all whitespace after the initial word.

Parameters
p
parser handle
target$
first word in the processing instruction
data$
rest of the characters after the initial word
Example
Function p_ProcessingInstruction(p, target$, data$)
   DebugPrint(target$, data$)
EndFunction

p = xml.CreateParser({ProcessingInstruction = p_ProcessingInstruction})
p:Parse([[<foo><?Hollywood rocks?></foo>]])
p:Free()
The code above prints "Hollywood rocks".

Show TOC