ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:axmls:parseschemastring

parseSchemaString

See Also

executeSqlArray

Syntax
array ParseSchemaString (
  string $xmlstring,
  optional bool $returnSchema = FALSE
  )

Description

Converts an XML schema string to SQL.

Call this method to parse a string containing an XML schema (see the DTD for the proper format) and generate the SQL necessary to create the database described by the schema.

The method returns an array of SQL queries, ready to execute, or optionally, the passed in schema string.

In order to execute the array of queries, they must be passed to the executeSqlArray method.

v5/axmls/parseschemastring.txt · Last modified: 2016/01/13 02:26 by mnewnham