MyXDB Command Line Tool
MyXDB provides its command line tool for managing XML documents. To invoke this tool, type "myxdb" or "myxdb -user user_name" where user_name is a valid user name of a relational database, such as MySQL, you are using.
Available MyXDB commands are described in the following sections. The list of these commands with short descriptions are also displayed by typing "?" or "help" from MyXDB command prompt.
Displays current local directory information as well as the files in the directory
Shows current collection name. The entire collection names in the database are displayed with "show all". A collection is used to group XML documents and it can have child collections too. MyXDB has a pre-defined root collection "/root".
Creates a child collection. e.g. When current collection is "/root", "create pub" will create a child collection "/root/pub".
Sets current collection to collection_name.
e.g. When current collection is "/root", "use pub" will change the current collection to "/root/pub". e.g. When current collection is "/root/pub", "use .." will change the current collection to "/root".
Deletes a child collection with all of its descendents. All of the XML documents are deleted when a collection that contains them is deleted. e.g. When current collection is "/root", "dc pub" will delete its child collection "pub", decendents of "pub", and all the XML documents contained in these collections.
Lists XML document names in current collection.
Adds an XML document to current collection. e.g. add books.xml
Updates an XML document in current collection.
Deletes an XML document from current collection.
Retrieves an XML document from current collection and stores it as a local file.
Exits MyXDB. All the collections are closed.