wwXML::CreateCursorFromSchema

Creates a cursor from a Schema definition in wwXML's schema format.

o.CreateCursorFromSchema(loSchema,lcAlias)

Return Value

.T. or .F.

Parameters

loSchema
XML DOM node that points at the <Schema> element.

lcAlias
The alias to create.

Remarks

The schema must be in wwXML's format.

This method is called internally by BuildCursorFromXML, which creates a cursor from the actual XML data using the embedded attribute data containing the type info. If there is no data (empty cursor), the method then calls CreateCursorFromSchema to try and create the cursor from the schema.

If data is available you should always use BuidlCursorFromXML as it is much faster than this method and will revert to this method only if no data is available.

There should be no need to call this method directly as XMLToCursor() calls BuildCursorFromXML and CreateCursorFromSchema as needed.


See also:

Class wwXML | wwXML::XMLToCursor | wwXML::BuildCursorFromXML

© West Wind Technologies, 2023 • Updated: 12/27/01
Comment or report problem with topic