Edit

XML_SetElementHandler (expatParserHandle, startHandlerName, endHandlerName)

Definition:  Specify handlers to be called when the parser encounters start and end tags for elements.

Your start handler should be written as on MyStartHandler(tagName, attrs). tagName will be the element name and attrs will be an associative array containing any attributes for the element. You end handler should be decalred as on MyEndHandler(tagName).

Create an expatParserHandle using XML_ParserCreate.

Availability:  MWScript scripts in MoneyWorks Gold v8.1 and later

Suite:  This function is part of the Expat XML parsing suite of functions.

See Also:

XML_Free: Release an Expat parser

XML_Parse: Parse an XML string using an Expat parser

XML_ParserCreate: Create an Expat parser for parsing XML

XML_SetCharacterDataHandler: Set a character data Handler (callback) for an Expat parser