RXS_allAttrHandler()
Call this subprocedure before RXS_parse() to tell the parser to notify a specific subprocedure of your program every time it encounters an XML attribute within an XML element (i.e. <element example="AttributeXYZ">I am the content</element>
has an attribute named “example” with a value of “AttributeXYZ”.) When the parser encounters an attribute, the specified handler will receive the value of the attribute (in this case “AttributeXYZ”).
Note: Using this approach saves coding time compared to using RXS_addHandler() when a program will retrieve a majority of the “attribute” events.
Subprocedure Prototype
|
Enables parsing of all XML attribute events. |
|
The address of the local subprocedure in your program that should be called when it encounters any attribute of any element. This subprocedure must have the prototype as shown in the example event handler. Use the %PADDR Built-In Function to obtain the address of the local subprocedure (e.g. %Paddr(myHandler)). |