Actually I found out why I get the error message but I don't understand why. It seems that dbXML dos not like the tag <!DOCTYPE>
The following does not work : <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.0/docbookx.dtd"> <article> <title>Main article title</title> ... </article> but this one works fine : <?xml version="1.0" encoding="ISO-8859-1"?> <article> <title>Main article title</title> ... </article> So is it possible to store valid XML document (using a DTD) in dbXML ? Thanks Philippe le mar 05-02-2002 � 13:00, Carsten Ziegert a �crit : > Phil, > > dbXML / Xindice needs the line > > <?xml version="1.0"?> > > in each document. > > > Carsten > > > Am 05.02.2002 11:13 Uhr schrieb "Philippe NAEL" unter > <[EMAIL PROTECTED]>: > > > Hello, > > > > I am new to this mailing and I hope it is the right place for the > > following question. > > > > I am currently trying to add a docbook article to a dbXML v1.0b4 server. > > I created a collection called Phil : > > > > [EMAIL PROTECTED]:~$ /usr/local/dbXML/bin/dbxmladmin lc -c /db > > > > root > > addressbook > > Phil > > system > > > > Total collections: 4 > > > > > > When I add a document I get the following : > > > > [EMAIL PROTECTED]:~$ /usr/local/dbXML/bin/dbxml ad -c /db/Phil -f > > /wesdev/temp/sample2.dbk -n sample2.dbk -v > > ERROR : Collection Document Malformed > > Document name = sample2.dbk > > org.xmldb.api.base.XMLDBException: Collection Document Malformed > > at org.dbxml.core.FaultCodes.createXMLDBException(FaultCodes.java:230) > > at > > org.dbxml.client.xmldb.CollectionImpl.storeResource(CollectionImpl.java:510) > > at org.dbxml.tools.command.AddDocument.execute(AddDocument.java:120) > > at org.dbxml.tools.XMLTools.execute(XMLTools.java:320) > > at org.dbxml.tools.XMLTools.process(XMLTools.java:249) > > at org.dbxml.tools.XMLUserTools.main(XMLUserTools.java:90) > > > > The document is attached to this mail. It seems to be wellformed (IE 5.5 > > and rxp are ok with it). I managed to store it in a eXist XML database. > > Any help would be fine. > > Thanks. > > > > -- > Carsten Ziegert > Fachhochschule Hannover > FB Informations- und Kommunikationswesen > Ricklinger Stadtweg 120 > 30459 Hannover > ++49-511-9296-768 > http://summit-bmt.fh-hannover.de > > > -- WEBEDISOFT - The Instant Collaboration Company T�l : 02 97 35 30 26 Fax : 02 97 35 30 31
