Contains the following for the specified objects:
XMLAdapter: XMLName contains the name of the element that specifies where to look for table elements. Read/write.
For more information about how the XMLAdapterВ LoadXML and Attach methods set this property, see the Remarks section.
XMLTable: XMLName contains the element name for that table in the XML document. Read-only when associated with an XMLAdapter object.
XMLField: XMLName contains the element or attribute name for that field in the XML document. Read-only when attached to an XMLTable object.
Object.XMLName |
Return Value
Character data type. XMLName contains a Unicode character string or is empty ("") when not populated.
Note: |
---|
Before assigning a string value to XMLName, you must convert the value to Unicode. You can use the STRCONV(В ) function to perform this requirement. |
Remarks
Applies To: XMLAdapter Class | XMLTable Class | XMLField Class
The XMLAdapterВ LoadXML and Attach methods set the XMLAdapterВ XMLName property as follows:
-
ADO.NET DataSet element name for ADO.NET DataSet
-
"data" for ADO Recordset XML
-
Empty string ("") for Microsoft XML Data Reduced Schema (XDR) as used by Microsoft SQL-XML
If XMLAdapterВ XMLName is empty, XMLTableВ ToCursor looks for table elements within element referenced by the XMLAdapterВ IXMLDOMElement property.
The XMLAdapterВ ToXML method uses the XMLAdapterВ XMLName as the DataSet element name. If XMLName is empty, ToXML uses the string, "VFPDataSet".
The XMLTableВ ChangesToCursor and ApplyDiffgram methods require that XMLAdapterВ XMLName be set to a nonempty value and that the XML document is in DiffGram format.
See Also
Other Resources
PropertiesXMLAdapter Object Properties, Methods, and Events
XMLTable Object Properties, Methods, and Events
XMLField Object Properties, Methods, and Events
LoadXML Method
Attach Method (Visual FoxPro)
STRCONV( ) Function
ToCursor Method
IXMLDOMElement Property
ToXML Method
ChangesToCursor Method
ApplyDiffgram Method