Platforms to show: All Mac Windows Linux Cross-Platform

CFXMLParserMBS.AddChild(parent as CFObjectMBS, child as CFObjectMBS)
Type Topic Plugin Version macOS Windows Linux iOS Targets
event CoreFoundation MBS MacCF Plugin 3.4 ✅ Yes ❌ No ❌ No ❌ No
Function: Called as children are parsed and are ready to be added to the tree.
Notes: If CreateXMLStructure returns nil for a given structure, that structure is omitted entirely, and addChild will NOT be called for either a nil child or parent.
CFXMLParserMBS.CreateXMLStructure(node as CFXMLNodeMBS) as CFObjectMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
event CoreFoundation MBS MacCF Plugin 3.4 ✅ Yes ❌ No ❌ No ❌ No
Function: Called as new XML structures are encountered by the parser.
Notes:
May return nil to indicate that the given structure should be skipped; if nil is returned for a given structure, only minimal parsing is done for that structure (enough to correctly determine its end, and to extract any data necessary for the remainder of the parse, such as Entity definitions).
CreateXMLStructure (or indeed, any of the tree-creation callbacks) will not be called for any children of the skipped structure. The only exception is that the top-most element will always be reported even if nil was returned for the document as a whole.
NOTE: for performance reasons, the node passed to createXMLStructure cannot be safely retained by the client; the node as a whole must be copied (via CFXMLNode.Copy), or its contents must be extracted and copied.

Whatever value you return, you get it back in the parameters of the addChild and the endXMLStructure event.

Some examples using this event:

CFXMLParserMBS.EndXMLStructure(xmlType as CFObjectMBS)
Type Topic Plugin Version macOS Windows Linux iOS Targets
event CoreFoundation MBS MacCF Plugin 3.4 ✅ Yes ❌ No ❌ No ❌ No
Function: Called once a structure (and all its children) are completely parsed.
Notes: As elements are encountered, CreateXMLStructure is called for them first, then AddChild to add the new structure to its parent, then AddChild (potentially several times) to add the new structure's children to it, then finally EndXMLStructure to show that the structure has been fully parsed.

Some examples using this event:

CFXMLParserMBS.HandleError(StatusCode as Integer) as boolean
Type Topic Plugin Version macOS Windows Linux iOS Targets
event CoreFoundation MBS MacCF Plugin 3.4 ✅ Yes ❌ No ❌ No ❌ No
Function: Called as errors/warnings are encountered in the data stream.
Notes:
The handleError function may always return FALSE to force the parser to stop; if handleError returns TRUE, the parser will attempt to recover (fatal errors will still cause the parse to abort immediately).
(Default for an emtpy event is true.)

Some examples using this event:

CFXMLParserMBS.ResolveExternalEntity(externalID as CFXMLExternalIDMBS) as CFBinaryDataMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
event CoreFoundation MBS MacCF Plugin 3.4 ✅ Yes ❌ No ❌ No ❌ No
Function: Called when external entities are referenced (NOT when they are simply defined). #
Notes: If the function returns nil, a place holder for the external entity is inserted into the tree.

Some examples using this event:

The items on this page are in the following plugins: MBS MacCF Plugin.

Feedback: Report problem or ask question.

The biggest plugin in space...