ElementParser.onCData

Register a handler which will be called whenever a character data segment is encountered.

class ElementParser
@property @safe @nogc pure nothrow
void
onCData
(
Handler handler
)

Examples

// Call this function whenever a CData section is encountered
onCData = (string s)
{
    // Your code here

    // The passed parameter s does not include the opening <![CDATA[
    // nor closing ]]>
    //
    // This is a a closure, so code here may reference
    // variables which are outside of this scope
};

Meta

Suggestion Box / Bug Report