AddTableSchema Method

Adds a new XMLTable object to the XMLAdapterTables collection and the necessary XMLField objects to the XMLTableFields collection based on the specified table alias.

The following parameters must be converted to Unicode before passing as parameters to AddTableSchema:

  • cXMLName
  • cXMLNamespace
  • cXMLPrefix

You can use the STRCONV( ) function to perform this requirement.

XMLAdapter.AddTableSchema( cAlias [, lElementBased [, cXMLName 
   [, cXMLNamespace [, cXMLPrefix [, lWrapMemoInCDATA [, lWrapCharacterInCDATA ]]]]]] )

Parameters

  • cAlias
    Specifies the alias of the Visual FoxPro table or cursor to use as a schema template.
  • lElementBased
    Specifies the style of XML. The default value of lElementBased is True (.T.).
  • cXMLName
    Specifies the name to use for the table in the XML and must be converted to Unicode before passing as a parameter. The default value for the cXMLName parameter is the value of the cAlias parameter. Conversion to Unicode is performed automatically.
  • cXMLNamespace
    Specifies the XML Namespace to use, which must be converted to Unicode before passing as a parameter. The default value is an empty ("") string.
  • cXMLPrefix
    Specifies the XML Prefix to use, which must be converted to Unicode before passing as a parameter. The default value is an empty ("") string.
  • lWrapMemoInCDATA
    Specifies whether to wrap Memo fields in CDATA sections. The default value is specified by the WrapMemoInCDATA property for the XMLAdapter object.
  • lWrapCharacterInCDATA
    Specifies whether to wrap Character fields in CDATA sections. The default value is specified by the WrapCharInCDATA property for the XMLAdapter object.

Remarks

The following property settings affect how the AddTableSchema method is executed:

See Also

Methods | XMLAdapter Object Properties, Methods, and Events | Tables Collection (XMLAdapter) | XMLField Class | Fields Collection (XMLTable) | STRCONV( ) Function | Memo Field Type | Character Data Type

Applies To: XMLAdapter Class