OnDataavailable Events This event is triggered when the XML file is valid. The basic syntax for this event the following three treatment Inline: ;. Event property: object.ondataavailable = handler ;. Named script:.