LoadXML Method

Visual Studio .NET 2003

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 XMLAdapter IXMLDOMElement 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 XMLAdapter XMLName, XMLNamespace, XMLPrefix, IsDiffgram, and SOM properties to appropriate values.

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


Specifies an XML file name, XML string, or expression that evaluates to a valid XML file name or string.
Specifies whether cXMLDocument is a file name. The default value of lFile is False (.F.).
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 http://msdn.microsoft.com/library/.


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