1. I have loaded an existing well-formed XML document without any schema through the Tamino Interactive Interface and apparently the load was successful. Then when I try to view that database in a browser, I don’t see any data…I get a blank page. Does that mean there is no data in the database? The follow-up question would be…how would you store these documents in Tamino?
2. After loading the document, I tried to query the database…again, I did it through the Tamino Interactive Interface…the root element of the document is ‘CodesDocument’, so I do a query of that element but it gives me the following error:
quote: 1. I have loaded an existing well-formed XML document without any schema through the Tamino Interactive Interface and apparently the load was successful.
Documents without schema information are accepted by Tamino and stored in a special, always existant collection named ino:etc. So, queries for such stored documents have to be addressed similiar to this:
Of course you can apply all XPath / XQuery expressions to such documents.
quote: Then when I try to view that database in a browser, I don’t see any data…I get a blank page.
What exactly do you mean by “view the database in a browser”? Are you doing this: http://dbserver/tamino/dbname ? This isn’t supposed to work, also I must say it would be the natural starting point for any DB brwoser functionality. Nice idea!
If you store an XML document with document element name CodesDocument in tamino without a schema then it goes into a collection called ino:etc in doctype CodesDocument which is created dynamically if it doesn’t exist already.
To find it you have to address the collection
http://yourhost/tamino/yourdb/ino:etc with the query “CodesDocument” - then you should see it. You can do this with the interactive interface or just with IE5 like this
A Tamino TSD2 schema specifies a collection name and a doctype, in this case “CodesDocument”.
My advice if you want to work with XML documents and don’t want to declare a schema for them, and there are a relatively small number of document types - declare a MINIMAL schema for each one using the same collection name. A minimal schema declares the documentElement tag and the document can have any attributes or elements.
The easiest way to do this at the moment is to use the Tamino Dashboard that you can find to download in the JavaScript Discussion group. You first create a new collection then add a minimal doctype.
Or create a document like this - which defines a collection “mycollection” and a doctype “CodesDocument” specifing any content and text indexes the entire document. and use the TII to define the doctype.
I have another question…have you tried bringing up Tamino Schema Editor and then setting a DB URL…when I try to do that, it says that the connection failed…any ideas as to what I may be doing wrong?
Thank you again in advance. I really appreciate it!
Is the Database Started? 2. Does the database exist? 3. Did you use the correct format for the url ie http://hostname/tamino/dbname - where hostname is the name of the computer where Tamino is installed and dbname is the name of the database you are trying to connect to.