I meet a problem with insert a non-xml object into tamino da

help me,i want to insert a non-xml object into tamino database.but i have some problem.In there i want to store a word file into tamino.

i see the html manual introduce and do like this:
1 start schema editor.
2 named the schema name as ‘word_schema’.
3 add a new doctype,name is default,but set the storeage type as “map doctypenonxml”.
4 right click schema name in the left and choose “element with attribute” ,in the same time,i set the node name as ‘wordfile’,base properties as ‘base64binary’
5 then i name the doctype’name the same as the node name–‘wordfile’
6 save it as word_schema.tsd file
7 i select database menu and click validate submenu,but it report have a problem " An error occured while processing a schema document; (mp-valid-doctype-name.4) For each doctype name where the doctype is of type nonXML there may not be a matching global element with the respective name " I have to rename the doctype as ‘wordstore’( i don’t know why…)
8 use the ‘Tamino Interactive Interface’ ,i define the schema and successful.
9 then i choose a word file to proccess,but give me error message like this:
<?xml version="1.0" encoding="iso-8859-1" ?>
- <ino:response xmlns:ino=“http://namespaces.softwareag.com/tamino/response2” xmlns:xql=“http://metalab.unc.edu/xql/”>
- <ino:message ino:returnvalue=“7915”>
<ino:messagetext ino:code=“INOXDE7915”>(mp-valid-doctype-name.1) The doctype name needs to be unique within a collection</ino:messagetext>
- <ino:message ino:returnvalue=“7915”>
<ino:messagetext ino:code=“INOXDE7915”>(mp-valid-doctype-name.1) The doctype name needs to be unique within a collection</ino:messagetext>

i want to how to solve the problem,who can help me,tell me how to do ,ok?Thanks a lot!


Hello Jackahu,

could you please post the Tamino schema that you are having trouble with?


Trevor.Ford Expert:

hi,thanks your reply,but i have solved it.

but i have new problem:Tamino Database can manipulation by Microsft ASP tech.?

Tamino have the ODBC interface,yes or not?if it have ,we can use ASP,yes or not?but how to do this?


waiting your reply.

by the way,I am a Chinese,and I am a college student.My name is ‘Hu Guangwu’ Chinese name is ‘???’,can you write it? and what’s your name?can we make friends?have you use Microsoft Msn Messager or ICQ or OICQ?

can you write a E-mail to tell me?Thanks
my Email address is huguangwu@263.sina.com

this is my schema file:

<?xml version = "1.0" encoding = "GB2312"?>
<xs:schema xmlns:xs = “http://www.w3.org/2001/XMLSchema” xmlns:tsd = “http://namespaces.softwareag.com/tamino/TaminoSchemaDefinition”>
<tsd:schemaInfo name = “word_schema”>
<tsd:collection name = “Wordfile”></tsd:collection>
<tsd:doctype name = “WordStore”>
<xs:element name = “Wordfile”>
<xs:extension base = “xs:byte”></xs:extension>

then i register in my database 'test’

then i fill the ‘Collection’ textfield is my connection name ,that’s ‘Wordfile’ then choose my doc file and click ‘process’ button,return value is :
<?xml version="1.0" encoding="iso-8859-1" ?>
- <ino:response xmlns:ino=“http://namespaces.softwareag.com/tamino/response2” xmlns:xql=“http://metalab.unc.edu/xql/”>
- <ino:message ino:returnvalue=“7915”>
<ino:messagetext ino:code=“INOXDE7915”>(mp-valid-doctype-name.1) The doctype name needs to be unique within a collection</ino:messagetext>
- <ino:message ino:returnvalue=“7915”>
<ino:messagetext ino:code=“INOXDE7915”>(mp-valid-doctype-name.1) The doctype name needs to be unique within a collection</ino:messagetext>

but when i fill the Collection field is blank,return value is ok,like this:
<?xml version="1.0" encoding="iso-8859-1" ?>
- <ino:response xmlns:ino=“http://namespaces.softwareag.com/tamino/response2” xmlns:xql=“http://metalab.unc.edu/xql/”>
- <ino:message ino:returnvalue=“0”>
ino:messagelinedocument processing started</ino:messageline>
<ino:object ino:collection=“ino:etc” ino:doctype=“ino:nonXML” ino:id=“3” />
- <ino:message ino:returnvalue=“0”>
ino:messagelinedocument processing ended</ino:messageline>

how can i do…

Hello there Hu,

it is nice to virtually meet you! I am not really such an expert, but I hope that I can help you with storing Non-XML data into Tamino.

The Tamino Schema Definition Langauge supports non XML document types, as you already found.
The schema that you posted contains more elements than are really needed to store a Non-XML document.

For storing Non-XML, the following schema is sufficient:

   <?xml version="1.0" encoding="UTF-8"?>
   <xs:schema xmlns:xs=“http://www.w3.org/2001/XMLSchema” xmlns:tsd=“http://namespaces.softwareag.com/tamino/TaminoSchemaDefinition”>
            <tsd:schemaInfo name=“word_schema”>
               <tsd:collection name=“NonXML” />
               <tsd:doctype name=“word_doc”>
                  <tsd:nonXML />

