This is a question regarding nonXML.
I have both pictures and sound stored as nonXML. I can retrieve the pictures, but
I can’t retrieve the soundfiles!
The soundfiles are of filetype: .wav (windows media audio)
Doesn’t Tamino support this filetype?
When I try to retrieve them, Tamino returns the following error:
The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
Invalid at the top level of the document. Error processing resource ‘http://xml.id.cbs.dk/tamino/bitten/intCol/soundFile/@1’. Line 1, Position 1
I hope someone will kindly answer this question!
Thank you in advance
Yes Tamino as such support any filetype as nonXML.
Which tool are you trying to use to display (or rather hear;-) the .wav from ?
- and does this tool know that the @1 is of type wav ?
Perhaps you should try to store the wav file in tamino by (full) name.
I tried to load the file in Tamino Interactive Interface with succes.
The problem is that the insertion goes wrong. Perhaps you can help me rewrite my file?
It goes like this:
|Gem en lyd||
The trick is to use the HTTP PUT instead of POST.
You’ll then have to specify the document name in the url (in this case “test.wav”)
and then change the method to PUT
PS this is not so elegant, but I’m sure you can easily change your script to add the filename from the “browse” window to the URL.
|Gem en lyd||
OOPS I was a bit too fast here.
This doesn’t solve the issue.
The data stored doesn’t contain the correct info.
Perhaps somebody else might help here.
I’m no html guru.
Just found a workaround for loading nonxml!
If you use the Interactive Interface “Load function” tab.
The specify the dbname/collection/doctype
in my case:
in “collection”-field you then specify the name that you want the file to have in Tamino
and just browse your way to the file you want to load.
- and press "load"
I thank you very much for a very quick answer.
I’m making a homepage, where people should be able to update without having to know anything about XML or Tamino, that’s why I can’t use the interactive interface for this project.
Actually, I wan’t to do the same in my script as the load function in Interactive interface.
The most programming on my homepage is ASP.
Maybe I can do something like this in ASP instead?
Set objXMLHTTP = Server.CreateObject(“Microsoft.XMLHTTP”)
objXMLHTTP.open “PUT”, “http://xml.id.cbs.dk/tamino/bitten/intCol/soundFile”, false
objXMLHTTP.send( “_process=” & sti)
But this is no good!
Can you help me?
This on works !!!
I had some of my html-competent colleges modify it a bit and now it works (also with POST!)
You will still need to do some tricks regarding the URL addition of the filename.
PS We discovered that for some strange IE-reason we had to use a new browserwindow to retrieve the document by name afterwards.
|Gem en lyd||