AddTableSchema Method

Adds a new XMLTable object to the XMLAdapter Tables collection and the necessary XMLField objects to the XMLTable Fields 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[, lAutoNest]]]]]]])

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.

lAutoNest

Specifies whether tables added to the XMLAdapter Tables collection are automatically nested. The default value is specified by the RespectNesting property for the XMLAdapter object.

Expand imageRemarks

Expand imageSee Also


© , 1996-2020 • Updated: 11/10/20
Comment or report problem with topic