Once this schema is defined in Tamino, you can insert Non-XML documents into it.
To insert a document using the Tamino Interactive Interface, enter the full path to the document - including its name - into the “Database URL” field.
An example of this would be:

(This includes the Database name “test”; the Collection name “NonXML”; the doctype name “word_doc” and the document name “doc1.xml”.)
Once you have entered the full URL, enter the path to the Non-XML file into the “Process” field and then click the “Process” button.

Hopefully you will see a message saying “document processing ended”.
When the document has been loaded you can retrieve it using a “direct” query, such as this:

In your posting you mentioned that you receive an error saying “The doctype name needs to be unique within a collection”.
This is fairly simple to explain: you are trying to define a doctype that already exists. If you use the Tamino Schema Editor you will be able to update an existing schema (or in the worst case: delete the schema then define it again).

You also mentioned that storing works when you don’t enter a Collection name. This is because Tamino offers a “common collection” for documents which it can’t map to a defined collection/doctype.
This collection is called ino:etc, as you see in the message returned by Tamino. Also in the message is the information that the document was stored in the ino:nonXML doctype.

The query to directly retrieve this document is something like this:

I hope that helps!

Trevor Ford Expert:

Although you said you are a not expert,but i like add the title to the end of your name.
follow your advise,i do it like this

1 copy your schema source file and save as Wordfile.tsd
2 define it in interactive interface(in my database ‘test’) and successful
3 in the ‘database url’ textfield i fill:
4 in the ‘process’ textfiled i choose my rrbg.doc and process,thanks your hope,and your hope became trueth,i receive the successful message.

In the end,i found some tips

1 if i want to insert a nonxml file into tamino,i must fill the url address into ‘database url’ this is very important,i omit this point(the html format manual may be didn’t mention it.

2 the tamino is capital sensitive

3 when i retrieve my word file from tamino database,the manual and your reply all mentioned,I do like this,in my browser(IE)'s address location,i fill:http://localhost/tamino/test/NonXML/word_doc/rrbg.doc
but the phenomenon i am waiting did’t appear,but accidentally i add the string ‘NonXML’ to the last of it,that’s http://localhost/tamino/test/NonXML/word_doc/rrbg.doc/NonXML,the miracle was appeared!

OK,the problem has solved.But i have a new question,i hope expert didn’t feel bored.I mentioned in my post:

the data in Tamino database could be manipulation by MS ASP/ASP.NET(Active Server Page) or JSP?

if ASP could do it?did you have some example source code?

Thanks,i am waiting your reply.

Greetings Hu.

Do not worry, it takes a lot to bore me!

I would like to clarify the process of inserting Non-XML documents via the Interactive Interface.
As you noted in point #1, the whole URL must be written into the “URL” field. Even more important is: leave the other fields blank.
I suspect that you may have left the Collection name field as “NonXML” when you inserted the Word document, which lead to the ino:docname having “NonXML” appended to it. (The value from “Collection” was appended to the value from “URL”.)
This probably caused the confusion! My apologies - I should have mentioned this in my previous posting.

To check if this is the case, you could execute this query:
This will query for all the documents in the NonXML Collection, and you will be able to see all the ino:docname values. I suspect that there will be a document called “rrbg.doc/NonXML”…

I’m really no expert when it comes to ASP, but you might find some help and examples by browsing through the JScript API Forum:

In particular this posting might help you:

For JSP, I would recommend that you look at the Tamino X-Application.
This software is available from the Community download page. It consists of a Generator (which generates a set of JSP pages which implement a maintainance application for a Tamino Schema) and a TagLib.
There are three Forums dedicated to X-Application (all carefully tended by the X-Application developers):
   Tamino X-Application - the general Forum
   Tamino X-Application Assistance - the Forum for support
   Tamino X-Application Contributions - the Forum where users can contribute to X-Application

Have fun!

thanks Trevor Ford,very appreciate!

1 like you talk,the docname is rrbg.doc/NonXML
you say let’s all of field is blank except the database url and the process field?maybe i fill the collection name.yes or not?

2 i want to use asp manipulation tamino to implement the function of list.
(1)can display databasename,collectionname,creattime use a table and pagination
(2) click the collectionname then display the source file whick was stored in the collectionname.
(3) can update data in some node,and can delete some node or create some node,ASP can implement it?


BTY:you give the url to the forum,i have download the attach file:prop3.asp and propety.xsl,i modified some field ,such as
DataBase = "http://localhost/tamino/test/patient"
DocumentID = “patient/@1
(note:patient is the manual of tamino’s example xml file)

i view that asp file use IE6.0 after setting the IIS,but the content is :

Estate Agency Smith
23th Main Street
Los Angeles, CA 67221

L.A., 05/12/2001

Subject: Call for Real Estate No.

Dear Mister Miller

I want to know how to implement these function in this post head,and give me some clue.


Hello Hu,

it looks like this is becoming a conversation between just you and I, and I’m not the right person to help you with the ASP stuff.

Therefore I recommend that you start a new thread in the JScript Forum.