AutoCAD Map 3D 2009 Geospatial Platform Reference

AutoCAD Map 3D Geospatial Platform API

virtual STRING MgFeatureService::SchemaToXml ( MgFeatureSchemaCollection schema  )  [pure virtual]

Translates the FDO schema information in the provided MgFeatureSchemaCollection object into a string containing an XML representation of the schema definitions in the feature source. See Feature Schema .

Remarks:
The XML representation of the schema definitions conforms to FDO XML schema, which are based on OGC GML schema. How to specify a schema definition in XML is discussed in the Autodesk FDO API Developer's Guide.
.NET Syntax
virtual string SchemaToXml(MgFeatureSchemaCollection schema);
Java Syntax
virtual String SchemaToXml(MgFeatureSchemaCollection schema);
PHP Syntax
virtual string SchemaToXml(MgFeatureSchemaCollection schema);

Parameters:
schema (MgFeatureSchemaCollection) A FeatureSchemaCollection object.
Returns:
Returns a string containiing a set of FDO schema definitions in XML format.
Exceptions:
MgFeatureServiceException 
MgNullArgumentException 
MgFdoException