<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://adodb.org/dokuwiki/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://adodb.org/dokuwiki/feed.php">
        <title>ADOdb - v5:axmls</title>
        <description>Database Abstraction Layer for PHP</description>
        <link>https://adodb.org/dokuwiki/</link>
        <image rdf:resource="https://adodb.org/dokuwiki/lib/exe/fetch.php?media=logo.png" />
       <dc:date>2026-04-21T09:11:08+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://adodb.org/dokuwiki/doku.php?id=v5:axmls:adoschema&amp;rev=1452648360&amp;do=diff"/>
                <rdf:li rdf:resource="https://adodb.org/dokuwiki/doku.php?id=v5:axmls:axmls_functions&amp;rev=1452648367&amp;do=diff"/>
                <rdf:li rdf:resource="https://adodb.org/dokuwiki/doku.php?id=v5:axmls:axmls_index&amp;rev=1578927129&amp;do=diff"/>
                <rdf:li rdf:resource="https://adodb.org/dokuwiki/doku.php?id=v5:axmls:continueonerror&amp;rev=1452648361&amp;do=diff"/>
                <rdf:li rdf:resource="https://adodb.org/dokuwiki/doku.php?id=v5:axmls:convertschemafile&amp;rev=1771007085&amp;do=diff"/>
                <rdf:li rdf:resource="https://adodb.org/dokuwiki/doku.php?id=v5:axmls:convertschemastring&amp;rev=1771007139&amp;do=diff"/>
                <rdf:li rdf:resource="https://adodb.org/dokuwiki/doku.php?id=v5:axmls:destroy&amp;rev=1452648361&amp;do=diff"/>
                <rdf:li rdf:resource="https://adodb.org/dokuwiki/doku.php?id=v5:axmls:executeinline&amp;rev=1452648362&amp;do=diff"/>
                <rdf:li rdf:resource="https://adodb.org/dokuwiki/doku.php?id=v5:axmls:executeschema&amp;rev=1452648368&amp;do=diff"/>
                <rdf:li rdf:resource="https://adodb.org/dokuwiki/doku.php?id=v5:axmls:extractschema&amp;rev=1609286630&amp;do=diff"/>
                <rdf:li rdf:resource="https://adodb.org/dokuwiki/doku.php?id=v5:axmls:index&amp;rev=1452698563&amp;do=diff"/>
                <rdf:li rdf:resource="https://adodb.org/dokuwiki/doku.php?id=v5:axmls:parseschema&amp;rev=1577339055&amp;do=diff"/>
                <rdf:li rdf:resource="https://adodb.org/dokuwiki/doku.php?id=v5:axmls:parseschemafile&amp;rev=1577339415&amp;do=diff"/>
                <rdf:li rdf:resource="https://adodb.org/dokuwiki/doku.php?id=v5:axmls:parseschemastring&amp;rev=1577338576&amp;do=diff"/>
                <rdf:li rdf:resource="https://adodb.org/dokuwiki/doku.php?id=v5:axmls:printsql&amp;rev=1770911587&amp;do=diff"/>
                <rdf:li rdf:resource="https://adodb.org/dokuwiki/doku.php?id=v5:axmls:removeschema&amp;rev=1771007037&amp;do=diff"/>
                <rdf:li rdf:resource="https://adodb.org/dokuwiki/doku.php?id=v5:axmls:removeschemastring&amp;rev=1452648364&amp;do=diff"/>
                <rdf:li rdf:resource="https://adodb.org/dokuwiki/doku.php?id=v5:axmls:savesql&amp;rev=1452648365&amp;do=diff"/>
                <rdf:li rdf:resource="https://adodb.org/dokuwiki/doku.php?id=v5:axmls:schemafileversion&amp;rev=1452648365&amp;do=diff"/>
                <rdf:li rdf:resource="https://adodb.org/dokuwiki/doku.php?id=v5:axmls:schemastringversion&amp;rev=1452648365&amp;do=diff"/>
                <rdf:li rdf:resource="https://adodb.org/dokuwiki/doku.php?id=v5:axmls:setprefix&amp;rev=1452648365&amp;do=diff"/>
                <rdf:li rdf:resource="https://adodb.org/dokuwiki/doku.php?id=v5:axmls:setupgrademethod&amp;rev=1452648366&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://adodb.org/dokuwiki/lib/exe/fetch.php?media=logo.png">
        <title>ADOdb</title>
        <link>https://adodb.org/dokuwiki/</link>
        <url>https://adodb.org/dokuwiki/lib/exe/fetch.php?media=logo.png</url>
    </image>
    <item rdf:about="https://adodb.org/dokuwiki/doku.php?id=v5:axmls:adoschema&amp;rev=1452648360&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2016-01-13T01:26:00+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>adoSchema</title>
        <link>https://adodb.org/dokuwiki/doku.php?id=v5:axmls:adoschema&amp;rev=1452648360&amp;do=diff</link>
        <description>adoSchema



