LoadXML Method

Loads XML from a file or string into a Document Object Model (DOM) document and attaches it to the XMLAdapter object.

LoadXML also sets the XMLAdapterIXMLDOMElement property. In addition, if the XML schema is analyzed, Visual FoxPro repopulates the Tables collection with a new set of XMLTable objects and sets the XMLAdapterXMLName, XMLNamespace, XMLPrefix, IsDiffgram, and SOM properties to appropriate values.

XMLAdapter.LoadXML( cXMLDocument [, lFile [, lValidateOnParse ]] )

Parameters

  • cXMLDocument
    Specifies an XML file name, XML string, or expression that evaluates to a valid XML file name or string.

  • lFile
    Specifies whether cXMLDocument is a file name. The default value of lFile is False (.F.).

  • lValidateOnParse
    Specifies whether the XML should be validated upon parsing. The default value of lValidateOnParse is True (.T.).

    For more information about how DOM performs validation, see the Microsoft XML Core Services (MSXML) 4.0 SDK on the MSDN Library Web site at https://msdn.microsoft.com/library/.

Remarks

The following property settings affect how LoadXML method is executed:

See Also

Methods | XMLAdapter Object Properties, Methods, and Events | IXMLDOMElement Property | Tables Collection (XMLAdapter) | XMLName Property | XMLNamespace Property | XMLPrefix Property | IsDiffgram Property | SOM Property | LoadXML Method

Applies To: XMLAdapter Class