wwXML::CreateDataStructureSchema
Creates a Schema string from the currently active cursor/alias. The schema is generated as separate schema string.
Note that the schema created is for the cursor fragment only and does not include the document root. This makes it possible to create multiple schemas into a single document and link them in from within the document. CursorToXML handles creation of embedded schemas that take advantage of this fact through thte nCreateDataStructure=1 flag.
o.CreateDataStructureSchema(lcName, lcRowName, loRS)
Parameters
lcName
Optional - element name used at the table level. Note this tag sits underneath the document root. (wwBanners in the example).
- Default value:* The name of the current Alias().
lcRowName
Optional - The element name used for each row of the cursor.
- Default value:* "row"
loRS
Optional - if passed the DTD is created from an ADO recordset rather than from a VFP cursor.
Example
o=CREATEOBJECT("wwXML") lcXML = o.createdatastructureschema("customers","customer") ShowText(lcXML)
See also
Class wwXML (High Level Methods)wwxml::nCreateDataStructure
wwxml::CreateDataStructureDTD
© West Wind Technologies, 2025 • Updated: 2025-03-12
Comment or report problem with topic