<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://docs.moodle.org/dev/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Okiknow</id>
	<title>MoodleDocs - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://docs.moodle.org/dev/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Okiknow"/>
	<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/Special:Contributions/Okiknow"/>
	<updated>2026-10-07T10:10:38Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Using_XMLDB&amp;diff=7746</id>
		<title>Using XMLDB</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Using_XMLDB&amp;diff=7746"/>
		<updated>2008-01-12T15:51:44Z</updated>

		<summary type="html">&lt;p&gt;Okiknow: /* Getting Started */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(This page is in progress of writing and editing, intended for third-party module developers to help them switch to XMLDB.)&lt;br /&gt;
{{Moodle 1.7}}&lt;br /&gt;
==What is XMLDB and how can it help you==&lt;br /&gt;
XMLDB is a database format created to help developer from creating custom database schemas for different database system. It&#039;s like a database in XML format. Everywhere in Moodle now use XMLDB.&lt;br /&gt;
&lt;br /&gt;
In every module folder, there is db/ folder where database structure stored. The folder usually contains mysql.php, mysql.sql, etc. for different database.&lt;br /&gt;
&lt;br /&gt;
It&#039;s mean that you have to create different files for each database systems. If there are more database you want your module to be compatible with, you have to create more files. XMLDB is intended to solve this problem. Switching to XMLDB is very easy, save your time and effort by creating just 1 file.&lt;br /&gt;
&lt;br /&gt;
==Getting Started==&lt;br /&gt;
XMLDB file in module is stored in db/ folder, named install.xml. You can use a built-in XMLDB editor to create or edit any install.xml files. If you&#039;re using MySQL as your default database schemes. XMLDB editor&#039;s powerful tools allowing retrofit MySQL table to XMLDB format.&lt;br /&gt;
&lt;br /&gt;
XMLDB editor is located in administration block, go to &#039;&#039;Miscellaneous &amp;gt; XMLDB editor&#039;&#039;. Find your module name. You won&#039;t be able to click on &#039;&#039;Create&#039;&#039; link and also can&#039;t edit your module (If &#039;&#039;Create&#039;&#039; link is clickable you can skip this step). Since you must make your module folder has write permission first (And if you haven&#039;t created db/ folder in your module folder yet, create it now). In Linux operating system, &#039;&#039;chmod&#039;&#039; your /db folder to 777 solves this. Now you&#039;re ready to create your module&#039;s XMLDB files.&lt;br /&gt;
&lt;br /&gt;
Note that XMLDB editor is not a tool for creating your module (It can help you about database). It is a tool to manage XMLDB database file (think about phpmyadmin manages SQL database). You can create tables/fields/keys/indexes or export your exist MySQL tables to XMLDB.&lt;br /&gt;
&lt;br /&gt;
Another XMLDB&#039;s advantage is you can create table&#039;s comment as you want. To describe it to other developer.&lt;br /&gt;
&lt;br /&gt;
XMLDB editor is really easy to work with. We strongly recommend you to play with it for a while.&lt;br /&gt;
&lt;br /&gt;
More information about XMLDB editor : [https://docs.moodle.org/en/XMLDB_editor], XMLDB Structure : [https://docs.moodle.org/en/Development:XMLDB_defining_an_XML_structure].&lt;br /&gt;
&lt;br /&gt;
===Create install.xml===&lt;br /&gt;
&lt;br /&gt;
If you never create install.xml before (your db/ doesn&#039;t have install.xml), click &#039;&#039;Create&#039;&#039; first. install.xml will store your database info for this module.&lt;br /&gt;
&lt;br /&gt;
===Start editing===&lt;br /&gt;
To start edit install.xml, click &#039;&#039;Load&#039;&#039; and then &#039;&#039;Edit&#039;&#039;. You need to do this every time before editing any XMLDB file.  If this is your first time, there is a default table named like your module stored.&lt;br /&gt;
&lt;br /&gt;
===Create new table===&lt;br /&gt;
&lt;br /&gt;
# Go to &#039;&#039;New Table&#039;&#039;.&lt;br /&gt;
# Enter table name and comment, click &#039;&#039;change&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
===Add field in table===&lt;br /&gt;
&lt;br /&gt;
# Click &#039;&#039;Edit&#039;&#039; on your desired table.&lt;br /&gt;
# Click &#039;&#039;New Field&#039;&#039;, You can now edit field information like name, comment, type, length, etc. See [https://docs.moodle.org/en/Development:XMLDB_column_types] for XMLDB column type comparing with other database system.&lt;br /&gt;
# When you&#039;re done, click &#039;&#039;Change&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
===Retrofit MySQL table to XMLDB===&lt;br /&gt;
&lt;br /&gt;
XMLDB editor can retrofit MySQL table to XMLDB. In other word, it can create XMLDB table from existing SQL. This is useful if your module database already using MySQL.&lt;br /&gt;
First, your module has to be installed. Then follow these steps:&lt;br /&gt;
&lt;br /&gt;
# Click &#039;&#039;New Table from MySQL&#039;&#039;&lt;br /&gt;
# In &#039;&#039;Create Table&#039;&#039; box, choose your table from MySQL database. In &#039;&#039;After Table&#039;&#039; choose where would you like to add this table to (It doesn&#039;t matter, just for arrangement). Click &#039;&#039;Create&#039;&#039;.&lt;br /&gt;
# Do it again untill every table added, you are done !&lt;br /&gt;
&lt;br /&gt;
Note : Table name must contains only lowercase character, number, underscore and length must not exceed 28 characters. More info [https://docs.moodle.org/en/Development:XMLDB_defining_an_XML_structure#Conventions]&lt;br /&gt;
&lt;br /&gt;
===Other operation===&lt;br /&gt;
It&#039;s intuitive once you use it. There are visible link for editing, moving up or down and deleting.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
[[XMLDB_introduction]]&lt;br /&gt;
&lt;br /&gt;
[[XMLDB defining an XML structure]]&lt;br /&gt;
&lt;br /&gt;
[[XMLDB_column_types]]&lt;br /&gt;
&lt;br /&gt;
[[XMLDB editor]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Using XMLDB]]&lt;br /&gt;
[[Category:XMLDB]]&lt;/div&gt;</summary>
		<author><name>Okiknow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Using_XMLDB&amp;diff=7745</id>
		<title>Using XMLDB</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Using_XMLDB&amp;diff=7745"/>
		<updated>2008-01-12T15:41:13Z</updated>

		<summary type="html">&lt;p&gt;Okiknow: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(This page is in progress of writing and editing, intended for third-party module developers to help them switch to XMLDB.)&lt;br /&gt;
{{Moodle 1.7}}&lt;br /&gt;
==What is XMLDB and how can it help you==&lt;br /&gt;
XMLDB is a database format created to help developer from creating custom database schemas for different database system. It&#039;s like a database in XML format. Everywhere in Moodle now use XMLDB.&lt;br /&gt;
&lt;br /&gt;
In every module folder, there is db/ folder where database structure stored. The folder usually contains mysql.php, mysql.sql, etc. for different database.&lt;br /&gt;
&lt;br /&gt;
It&#039;s mean that you have to create different files for each database systems. If there are more database you want your module to be compatible with, you have to create more files. XMLDB is intended to solve this problem. Switching to XMLDB is very easy, save your time and effort by creating just 1 file.&lt;br /&gt;
&lt;br /&gt;
==Getting Started==&lt;br /&gt;
XMLDB file in module is stored in db/ folder, named install.xml. You can use a built-in XMLDB editor to create or edit any install.xml files. If you&#039;re using MySQL as your default database schemes. XMLDB editor&#039;s powerful tools allowing retrofit MySQL table to XMLDB format.&lt;br /&gt;
&lt;br /&gt;
XMLDB editor is located in administration block, go to &#039;&#039;Miscellaneous &amp;gt; XMLDB editor&#039;&#039;. Find your module name. You won&#039;t be able to click on &#039;&#039;Create&#039;&#039; link and also can&#039;t edit your module (If &#039;&#039;Create&#039;&#039; link is clickable you can skip this step). Since you must make your module folder has write permission first (And if you haven&#039;t created db/ folder in your module folder yet, create it now). In Linux operating system, &#039;&#039;chmod&#039;&#039; your /db folder to 777 solves this. Now you&#039;re ready to create your module&#039;s XMLDB files.&lt;br /&gt;
&lt;br /&gt;
Note that XMLDB editor is not a tool for creating your module (It can help you about database). It is a tool to manage XMLDB database file (think about phpmyadmin manages SQL database). You can create tables/fields/keys/indexes or export your exist MySQL tables to XMLDB.&lt;br /&gt;
&lt;br /&gt;
Another XMLDB&#039;s advantage is you can create table&#039;s comment as you want. To describe it to other developer.&lt;br /&gt;
&lt;br /&gt;
XMLDB editor is really easy to work with. We strongly recommend you to play with it for a while.&lt;br /&gt;
&lt;br /&gt;
More information about XMLDB editor : [https://docs.moodle.org/en/XMLDB_editor], XMLDB Structure : [https://docs.moodle.org/en/Development:XMLDB_defining_an_XML_structure].&lt;br /&gt;
&lt;br /&gt;
===Create install.xml===&lt;br /&gt;
&lt;br /&gt;
If you never create install.xml before (your db/ doesn&#039;t have install.xml), click &#039;&#039;Create&#039;&#039; first. install.xml will store your database info for this module.&lt;br /&gt;
&lt;br /&gt;
===Start editing===&lt;br /&gt;
To start edit install.xml, click &#039;&#039;Load&#039;&#039; and then &#039;&#039;Edit&#039;&#039;. You need to do this every time before editing any XMLDB file.  If this is your first time, there is a default table named like your module stored.&lt;br /&gt;
&lt;br /&gt;
===Create new table===&lt;br /&gt;
&lt;br /&gt;
# Go to &#039;&#039;New Table&#039;&#039;.&lt;br /&gt;
# Enter table name and comment, click &#039;&#039;change&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
===Add field in table===&lt;br /&gt;
&lt;br /&gt;
# Click &#039;&#039;Edit&#039;&#039; on your desired table.&lt;br /&gt;
# Click &#039;&#039;New Field&#039;&#039;, You can now edit field information like name, comment, type, length, etc. See [https://docs.moodle.org/en/Development:XMLDB_column_types] for XMLDB column type comparing with other database system.&lt;br /&gt;
# When you&#039;re done, click &#039;&#039;Change&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
===Retrofit MySQL table to XMLDB===&lt;br /&gt;
&lt;br /&gt;
XMLDB editor can retrofit MySQL table to XMLDB. In other word, it can create XMLDB table from existing SQL. This is useful if your module database already using MySQL.&lt;br /&gt;
First, your module has to be installed. Then follow these steps:&lt;br /&gt;
&lt;br /&gt;
# Click &#039;&#039;New Table from MySQL&#039;&#039;&lt;br /&gt;
# In &#039;&#039;Create Table&#039;&#039; box, choose your table from MySQL database. In &#039;&#039;After Table&#039;&#039; choose where would you like to add this table to (It doesn&#039;t matter, just for arrangement). Click &#039;&#039;Create&#039;&#039;.&lt;br /&gt;
# Do it again untill every table added, you are done !&lt;br /&gt;
&lt;br /&gt;
Note : Table name must contains only lowercase character, number, underscore and length must not exceed 28 characters. More info [https://docs.moodle.org/en/Development:XMLDB_defining_an_XML_structure#Conventions]&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
[[XMLDB_introduction]]&lt;br /&gt;
&lt;br /&gt;
[[XMLDB defining an XML structure]]&lt;br /&gt;
&lt;br /&gt;
[[XMLDB_column_types]]&lt;br /&gt;
&lt;br /&gt;
[[XMLDB editor]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Using XMLDB]]&lt;br /&gt;
[[Category:XMLDB]]&lt;/div&gt;</summary>
		<author><name>Okiknow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Using_XMLDB&amp;diff=7744</id>
		<title>Using XMLDB</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Using_XMLDB&amp;diff=7744"/>
		<updated>2008-01-12T15:38:00Z</updated>

		<summary type="html">&lt;p&gt;Okiknow: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(This page is in progress of writing and editing, intended for third-party module developers to help them switch to XMLDB.)&lt;br /&gt;
{{Moodle 1.7}}&lt;br /&gt;
==What is XMLDB and how can it help you==&lt;br /&gt;
XMLDB is a database format created to help developer from creating custom database schemas for different database system. It&#039;s like a database in XML format. Everywhere in Moodle now use XMLDB.&lt;br /&gt;
&lt;br /&gt;
In every module folder, there is db/ folder where database structure stored. The folder usually contains mysql.php, mysql.sql, etc. for different database.&lt;br /&gt;
&lt;br /&gt;
It&#039;s mean that you have to create different files for each database systems. If there are more database you want your module to be compatible with, you have to create more files. XMLDB is intended to solve this problem. Switching to XMLDB is very easy, save your time and effort by creating just 1 file.&lt;br /&gt;
&lt;br /&gt;
==Getting Started==&lt;br /&gt;
XMLDB file in module is stored in db/ folder, named install.xml. You can use a built-in XMLDB editor to create or edit any install.xml files. If you&#039;re using MySQL as your default database schemes. XMLDB editor&#039;s powerful tools allowing retrofit MySQL table to XMLDB format.&lt;br /&gt;
&lt;br /&gt;
XMLDB editor is located in administration block, go to &#039;&#039;Miscellaneous &amp;gt; XMLDB editor&#039;&#039;. Find your module name. You won&#039;t be able to click on &#039;&#039;Create&#039;&#039; link and also can&#039;t edit your module (If &#039;&#039;Create&#039;&#039; link is clickable you can skip this step). Since you must make your module folder has write permission first (And if you haven&#039;t created db/ folder in your module folder yet, create it now). In Linux operating system, &#039;&#039;chmod&#039;&#039; your /db folder to 777 solves this. Now you&#039;re ready to create your module&#039;s XMLDB files.&lt;br /&gt;
&lt;br /&gt;
Note that XMLDB editor is not a tool for creating your module (It can help you about database). It is a tool to manage XMLDB database file (think about phpmyadmin manages SQL database). You can create tables/fields/keys/indexes or export your exist MySQL tables to XMLDB.&lt;br /&gt;
&lt;br /&gt;
Another XMLDB&#039;s advantage is you can create table&#039;s comment as you want. To describe it to other developer.&lt;br /&gt;
&lt;br /&gt;
XMLDB editor is really easy to work with. We strongly recommend you to play with it for a while.&lt;br /&gt;
&lt;br /&gt;
More information about XMLDB editor : [https://docs.moodle.org/en/XMLDB_editor], XMLDB Structure : [https://docs.moodle.org/en/Development:XMLDB_defining_an_XML_structure].&lt;br /&gt;
&lt;br /&gt;
===Create install.xml===&lt;br /&gt;
&lt;br /&gt;
If you never create install.xml before (your db/ doesn&#039;t have install.xml), click &#039;&#039;Create&#039;&#039; first. install.xml will store your database info for this module.&lt;br /&gt;
&lt;br /&gt;
===Start editing===&lt;br /&gt;
To start edit install.xml, click &#039;&#039;Load&#039;&#039; and then &#039;&#039;Edit&#039;&#039;. You need to do this every time before editing any XMLDB file.  If this is your first time, there is a default table named like your module stored.&lt;br /&gt;
&lt;br /&gt;
===Create new table===&lt;br /&gt;
&lt;br /&gt;
# Go to &#039;&#039;New Table&#039;&#039;.&lt;br /&gt;
# Enter table name and comment, click &#039;&#039;change&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
===Add field in table===&lt;br /&gt;
&lt;br /&gt;
# Click &#039;&#039;Edit&#039;&#039; on your desired table.&lt;br /&gt;
# Click &#039;&#039;New Field&#039;&#039;, You can now edit field information like name, comment, type, length, etc.&lt;br /&gt;
# When you&#039;re done, click &#039;&#039;Change&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
===Retrofit MySQL table to XMLDB===&lt;br /&gt;
&lt;br /&gt;
XMLDB editor can retrofit MySQL table to XMLDB. In other word, it can create XMLDB table from existing SQL. This is useful if your module database already using MySQL.&lt;br /&gt;
First, your module has to be installed. Then follow these steps:&lt;br /&gt;
&lt;br /&gt;
# Click &#039;&#039;New Table from MySQL&#039;&#039;&lt;br /&gt;
# In &#039;&#039;Create Table&#039;&#039; box, choose your table from MySQL database. In &#039;&#039;After Table&#039;&#039; choose where would you like to add this table to (It doesn&#039;t matter, just for arrangement). Click &#039;&#039;Create&#039;&#039;.&lt;br /&gt;
# Do it again untill every table added, you are done !&lt;br /&gt;
&lt;br /&gt;
Note : Table name must contains only lowercase character, number, underscore and length must not exceed 28 characters. More info [https://docs.moodle.org/en/Development:XMLDB_defining_an_XML_structure#Conventions]&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
[[XMLDB_introduction]]&lt;br /&gt;
&lt;br /&gt;
[[XMLDB defining an XML structure]]&lt;br /&gt;
&lt;br /&gt;
[[XMLDB editor]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Using XMLDB]]&lt;br /&gt;
[[Category:XMLDB]]&lt;/div&gt;</summary>
		<author><name>Okiknow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Using_XMLDB&amp;diff=7743</id>
		<title>Using XMLDB</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Using_XMLDB&amp;diff=7743"/>
		<updated>2008-01-10T13:39:28Z</updated>

		<summary type="html">&lt;p&gt;Okiknow: /* Create new table */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(This page is in progress of writing and editing, intended for third-party module developers to help them switch to XMLDB.)&lt;br /&gt;
{{Moodle 1.7}}&lt;br /&gt;
==What is XMLDB and how can it help you==&lt;br /&gt;
XMLDB is a database format created to help developer from creating custom database schemas for different database system. It&#039;s like a database in XML format. Everywhere in Moodle now use XMLDB.&lt;br /&gt;
&lt;br /&gt;
In every module folder, there is db/ folder where database structure stored. The folder usually contains mysql.php, mysql.sql, etc. for different database.&lt;br /&gt;
&lt;br /&gt;
It&#039;s mean that you have to create different files for each database systems. If there are more database you want your module to be compatible with, you have to create more files. XMLDB is intended to solve this problem. Switching to XMLDB is very easy, save your time and effort by creating just 1 file.&lt;br /&gt;
&lt;br /&gt;
==Getting Started==&lt;br /&gt;
XMLDB file in module is stored in db/ folder, named install.xml. You can use a built-in XMLDB editor to create or edit any install.xml files. If you&#039;re using MySQL as your default database schemes. XMLDB editor&#039;s powerful tools allowing retrofit MySQL table to XMLDB format.&lt;br /&gt;
&lt;br /&gt;
XMLDB editor is located in administration block, go to &#039;&#039;Miscellaneous &amp;gt; XMLDB editor&#039;&#039;. Find your module name. You won&#039;t be able to click on &#039;&#039;Create&#039;&#039; link and also can&#039;t edit your module (If &#039;&#039;Create&#039;&#039; link is clickable you can skip this step). Since you must make your module folder has write permission first (And if you haven&#039;t created db/ folder in your module folder yet, create it now). In Linux operating system, &#039;&#039;chmod&#039;&#039; your /db folder to 777 solves this. Now you&#039;re ready to create your module&#039;s XMLDB files.&lt;br /&gt;
&lt;br /&gt;
Note that XMLDB editor is not a tool for creating your module. It is a tool to manage XMLDB database file (think about phpmyadmin manages SQL database). You can create tables/fields/keys/indexes or export your exist MySQL tables to XMLDB.&lt;br /&gt;
&lt;br /&gt;
Another XMLDB&#039;s advantage is you can create table&#039;s comment as you want. To describe it to other developer.&lt;br /&gt;
&lt;br /&gt;
XMLDB editor is really easy to work with. We strongly recommend you to play with it for a while.&lt;br /&gt;
&lt;br /&gt;
More information about XMLDB editor : [https://docs.moodle.org/en/XMLDB_editor], XMLDB Structure : [https://docs.moodle.org/en/Development:XMLDB_defining_an_XML_structure].&lt;br /&gt;
&lt;br /&gt;
===Create install.xml===&lt;br /&gt;
&lt;br /&gt;
If you never create install.xml before (your db/ doesn&#039;t have install.xml), click &#039;&#039;Create&#039;&#039; first. install.xml will store your database info for this module.&lt;br /&gt;
&lt;br /&gt;
===Start editing===&lt;br /&gt;
To start edit install.xml, click &#039;&#039;Load&#039;&#039; and then &#039;&#039;Edit&#039;&#039;. You need to do this every time before editing any XMLDB file.  If this is your first time, there is a default table named like your module stored.&lt;br /&gt;
&lt;br /&gt;
===Create new table===&lt;br /&gt;
&lt;br /&gt;
# Go to &#039;&#039;New Table&#039;&#039;.&lt;br /&gt;
# Enter table name and comment, click &#039;&#039;change&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
===Add field in table===&lt;br /&gt;
&lt;br /&gt;
# Click &#039;&#039;Edit&#039;&#039; on your desired table.&lt;br /&gt;
# Click &#039;&#039;New Field&#039;&#039;, You can now edit field information like name, comment, type, length, etc.&lt;br /&gt;
# When you&#039;re done, click &#039;&#039;Change&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
===Retrofit MySQL table to XMLDB===&lt;br /&gt;
&lt;br /&gt;
XMLDB editor can retrofit MySQL table to XMLDB. In other word, it can create XMLDB table from existing SQL. This is useful if your module database already using MySQL.&lt;br /&gt;
First, your module has to be installed. Then follow these steps:&lt;br /&gt;
&lt;br /&gt;
# Click &#039;&#039;New Table from MySQL&#039;&#039;&lt;br /&gt;
# In &#039;&#039;Create Table&#039;&#039; box, choose your table from MySQL database. In &#039;&#039;After Table&#039;&#039; choose where would you like to add this table to (It doesn&#039;t matter, just for arrangement). Click &#039;&#039;Create&#039;&#039;.&lt;br /&gt;
# Do it again untill every table added, you are done !&lt;br /&gt;
&lt;br /&gt;
Note : Table name must contains only lowercase character, number, underscore and length must not exceed 28 characters. More info [https://docs.moodle.org/en/Development:XMLDB_defining_an_XML_structure#Conventions]&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
[[XMLDB_introduction]]&lt;br /&gt;
&lt;br /&gt;
[[XMLDB defining an XML structure]]&lt;br /&gt;
&lt;br /&gt;
[[XMLDB editor]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Using XMLDB]]&lt;br /&gt;
[[Category:XMLDB]]&lt;/div&gt;</summary>
		<author><name>Okiknow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Using_XMLDB&amp;diff=7742</id>
		<title>Using XMLDB</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Using_XMLDB&amp;diff=7742"/>
		<updated>2008-01-10T13:38:18Z</updated>

		<summary type="html">&lt;p&gt;Okiknow: /* Start editing */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(This page is in progress of writing and editing, intended for third-party module developers to help them switch to XMLDB.)&lt;br /&gt;
{{Moodle 1.7}}&lt;br /&gt;
==What is XMLDB and how can it help you==&lt;br /&gt;
XMLDB is a database format created to help developer from creating custom database schemas for different database system. It&#039;s like a database in XML format. Everywhere in Moodle now use XMLDB.&lt;br /&gt;
&lt;br /&gt;
In every module folder, there is db/ folder where database structure stored. The folder usually contains mysql.php, mysql.sql, etc. for different database.&lt;br /&gt;
&lt;br /&gt;
It&#039;s mean that you have to create different files for each database systems. If there are more database you want your module to be compatible with, you have to create more files. XMLDB is intended to solve this problem. Switching to XMLDB is very easy, save your time and effort by creating just 1 file.&lt;br /&gt;
&lt;br /&gt;
==Getting Started==&lt;br /&gt;
XMLDB file in module is stored in db/ folder, named install.xml. You can use a built-in XMLDB editor to create or edit any install.xml files. If you&#039;re using MySQL as your default database schemes. XMLDB editor&#039;s powerful tools allowing retrofit MySQL table to XMLDB format.&lt;br /&gt;
&lt;br /&gt;
XMLDB editor is located in administration block, go to &#039;&#039;Miscellaneous &amp;gt; XMLDB editor&#039;&#039;. Find your module name. You won&#039;t be able to click on &#039;&#039;Create&#039;&#039; link and also can&#039;t edit your module (If &#039;&#039;Create&#039;&#039; link is clickable you can skip this step). Since you must make your module folder has write permission first (And if you haven&#039;t created db/ folder in your module folder yet, create it now). In Linux operating system, &#039;&#039;chmod&#039;&#039; your /db folder to 777 solves this. Now you&#039;re ready to create your module&#039;s XMLDB files.&lt;br /&gt;
&lt;br /&gt;
Note that XMLDB editor is not a tool for creating your module. It is a tool to manage XMLDB database file (think about phpmyadmin manages SQL database). You can create tables/fields/keys/indexes or export your exist MySQL tables to XMLDB.&lt;br /&gt;
&lt;br /&gt;
Another XMLDB&#039;s advantage is you can create table&#039;s comment as you want. To describe it to other developer.&lt;br /&gt;
&lt;br /&gt;
XMLDB editor is really easy to work with. We strongly recommend you to play with it for a while.&lt;br /&gt;
&lt;br /&gt;
More information about XMLDB editor : [https://docs.moodle.org/en/XMLDB_editor], XMLDB Structure : [https://docs.moodle.org/en/Development:XMLDB_defining_an_XML_structure].&lt;br /&gt;
&lt;br /&gt;
===Create install.xml===&lt;br /&gt;
&lt;br /&gt;
If you never create install.xml before (your db/ doesn&#039;t have install.xml), click &#039;&#039;Create&#039;&#039; first. install.xml will store your database info for this module.&lt;br /&gt;
&lt;br /&gt;
===Start editing===&lt;br /&gt;
To start edit install.xml, click &#039;&#039;Load&#039;&#039; and then &#039;&#039;Edit&#039;&#039;. You need to do this every time before editing any XMLDB file.  If this is your first time, there is a default table named like your module stored.&lt;br /&gt;
&lt;br /&gt;
===Create new table===&lt;br /&gt;
Just like create table.&lt;br /&gt;
&lt;br /&gt;
# Go to &#039;&#039;New Table&#039;&#039;.&lt;br /&gt;
# Enter table name and comment, click &#039;&#039;change&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
===Add field in table===&lt;br /&gt;
&lt;br /&gt;
# Click &#039;&#039;Edit&#039;&#039; on your desired table.&lt;br /&gt;
# Click &#039;&#039;New Field&#039;&#039;, You can now edit field information like name, comment, type, length, etc.&lt;br /&gt;
# When you&#039;re done, click &#039;&#039;Change&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
===Retrofit MySQL table to XMLDB===&lt;br /&gt;
&lt;br /&gt;
XMLDB editor can retrofit MySQL table to XMLDB. In other word, it can create XMLDB table from existing SQL. This is useful if your module database already using MySQL.&lt;br /&gt;
First, your module has to be installed. Then follow these steps:&lt;br /&gt;
&lt;br /&gt;
# Click &#039;&#039;New Table from MySQL&#039;&#039;&lt;br /&gt;
# In &#039;&#039;Create Table&#039;&#039; box, choose your table from MySQL database. In &#039;&#039;After Table&#039;&#039; choose where would you like to add this table to (It doesn&#039;t matter, just for arrangement). Click &#039;&#039;Create&#039;&#039;.&lt;br /&gt;
# Do it again untill every table added, you are done !&lt;br /&gt;
&lt;br /&gt;
Note : Table name must contains only lowercase character, number, underscore and length must not exceed 28 characters. More info [https://docs.moodle.org/en/Development:XMLDB_defining_an_XML_structure#Conventions]&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
[[XMLDB_introduction]]&lt;br /&gt;
&lt;br /&gt;
[[XMLDB defining an XML structure]]&lt;br /&gt;
&lt;br /&gt;
[[XMLDB editor]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Using XMLDB]]&lt;br /&gt;
[[Category:XMLDB]]&lt;/div&gt;</summary>
		<author><name>Okiknow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Using_XMLDB&amp;diff=7741</id>
		<title>Using XMLDB</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Using_XMLDB&amp;diff=7741"/>
		<updated>2008-01-10T13:37:30Z</updated>

		<summary type="html">&lt;p&gt;Okiknow: /* What is XMLDB and how can it help you */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(This page is in progress of writing and editing, intended for third-party module developers to help them switch to XMLDB.)&lt;br /&gt;
{{Moodle 1.7}}&lt;br /&gt;
==What is XMLDB and how can it help you==&lt;br /&gt;
XMLDB is a database format created to help developer from creating custom database schemas for different database system. It&#039;s like a database in XML format. Everywhere in Moodle now use XMLDB.&lt;br /&gt;
&lt;br /&gt;
In every module folder, there is db/ folder where database structure stored. The folder usually contains mysql.php, mysql.sql, etc. for different database.&lt;br /&gt;
&lt;br /&gt;
It&#039;s mean that you have to create different files for each database systems. If there are more database you want your module to be compatible with, you have to create more files. XMLDB is intended to solve this problem. Switching to XMLDB is very easy, save your time and effort by creating just 1 file.&lt;br /&gt;
&lt;br /&gt;
==Getting Started==&lt;br /&gt;
XMLDB file in module is stored in db/ folder, named install.xml. You can use a built-in XMLDB editor to create or edit any install.xml files. If you&#039;re using MySQL as your default database schemes. XMLDB editor&#039;s powerful tools allowing retrofit MySQL table to XMLDB format.&lt;br /&gt;
&lt;br /&gt;
XMLDB editor is located in administration block, go to &#039;&#039;Miscellaneous &amp;gt; XMLDB editor&#039;&#039;. Find your module name. You won&#039;t be able to click on &#039;&#039;Create&#039;&#039; link and also can&#039;t edit your module (If &#039;&#039;Create&#039;&#039; link is clickable you can skip this step). Since you must make your module folder has write permission first (And if you haven&#039;t created db/ folder in your module folder yet, create it now). In Linux operating system, &#039;&#039;chmod&#039;&#039; your /db folder to 777 solves this. Now you&#039;re ready to create your module&#039;s XMLDB files.&lt;br /&gt;
&lt;br /&gt;
Note that XMLDB editor is not a tool for creating your module. It is a tool to manage XMLDB database file (think about phpmyadmin manages SQL database). You can create tables/fields/keys/indexes or export your exist MySQL tables to XMLDB.&lt;br /&gt;
&lt;br /&gt;
Another XMLDB&#039;s advantage is you can create table&#039;s comment as you want. To describe it to other developer.&lt;br /&gt;
&lt;br /&gt;
XMLDB editor is really easy to work with. We strongly recommend you to play with it for a while.&lt;br /&gt;
&lt;br /&gt;
More information about XMLDB editor : [https://docs.moodle.org/en/XMLDB_editor], XMLDB Structure : [https://docs.moodle.org/en/Development:XMLDB_defining_an_XML_structure].&lt;br /&gt;
&lt;br /&gt;
===Create install.xml===&lt;br /&gt;
&lt;br /&gt;
If you never create install.xml before (your db/ doesn&#039;t have install.xml), click &#039;&#039;Create&#039;&#039; first. install.xml will store your database info for this module.&lt;br /&gt;
&lt;br /&gt;
===Start editing===&lt;br /&gt;
To start edit install.xml, click &#039;&#039;Load&#039;&#039; and then &#039;&#039;Edit&#039;&#039;. You need to do this every time before editing any XMLDB file.  If this is your first time, there is default table named like your module stored.&lt;br /&gt;
&lt;br /&gt;
===Create new table===&lt;br /&gt;
Just like create table.&lt;br /&gt;
&lt;br /&gt;
# Go to &#039;&#039;New Table&#039;&#039;.&lt;br /&gt;
# Enter table name and comment, click &#039;&#039;change&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
===Add field in table===&lt;br /&gt;
&lt;br /&gt;
# Click &#039;&#039;Edit&#039;&#039; on your desired table.&lt;br /&gt;
# Click &#039;&#039;New Field&#039;&#039;, You can now edit field information like name, comment, type, length, etc.&lt;br /&gt;
# When you&#039;re done, click &#039;&#039;Change&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
===Retrofit MySQL table to XMLDB===&lt;br /&gt;
&lt;br /&gt;
XMLDB editor can retrofit MySQL table to XMLDB. In other word, it can create XMLDB table from existing SQL. This is useful if your module database already using MySQL.&lt;br /&gt;
First, your module has to be installed. Then follow these steps:&lt;br /&gt;
&lt;br /&gt;
# Click &#039;&#039;New Table from MySQL&#039;&#039;&lt;br /&gt;
# In &#039;&#039;Create Table&#039;&#039; box, choose your table from MySQL database. In &#039;&#039;After Table&#039;&#039; choose where would you like to add this table to (It doesn&#039;t matter, just for arrangement). Click &#039;&#039;Create&#039;&#039;.&lt;br /&gt;
# Do it again untill every table added, you are done !&lt;br /&gt;
&lt;br /&gt;
Note : Table name must contains only lowercase character, number, underscore and length must not exceed 28 characters. More info [https://docs.moodle.org/en/Development:XMLDB_defining_an_XML_structure#Conventions]&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
[[XMLDB_introduction]]&lt;br /&gt;
&lt;br /&gt;
[[XMLDB defining an XML structure]]&lt;br /&gt;
&lt;br /&gt;
[[XMLDB editor]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Using XMLDB]]&lt;br /&gt;
[[Category:XMLDB]]&lt;/div&gt;</summary>
		<author><name>Okiknow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Using_XMLDB&amp;diff=7740</id>
		<title>Using XMLDB</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Using_XMLDB&amp;diff=7740"/>
		<updated>2008-01-10T13:35:25Z</updated>

		<summary type="html">&lt;p&gt;Okiknow: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(This page is in progress of writing and editing, intended for third-party module developers to help them switch to XMLDB.)&lt;br /&gt;
{{Moodle 1.7}}&lt;br /&gt;
==What is XMLDB and how can it help you==&lt;br /&gt;
XMLDB is database format created to prevent developer from creating custom database schemas for different database system. It&#039;s like a database in XML format. Everywhere in Moodle now use XMLDB.&lt;br /&gt;
&lt;br /&gt;
In every module folder, there is db/ folder where database structure stored. The folder usually contains mysql.php, mysql.sql, etc. for different database.&lt;br /&gt;
&lt;br /&gt;
It&#039;s mean that you have to create different files for each database systems. If there are more database you want your module to be compatible with, you have to create more files. XMLDB is intended to solve this problem. Switching to XMLDB is very easy, save your time and effort by creating just 1 file.&lt;br /&gt;
&lt;br /&gt;
==Getting Started==&lt;br /&gt;
XMLDB file in module is stored in db/ folder, named install.xml. You can use a built-in XMLDB editor to create or edit any install.xml files. If you&#039;re using MySQL as your default database schemes. XMLDB editor&#039;s powerful tools allowing retrofit MySQL table to XMLDB format.&lt;br /&gt;
&lt;br /&gt;
XMLDB editor is located in administration block, go to &#039;&#039;Miscellaneous &amp;gt; XMLDB editor&#039;&#039;. Find your module name. You won&#039;t be able to click on &#039;&#039;Create&#039;&#039; link and also can&#039;t edit your module (If &#039;&#039;Create&#039;&#039; link is clickable you can skip this step). Since you must make your module folder has write permission first (And if you haven&#039;t created db/ folder in your module folder yet, create it now). In Linux operating system, &#039;&#039;chmod&#039;&#039; your /db folder to 777 solves this. Now you&#039;re ready to create your module&#039;s XMLDB files.&lt;br /&gt;
&lt;br /&gt;
Note that XMLDB editor is not a tool for creating your module. It is a tool to manage XMLDB database file (think about phpmyadmin manages SQL database). You can create tables/fields/keys/indexes or export your exist MySQL tables to XMLDB.&lt;br /&gt;
&lt;br /&gt;
Another XMLDB&#039;s advantage is you can create table&#039;s comment as you want. To describe it to other developer.&lt;br /&gt;
&lt;br /&gt;
XMLDB editor is really easy to work with. We strongly recommend you to play with it for a while.&lt;br /&gt;
&lt;br /&gt;
More information about XMLDB editor : [https://docs.moodle.org/en/XMLDB_editor], XMLDB Structure : [https://docs.moodle.org/en/Development:XMLDB_defining_an_XML_structure].&lt;br /&gt;
&lt;br /&gt;
===Create install.xml===&lt;br /&gt;
&lt;br /&gt;
If you never create install.xml before (your db/ doesn&#039;t have install.xml), click &#039;&#039;Create&#039;&#039; first. install.xml will store your database info for this module.&lt;br /&gt;
&lt;br /&gt;
===Start editing===&lt;br /&gt;
To start edit install.xml, click &#039;&#039;Load&#039;&#039; and then &#039;&#039;Edit&#039;&#039;. You need to do this every time before editing any XMLDB file.  If this is your first time, there is default table named like your module stored.&lt;br /&gt;
&lt;br /&gt;
===Create new table===&lt;br /&gt;
Just like create table.&lt;br /&gt;
&lt;br /&gt;
# Go to &#039;&#039;New Table&#039;&#039;.&lt;br /&gt;
# Enter table name and comment, click &#039;&#039;change&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
===Add field in table===&lt;br /&gt;
&lt;br /&gt;
# Click &#039;&#039;Edit&#039;&#039; on your desired table.&lt;br /&gt;
# Click &#039;&#039;New Field&#039;&#039;, You can now edit field information like name, comment, type, length, etc.&lt;br /&gt;
# When you&#039;re done, click &#039;&#039;Change&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
===Retrofit MySQL table to XMLDB===&lt;br /&gt;
&lt;br /&gt;
XMLDB editor can retrofit MySQL table to XMLDB. In other word, it can create XMLDB table from existing SQL. This is useful if your module database already using MySQL.&lt;br /&gt;
First, your module has to be installed. Then follow these steps:&lt;br /&gt;
&lt;br /&gt;
# Click &#039;&#039;New Table from MySQL&#039;&#039;&lt;br /&gt;
# In &#039;&#039;Create Table&#039;&#039; box, choose your table from MySQL database. In &#039;&#039;After Table&#039;&#039; choose where would you like to add this table to (It doesn&#039;t matter, just for arrangement). Click &#039;&#039;Create&#039;&#039;.&lt;br /&gt;
# Do it again untill every table added, you are done !&lt;br /&gt;
&lt;br /&gt;
Note : Table name must contains only lowercase character, number, underscore and length must not exceed 28 characters. More info [https://docs.moodle.org/en/Development:XMLDB_defining_an_XML_structure#Conventions]&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
[[XMLDB_introduction]]&lt;br /&gt;
&lt;br /&gt;
[[XMLDB defining an XML structure]]&lt;br /&gt;
&lt;br /&gt;
[[XMLDB editor]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Using XMLDB]]&lt;br /&gt;
[[Category:XMLDB]]&lt;/div&gt;</summary>
		<author><name>Okiknow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Using_XMLDB&amp;diff=7739</id>
		<title>Using XMLDB</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Using_XMLDB&amp;diff=7739"/>
		<updated>2008-01-10T12:54:01Z</updated>

		<summary type="html">&lt;p&gt;Okiknow: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(This page is in progress of writing and editing, intended for third-party module developers to help them switch to XMLDB.)&lt;br /&gt;
&lt;br /&gt;
==How XMLDB can help you==&lt;br /&gt;
Everywhere in Moodle now use XMLDB. XMLDB is database format created to prevent developer from creating custom database schemas for different database system. If you don&#039;t know what XMLDB is, You can learn more about it here [[XMLDB_introduction]]&lt;br /&gt;
&lt;br /&gt;
In every module folder, there is db/ folder where database structure stored. The folder usually contains mysql.php, mysql.sql, etc for different database.&lt;br /&gt;
&lt;br /&gt;
It&#039;s mean that you have to create different files for each database systems. If there are 5 database, you have to create 10 files (2 each). XMLDB is intended to solve this. Switching to XMLDB is very easy, save your time and effort by creating just 1 file.&lt;br /&gt;
&lt;br /&gt;
==Getting Started==&lt;br /&gt;
XMLDB file in module is stored in db/ folder, named install.xml. You can use a built-in XMLDB editor to create or edit any install.xml files. If you&#039;re using MySQL as your default database schemes. XMLDB editor&#039;s powerful tools allowing retrofit MySQL table to XMLDB format.&lt;br /&gt;
&lt;br /&gt;
XMLDB editor is located in administration block, go to &#039;&#039;Miscellaneous &amp;gt; XMLDB editor&#039;&#039;. You may unable to click on &#039;&#039;Create&#039;&#039; link and also can&#039;t edit your module. Since you must make your module folder has write permission first (And if you haven&#039;t craeted db/ folder in your module folder yet, create it now). In Linux operating system, &#039;&#039;chmod&#039;&#039; your /db folder to 777 solves this. Now you&#039;re ready to create your module&#039;s XMLDB files.&lt;br /&gt;
&lt;br /&gt;
Note that XMLDB editor is not a tool for creating your module. It is a tool to manage XMLDB database file (think about phpmyadmin manages SQL database). You can create tables/fields/keys/indexes or export your exist MySQL tables to XMLDB.&lt;br /&gt;
&lt;br /&gt;
XMLDB editor is really easy to work with. By playing with it, you will soon understand XMLDB structure and format.&lt;br /&gt;
&lt;br /&gt;
More information about [[XMLDB editor]], XMLDB Structure : [[XMLDB defining an XML structure]].&lt;br /&gt;
&lt;br /&gt;
===Create install.xml===&lt;br /&gt;
&lt;br /&gt;
If you never create install.xml before (your db/ doesn&#039;t have install.xml), click &#039;&#039;Create&#039;&#039; first. install.xml will store your database info for this module.&lt;br /&gt;
&lt;br /&gt;
===Start edit===&lt;br /&gt;
To start edit install.xml, click &#039;&#039;Load&#039;&#039; and then &#039;&#039;Edit&#039;&#039;. You need to do this every time before editing any XMLDB file.  If this is your first time, there is default table named like your module stored.&lt;br /&gt;
&lt;br /&gt;
===Retrofit MySQL table to XMLDB===&lt;br /&gt;
&lt;br /&gt;
XMLDB editor can retrofit MySQL table to XMLDB. This is useful if your module database already using MySQL.&lt;br /&gt;
First, your module has to be installed. Then follow these steps:&lt;br /&gt;
&lt;br /&gt;
# Go to XMLDB editor, edit your module.&lt;br /&gt;
# Click &#039;&#039;New Table from MySQL&#039;&#039;&lt;br /&gt;
# In &#039;&#039;Create Table&#039;&#039; box, choose your table from MySQL database. In &#039;&#039;After Table&#039;&#039; choose where would you like to add this table to (It doesn&#039;t matter but helpful to sort it). Click &#039;&#039;Create&#039;&#039;.&lt;br /&gt;
# Do it again untill every table added, you are done !&lt;br /&gt;
&lt;br /&gt;
Note : Table&#039;s name must contain only character, number, underscore and length must not exceed 28 characters.&lt;br /&gt;
&lt;br /&gt;
[[Category:Using XMLDB]]&lt;br /&gt;
[[Category:XMLDB]]&lt;/div&gt;</summary>
		<author><name>Okiknow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Using_XMLDB&amp;diff=7738</id>
		<title>Using XMLDB</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Using_XMLDB&amp;diff=7738"/>
		<updated>2008-01-10T12:21:03Z</updated>

		<summary type="html">&lt;p&gt;Okiknow: /* Creating XMLDB files */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(This page is in progress of writing and editing, intended for third-party module developers to help them switch to XMLDB.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==How XMLDB can help you==&lt;br /&gt;
Everywhere in Moodle now use XMLDB. Created to prevent developer from creating custom database schemas for different database system. If you don&#039;t know what XMLDB is, You can learn more about it here [[XMLDB_introduction]]&lt;br /&gt;
&lt;br /&gt;
In every module folder, there is db/ folder where database structure stored. The folder usually contains mysql.php, mysql.sql, etc for different database.&lt;br /&gt;
&lt;br /&gt;
It&#039;s mean that you have to create different files for each database systems. If there are 5 database, you have to create 10 files (2 each). XMLDB is intended to solve this. Switching to XMLDB is very easy, save your time and effort by creating just 1 file.&lt;br /&gt;
&lt;br /&gt;
==Use XMLDB as your module&#039;s database schemas==&lt;br /&gt;
XMLDB file in module is stored in db/ folder, named install.xml, You can use a built-in XMLDB editor to create or edit any install.xml files. If you&#039;re using MySQL as your default database schemes. XMLDB editor&#039;s powerful tools allowing retrofit MySQL table to XMLDB format.&lt;br /&gt;
&lt;br /&gt;
Your XMLDB editor is located in administration block, go to &#039;&#039;Miscellaneous &amp;gt; XMLDB editor&#039;&#039;. You may unable to click on &#039;&#039;Create&#039;&#039; link and also can&#039;t edit your module. Since you must make your module folder has write permission first. In Linux operating system, &#039;&#039;chmod&#039;&#039; your module folder to 777 solves this. Now you&#039;re ready to create your module&#039;s XMLDB files.&lt;br /&gt;
&lt;br /&gt;
More information about [[XMLDB editor]].&lt;br /&gt;
&lt;br /&gt;
===Create install.xml===&lt;br /&gt;
&lt;br /&gt;
If you never create install.xml before (your db/ doesn&#039;t have install.xml), click &#039;&#039;Create&#039;&#039; first.&lt;br /&gt;
&lt;br /&gt;
===Retrofit MySQL table to XMLDB===&lt;br /&gt;
&lt;br /&gt;
First, your module has to be installed. Then follow these steps:&lt;br /&gt;
&lt;br /&gt;
# Go to&lt;br /&gt;
# Find your module folder, be sure it is writeable&lt;br /&gt;
# Click Create, then click Load, you will get a page &lt;br /&gt;
&lt;br /&gt;
[[Category:Using XMLDB]]&lt;br /&gt;
[[Category:XMLDB]]&lt;/div&gt;</summary>
		<author><name>Okiknow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Using_XMLDB&amp;diff=7737</id>
		<title>Using XMLDB</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Using_XMLDB&amp;diff=7737"/>
		<updated>2008-01-10T11:42:31Z</updated>

		<summary type="html">&lt;p&gt;Okiknow: /* Creating XMLDB files */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(This page is in progress of writing and editing, intended for third-party module developers to help them switch to XMLDB.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==How XMLDB can help you==&lt;br /&gt;
Everywhere in Moodle now use XMLDB. Created to prevent developer from creating custom database schemas for different database system. If you don&#039;t know what XMLDB is, You can learn more about it here [[XMLDB_introduction]]&lt;br /&gt;
&lt;br /&gt;
In every module folder, there is db/ folder where database structure stored. The folder usually contains mysql.php, mysql.sql, etc for different database.&lt;br /&gt;
&lt;br /&gt;
It&#039;s mean that you have to create different files for each database systems. If there are 5 database, you have to create 10 files (2 each). XMLDB is intended to solve this. Switching to XMLDB is very easy, save your time and effort by creating just 1 file.&lt;br /&gt;
&lt;br /&gt;
==Creating XMLDB files==&lt;br /&gt;
XMLDB file in module is stored in db/ folder, named install.xml, You can use a built-in XMLDB editor to create or edit any install.xml files. If you&#039;re using MySQL as your default database schemes. XMLDB editor&#039;s powerful tools allowing retrofit MySQL table to XMLDB format.&lt;br /&gt;
&lt;br /&gt;
Your XMLDB editor is located in administration block, go to &#039;&#039;Miscellaneous &amp;gt; XMLDB editor&#039;&#039;. You may unable to click on &#039;&#039;Create&#039;&#039; link and also can&#039;t edit your module. Since you must make your module folder has write permission first. In Linux operating system, &#039;&#039;chmod&#039;&#039; your module folder to 777 solves this. Now you&#039;re ready to create your module&#039;s XMLDB files.&lt;br /&gt;
&lt;br /&gt;
More information about [[XMLDB editor]].&lt;br /&gt;
&lt;br /&gt;
===Create install.xml===&lt;br /&gt;
&lt;br /&gt;
If you never create install.xml before (your db/ doesn&#039;t have install.xml), click &#039;&#039;Create&#039;&#039; first.&lt;br /&gt;
&lt;br /&gt;
===Retrofit MySQL table to XMLDB===&lt;br /&gt;
&lt;br /&gt;
First, your module has to be installed. Then follow these steps:&lt;br /&gt;
&lt;br /&gt;
# Go to&lt;br /&gt;
# Find your module folder, be sure it is writeable&lt;br /&gt;
# Click Create, then click Load, you will get a page &lt;br /&gt;
&lt;br /&gt;
[[Category:Using XMLDB]]&lt;br /&gt;
[[Category:XMLDB]]&lt;/div&gt;</summary>
		<author><name>Okiknow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Using_XMLDB&amp;diff=7735</id>
		<title>Using XMLDB</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Using_XMLDB&amp;diff=7735"/>
		<updated>2008-01-09T15:14:17Z</updated>

		<summary type="html">&lt;p&gt;Okiknow: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(This page is in progress of writing and editing, intended for third-party module developers to help them switch to XMLDB.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==How XMLDB can help you==&lt;br /&gt;
Everywhere in Moodle now use XMLDB. Created to prevent developer from creating custom database schemas for different database system. If you don&#039;t know what XMLDB is, You can learn more about it here [[XMLDB_introduction]]&lt;br /&gt;
&lt;br /&gt;
In every module folder, there is db/ folder where database structure stored. The folder usually contains mysql.php, mysql.sql, etc for different database.&lt;br /&gt;
&lt;br /&gt;
It&#039;s mean that you have to create different files for each database systems. If there are 5 database, you have to create 10 files (2 each). XMLDB is intended to solve this. Switching to XMLDB is very easy, save your time and effort by creating just 1 file.&lt;br /&gt;
&lt;br /&gt;
==Creating XMLDB files==&lt;br /&gt;
XMLDB file in module is stored in db/ folder, named install.xml, You can use a built-in XMLDB editor to create or edit any install.xml files. If you&#039;re using MySQL as your default database schemes. XMLDB editor&#039;s powerful tools allowing retrofit MySQL table to XMLDB format.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Retrofitting MySQL table to XMLDB&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
First, your module has to be installed. Then follow these steps.&lt;br /&gt;
&lt;br /&gt;
1. Go to Miscellaneous &amp;gt;&amp;gt; XMLDB editor&lt;br /&gt;
2. Find your module folder, be sure it is writable&lt;br /&gt;
3. Click Create, then click Load, you will get a page &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Using XMLDB]]&lt;br /&gt;
[[Category:XMLDB]]&lt;/div&gt;</summary>
		<author><name>Okiknow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Using_XMLDB&amp;diff=7734</id>
		<title>Using XMLDB</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Using_XMLDB&amp;diff=7734"/>
		<updated>2008-01-09T15:12:37Z</updated>

		<summary type="html">&lt;p&gt;Okiknow: /* XMLDB in your module */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(This docs is in progress of writing and editing, aimed to help third-party module developer to switch to XMLDB)&lt;br /&gt;
==XMLDB in your module==&lt;br /&gt;
Everywhere in Moodle now use XMLDB. Created to prevent developer from creating custom database schemas for different database system. If you don&#039;t know what XMLDB is, You can learn more about it here [[XMLDB_introduction]]&lt;br /&gt;
&lt;br /&gt;
In every module folder, there is db/ folder where database structure stored. The folder usually contains mysql.php, mysql.sql, etc for different database.&lt;br /&gt;
&lt;br /&gt;
It&#039;s mean that you have to create different files for each database systems. If there are 5 database, you have to create 10 files (2 each). XMLDB is intended to solve this. Switching to XMLDB is very easy, save your time and effort by creating just 1 file.&lt;br /&gt;
&lt;br /&gt;
==Creating XMLDB files==&lt;br /&gt;
XMLDB file in module is stored in db/ folder, named install.xml, You can use a built-in XMLDB editor to create or edit any install.xml files. If you&#039;re using MySQL as your default database schemes. XMLDB editor&#039;s powerful tools allowing retrofit MySQL table to XMLDB format.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Retrofitting MySQL table to XMLDB&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
First, your module has to be installed. Then follow these steps.&lt;br /&gt;
&lt;br /&gt;
1. Go to Miscellaneous &amp;gt;&amp;gt; XMLDB editor&lt;br /&gt;
2. Find your module folder, be sure it is writable&lt;br /&gt;
3. Click Create, then click Load, you will get a page &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Using XMLDB]]&lt;br /&gt;
[[Category:XMLDB]]&lt;/div&gt;</summary>
		<author><name>Okiknow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Using_XMLDB&amp;diff=7733</id>
		<title>Using XMLDB</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Using_XMLDB&amp;diff=7733"/>
		<updated>2008-01-09T15:10:33Z</updated>

		<summary type="html">&lt;p&gt;Okiknow: /* Convert MySQL syntax to XMLDB */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(This docs is in progress of writing and editing, aimed to help third-party module developer to switch to XMLDB)&lt;br /&gt;
==XMLDB in your module==&lt;br /&gt;
Everywhere in Moodle now use XMLDB. Created to prevent from creating custom database schemas for different database system. If you don&#039;t know what XMLDB is, You can learn more about it here [[XMLDB_introduction]]&lt;br /&gt;
&lt;br /&gt;
In every module, there is &amp;quot;db/&amp;quot; directory where database structure stored. usually contains mysql.php, mysql.sql and so on for different database.&lt;br /&gt;
&lt;br /&gt;
It&#039;s mean that you have to create different files for each database systems. If there are 5 database, you have to create 10 files (2 each). XMLDB solves this problem as well. Switching to XMLDB is very easy, save your time and effort by creating just 1 file.&lt;br /&gt;
&lt;br /&gt;
==Creating XMLDB files==&lt;br /&gt;
XMLDB file in module is stored in db/ folder, named install.xml, You can use a built-in XMLDB editor to create or edit any install.xml files. If you&#039;re using MySQL as your default database schemes. XMLDB editor&#039;s powerful tools allowing retrofit MySQL table to XMLDB format.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Retrofitting MySQL table to XMLDB&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
First, your module has to be installed. Then follow these steps.&lt;br /&gt;
&lt;br /&gt;
1. Go to Miscellaneous &amp;gt;&amp;gt; XMLDB editor&lt;br /&gt;
2. Find your module folder, be sure it is writable&lt;br /&gt;
3. Click Create, then click Load, you will get a page &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Using XMLDB]]&lt;br /&gt;
[[Category:XMLDB]]&lt;/div&gt;</summary>
		<author><name>Okiknow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Using_XMLDB&amp;diff=7732</id>
		<title>Using XMLDB</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Using_XMLDB&amp;diff=7732"/>
		<updated>2008-01-09T14:55:40Z</updated>

		<summary type="html">&lt;p&gt;Okiknow: /* Developing module using XMLDB */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(This docs is in progress of writing and editing, aimed to help third-party module developer to switch to XMLDB)&lt;br /&gt;
==XMLDB in your module==&lt;br /&gt;
Everywhere in Moodle now use XMLDB. Created to prevent from creating custom database schemas for different database system. If you don&#039;t know what XMLDB is, You can learn more about it here [[XMLDB_introduction]]&lt;br /&gt;
&lt;br /&gt;
In every module, there is &amp;quot;db/&amp;quot; directory where database structure stored. usually contains mysql.php, mysql.sql and so on for different database.&lt;br /&gt;
&lt;br /&gt;
It&#039;s mean that you have to create different files for each database systems. If there are 5 database, you have to create 10 files (2 each). XMLDB solves this problem as well. Switching to XMLDB is very easy, save your time and effort by creating just 1 file.&lt;br /&gt;
&lt;br /&gt;
==Convert MySQL syntax to XMLDB==&lt;br /&gt;
This can be done easily by using XMLDB Editor built in every Moodle. Simply go to Administration &amp;gt;&amp;gt; Miscellaneous &amp;gt;&amp;gt; XMLDB Editor&lt;br /&gt;
&lt;br /&gt;
[[Category:Using XMLDB]]&lt;br /&gt;
[[Category:XMLDB]]&lt;/div&gt;</summary>
		<author><name>Okiknow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Using_XMLDB&amp;diff=7731</id>
		<title>Using XMLDB</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Using_XMLDB&amp;diff=7731"/>
		<updated>2008-01-09T13:30:16Z</updated>

		<summary type="html">&lt;p&gt;Okiknow: /* Developing module using XMLDB */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(This docs is in progress of writing and editing, aimed to help third-party module developer to switch to XMLDB)&lt;br /&gt;
==Developing module using XMLDB==&lt;br /&gt;
Everywhere in Moodle now use XMLDB. Developed to prevent from creating custom database schemas for different database system.&lt;br /&gt;
In every module, there is &amp;quot;db/&amp;quot; directory where database structure stored.&lt;br /&gt;
&lt;br /&gt;
==Convert MySQL syntax to XMLDB==&lt;br /&gt;
This can be done easily by using XMLDB Editor built in every Moodle. Simply go to Administration &amp;gt;&amp;gt; Miscellaneous &amp;gt;&amp;gt; XMLDB Editor&lt;br /&gt;
&lt;br /&gt;
[[Category:Using XMLDB]]&lt;br /&gt;
[[Category:XMLDB]]&lt;/div&gt;</summary>
		<author><name>Okiknow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Using_XMLDB&amp;diff=7729</id>
		<title>Using XMLDB</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Using_XMLDB&amp;diff=7729"/>
		<updated>2008-01-07T14:48:25Z</updated>

		<summary type="html">&lt;p&gt;Okiknow: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Using XMLDB]]&lt;br /&gt;
(This docs is in progress of writing and editing, aimed to help third-party module developer to switch to XMLDB)&lt;br /&gt;
==Developing module using XMLDB==&lt;br /&gt;
If you are Moodle module developer, you might consider switching to XMLDB&lt;br /&gt;
Everywhere in Moodle now use XMLDB. Developed to prevent from creating custom database schemas for different database system.&lt;br /&gt;
&lt;br /&gt;
==Convert MySQL syntax to XMLDB==&lt;br /&gt;
This can be done easily by using XMLDB Editor built in every Moodle. Simply go to Administration &amp;gt;&amp;gt; Miscellaneous &amp;gt;&amp;gt; XMLDB Editor&lt;/div&gt;</summary>
		<author><name>Okiknow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Using_XMLDB&amp;diff=7728</id>
		<title>Using XMLDB</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Using_XMLDB&amp;diff=7728"/>
		<updated>2008-01-07T13:43:09Z</updated>

		<summary type="html">&lt;p&gt;Okiknow: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Using XMLDB]]&lt;br /&gt;
(This docs is in progress of writing and editing, aimed to help third-party module developer to switch to XMLDB)&lt;br /&gt;
==Developing module using XMLDB==&lt;br /&gt;
If you are Moodle module developer, you might consider switching to XMLDB&lt;br /&gt;
Everywhere in Moodle now use XMLDB.&lt;/div&gt;</summary>
		<author><name>Okiknow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Using_XMLDB&amp;diff=7727</id>
		<title>Using XMLDB</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Using_XMLDB&amp;diff=7727"/>
		<updated>2008-01-07T13:03:05Z</updated>

		<summary type="html">&lt;p&gt;Okiknow: /* Why use XMLDB */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(This docs is in progress of writing and editing)&lt;br /&gt;
==Developing module using XMLDB==&lt;br /&gt;
If you are Moodle module developer, you might consider switching to XMLDB&lt;br /&gt;
Everywhere in Moodle now use XMLDB.&lt;/div&gt;</summary>
		<author><name>Okiknow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Using_XMLDB&amp;diff=7726</id>
		<title>Using XMLDB</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Using_XMLDB&amp;diff=7726"/>
		<updated>2008-01-07T12:23:28Z</updated>

		<summary type="html">&lt;p&gt;Okiknow: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Why use XMLDB==&lt;/div&gt;</summary>
		<author><name>Okiknow</name></author>
	</entry>
</feed>