Syntax
object adoSchema(
  obj $db
  )
Description

Creating an adoSchema object is the first step in processing an XML schema. The only parameter is an ADOdb database connection object, which must already have been created.

Example Usage</description>
    </item>
    <item rdf:about="https://adodb.org/dokuwiki/doku.php?id=v5:axmls:axmls_functions&amp;rev=1452648367&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2016-01-13T01:26:07+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>AXMLS Function Reference</title>
        <link>https://adodb.org/dokuwiki/doku.php?id=v5:axmls:axmls_functions&amp;rev=1452648367&amp;do=diff</link>
        <description>AXMLS Function Reference

Unlike core ADOdb methods, AXMLS methods that accept boolean arguments, also require that the type of the argument passed be boolean (true/false). Passing an implied boolean value (1/0 or &#039;value&#039;/&#039;&#039;) may cause unexpected results.</description>
    </item>
    <item rdf:about="https://adodb.org/dokuwiki/doku.php?id=v5:axmls:axmls_index&amp;rev=1578927129&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2020-01-13T14:52:09+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>ADOdb-xmlschema</title>
        <link>https://adodb.org/dokuwiki/doku.php?id=v5:axmls:axmls_index&amp;rev=1578927129&amp;do=diff</link>
        <description>ADOdb XML Schema


ADOdb-xmlschema

See also

AXMLS Function Reference

The Meta Functions


Introduction

Adodb-xmlschema, or AXMLS, is a set of classes that extends the ADOdb data dictionary by processing XML formatted files and transforming them into ADOdb portable schema management commands. In simple terms:

	*  An XML file contains all of the definitions required to create a table, the associated columns, indexes and constraints.</description>
    </item>
    <item rdf:about="https://adodb.org/dokuwiki/doku.php?id=v5:axmls:continueonerror&amp;rev=1452648361&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2016-01-13T01:26:01+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>continueOnError</title>
        <link>https://adodb.org/dokuwiki/doku.php?id=v5:axmls:continueonerror&amp;rev=1452648361&amp;do=diff</link>
        <description>continueOnError

Syntax
bool continueOnError (
  optional bool $mode = NULL
  )
Description

Call this method to enable or disable continuation of SQL execution if an error occurs. If the mode is set to TRUE (continue), AXMLS will continue to apply SQL to the database, even if an error occurs. If the mode is set to FALSE (halt), AXMLS will halt execution of generated sql if an error occurs, though parsing of the schema will continue.</description>
    </item>
    <item rdf:about="https://adodb.org/dokuwiki/doku.php?id=v5:axmls:convertschemafile&amp;rev=1771007085&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-02-13T18:24:45+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>convertSchemaFile</title>
        <link>https://adodb.org/dokuwiki/doku.php?id=v5:axmls:convertschemafile&amp;rev=1771007085&amp;do=diff</link>
        <description>convertSchemaFile

Syntax
string ConvertSchemaFile (
  string $filename, 
  optional string $newVersion = NULL,
  optional string $newFile = NULL
  )
Description

Call this method to convert the specified XML schema file to a different AXMLS DTD version. For instance, to convert a schema created for an pre-1.0 version for AXMLS (DTD version 0.1) to a newer version of the DTD (e.g. 0.3).</description>
    </item>
    <item rdf:about="https://adodb.org/dokuwiki/doku.php?id=v5:axmls:convertschemastring&amp;rev=1771007139&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-02-13T18:25:39+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>convertSchemaString</title>
        <link>https://adodb.org/dokuwiki/doku.php?id=v5:axmls:convertschemastring&amp;rev=1771007139&amp;do=diff</link>
        <description>convertSchemaString



Syntax
string convertSchemaString (
  string $schema,
  optional string $newVersion = NULL,
  optional string $newFile = NULL
  )
Description

Call this method to convert a string containing an XML schema to a different AXMLS DTD version. For instance, to convert a schema created for an pre-1.0 version for AXMLS (DTD version 0.1) to a newer version of the DTD (e.g. 0.3).</description>
    </item>
    <item rdf:about="https://adodb.org/dokuwiki/doku.php?id=v5:axmls:destroy&amp;rev=1452648361&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2016-01-13T01:26:01+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>destroy</title>
        <link>https://adodb.org/dokuwiki/doku.php?id=v5:axmls:destroy&amp;rev=1452648361&amp;do=diff</link>
        <description>destroy

This method is deprecated and will be removed in ADOdb Version 6: adoSchema now cleans up automatically.

== Syntax --
void Destroy ()
Description

Call this method to clean up after an adoSchema object that is no longer in use.</description>
    </item>
    <item rdf:about="https://adodb.org/dokuwiki/doku.php?id=v5:axmls:executeinline&amp;rev=1452648362&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2016-01-13T01:26:02+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>executeInline</title>
        <link>https://adodb.org/dokuwiki/doku.php?id=v5:axmls:executeinline&amp;rev=1452648362&amp;do=diff</link>
        <description>executeInline



Syntax
bool executeInline (
  bool $mode = NULL
  )
Description

Call this method to enable or disable inline execution of the schema. 

If the mode is set to TRUE (inline execution), AXMLS applies the SQL to the database immediately as each schema entity is parsed.</description>
    </item>
    <item rdf:about="https://adodb.org/dokuwiki/doku.php?id=v5:axmls:executeschema&amp;rev=1452648368&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2016-01-13T01:26:08+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>executeSchema</title>
        <link>https://adodb.org/dokuwiki/doku.php?id=v5:axmls:executeschema&amp;rev=1452648368&amp;do=diff</link>
        <description>executeSchema



Syntax
integer executeSchema (
  optional array $sqlArray = NULL,
  optional boolean $continueOnErr = NULL
  )
Description

Applies the current XML schema to the database (post execution).

Call this method to apply the current schema (generally created by calling</description>
    </item>
    <item rdf:about="https://adodb.org/dokuwiki/doku.php?id=v5:axmls:extractschema&amp;rev=1609286630&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2020-12-30T00:03:50+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>extractSchema</title>
        <link>https://adodb.org/dokuwiki/doku.php?id=v5:axmls:extractschema&amp;rev=1609286630&amp;do=diff</link>
        <description>extractSchema



See Also

parseSchemaFile

Syntax
string extractSchema (
  optional bool $data = false,
  optional string $indent = &#039;  &#039;,
  optional string $prefix = &#039;&#039;,
  optional bool $stripprefix = false
  )
Description

Extracts a XML schema from an existing database.</description>
    </item>
    <item rdf:about="https://adodb.org/dokuwiki/doku.php?id=v5:axmls:index&amp;rev=1452698563&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2016-01-13T15:22:43+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>ADOdb XML Schema</title>
        <link>https://adodb.org/dokuwiki/doku.php?id=v5:axmls:index&amp;rev=1452698563&amp;do=diff</link>
        <description>ADOdb XML Schema



Pages in this namespace:

	* ADOdb-xmlschema
	* adoSchema
	* AXMLS Function Reference
	* continueOnError
	* convertSchemaFile
	* convertSchemaString
	* destroy
	* executeInline
	* executeSchema
	* extractSchema
	* parseSchema
	* parseSchemaFile
	* parseSchemaString
	* printSql
	* removeSchema
	* removeSchemaString
	* saveSql
	* schemaFileVersion
	* schemaStringVersion
	* setPrefix
	* setUpgradeMethod</description>
    </item>
    <item rdf:about="https://adodb.org/dokuwiki/doku.php?id=v5:axmls:parseschema&amp;rev=1577339055&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-12-26T05:44:15+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>parseSchema</title>
        <link>https://adodb.org/dokuwiki/doku.php?id=v5:axmls:parseschema&amp;rev=1577339055&amp;do=diff</link>
        <description>parseSchema



See Also

parseSchemaString()

parseSchemaFile()

executeSchema


Syntax
array parseSchema (
  string $filename, 
  optional bool $returnSchema = FALSE
  )
Description

Loads an XML schema from a file and converts it to SQL.

Call this method to load the specified schema from a file (see the DTD for the proper format) and generate the SQL necessary to create the database described by the schema.</description>
    </item>
    <item rdf:about="https://adodb.org/dokuwiki/doku.php?id=v5:axmls:parseschemafile&amp;rev=1577339415&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-12-26T05:50:15+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>parseSchemaFile</title>
        <link>https://adodb.org/dokuwiki/doku.php?id=v5:axmls:parseschemafile&amp;rev=1577339415&amp;do=diff</link>
        <description>parseSchemaFile



See Also

parseSchema()

parseSchemaString()

extractSchema

executeSqlArray


Syntax
array parseSchemaFile (
  mixed $filename,
  optional bool $returnSchema = false
  )
Loads an XML schema from a file and converts it to SQL.

Call this method to load the specified schema from a file (see the DTD for the proper format) and generate the SQL necessary to create the database described by the schema.</description>
    </item>
    <item rdf:about="https://adodb.org/dokuwiki/doku.php?id=v5:axmls:parseschemastring&amp;rev=1577338576&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-12-26T05:36:16+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>parseSchemaString</title>
        <link>https://adodb.org/dokuwiki/doku.php?id=v5:axmls:parseschemastring&amp;rev=1577338576&amp;do=diff</link>
        <description>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.</description>
    </item>
    <item rdf:about="https://adodb.org/dokuwiki/doku.php?id=v5:axmls:printsql&amp;rev=1770911587&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-02-12T15:53:07+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>printSql</title>
        <link>https://adodb.org/dokuwiki/doku.php?id=v5:axmls:printsql&amp;rev=1770911587&amp;do=diff</link>
        <description>printSql



Syntax
array printSql (
  optional string $format = &#039;NONE&#039;
  )
Description

Returns the last generated current SQL array in printable format.

Call this method to fetch the array of SQL queries resulting from ParseSchema() or ParseSchemaString().

The method returns an array of SQL statements or FALSE if an error occurs. The available options are:</description>
    </item>
    <item rdf:about="https://adodb.org/dokuwiki/doku.php?id=v5:axmls:removeschema&amp;rev=1771007037&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-02-13T18:23:57+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>removeSchema</title>
        <link>https://adodb.org/dokuwiki/doku.php?id=v5:axmls:removeschema&amp;rev=1771007037&amp;do=diff</link>
        <description>removeSchema


array removeSchema (
  string $filename, 
  optional bool $returnSchema=false
   )
Description

Loads an XML schema from a file and converts it to uninstallation SQL.

Call this method to load the specified schema (see the DTD for the proper format) from the filesystem and generate the SQL necessary to remove the database described.</description>
    </item>
    <item rdf:about="https://adodb.org/dokuwiki/doku.php?id=v5:axmls:removeschemastring&amp;rev=1452648364&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2016-01-13T01:26:04+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>removeSchemaString</title>
        <link>https://adodb.org/dokuwiki/doku.php?id=v5:axmls:removeschemastring&amp;rev=1452648364&amp;do=diff</link>
        <description>removeSchemaString



Syntax
array removeSchemaString (
  string $schema,
  optional bool $returnSchema=FALSE
  )
Description

Converts an XML schema string to uninstallation 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 uninstall the database described by the schema.</description>
    </item>
    <item rdf:about="https://adodb.org/dokuwiki/doku.php?id=v5:axmls:savesql&amp;rev=1452648365&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2016-01-13T01:26:05+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>saveSql</title>
        <link>https://adodb.org/dokuwiki/doku.php?id=v5:axmls:savesql&amp;rev=1452648365&amp;do=diff</link>
        <description>saveSql


boolean saveSql (
  optional string $filename = &#039;./schema.sql&#039;
  )
Description

Saves the current SQL array to the local filesystem as a list of SQL queries.

Call this method to save the array of SQL queries (generally resulting from a parsed XML schema) to the filesystem. The function returns a boolean indicating success or failure of the save</description>
    </item>
    <item rdf:about="https://adodb.org/dokuwiki/doku.php?id=v5:axmls:schemafileversion&amp;rev=1452648365&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2016-01-13T01:26:05+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>schemaFileVersion</title>
        <link>https://adodb.org/dokuwiki/doku.php?id=v5:axmls:schemafileversion&amp;rev=1452648365&amp;do=diff</link>
        <description>schemaFileVersion

Syntax
string schemaFileVersion (
string $filename
)
Description

Returns the AXMLS Schema Version of the requested XML schema file.

Call this method to obtain the AXMLS DTD version of the requested XML schema file.

The method returns the schema version number or FALSE on error</description>
    </item>
    <item rdf:about="https://adodb.org/dokuwiki/doku.php?id=v5:axmls:schemastringversion&amp;rev=1452648365&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2016-01-13T01:26:05+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>schemaStringVersion</title>
        <link>https://adodb.org/dokuwiki/doku.php?id=v5:axmls:schemastringversion&amp;rev=1452648365&amp;do=diff</link>
        <description>schemaStringVersion



Syntax
string schemaStringVersion (
  string $xmlstring
  )
Description

The method returns the AXMLS Schema Version of the provided XML schema string.

Call this method to obtain the AXMLS DTD version of the provided XML schema string.</description>
    </item>
    <item rdf:about="https://adodb.org/dokuwiki/doku.php?id=v5:axmls:setprefix&amp;rev=1452648365&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2016-01-13T01:26:05+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>setPrefix</title>
        <link>https://adodb.org/dokuwiki/doku.php?id=v5:axmls:setprefix&amp;rev=1452648365&amp;do=diff</link>
        <description>setPrefix



Syntax
boolean setPrefix (
  string $prefix = &#039;&#039;
  optional bool $addUnderscore=true
  )
Description

Sets a prefix for database objects

Call this method to set a standard prefix that will be prepended to all database tables and indexes</description>
    </item>
    <item rdf:about="https://adodb.org/dokuwiki/doku.php?id=v5:axmls:setupgrademethod&amp;rev=1452648366&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2016-01-13T01:26:06+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>setUpgradeMethod</title>
        <link>https://adodb.org/dokuwiki/doku.php?id=v5:axmls:setupgrademethod&amp;rev=1452648366&amp;do=diff</link>
        <description>setUpgradeMethod



Syntax
string setUpgradeMethod (
  optional string $method = &#039;&#039;
  )
Description

Sets the method to be used for upgrading an existing database

Use this method to specify how existing database objects should be upgraded. The method option can be set to one of the following:</description>
    </item>
</rdf:RDF>
