You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-users@xml.apache.org by Unico Hommes <Un...@hippo.nl> on 2002/03/18 18:28:19 UTC
Exception : Collection Document Malformed
Hi,
When adding some xml documents to xindice I am getting the following exception :
<exception>
org.xmldb.api.base.XMLDBException: Collection Document Malformed
</exception>
In my code I use only the xmldb api, nothing xindice specific :
<code description="creating a new collection">
CollectionManagementService service = (CollectionManagementService) parentCollection.getService("CollectionManagementService","1.0");
childCollection = service.createCollection("new");
</code>
<code description="adding new resource">
byte[] data = someObject.getContentBytes();
Resource resource = collection.addResource("document.xml",XMLResource.RESOURCE_TYPE);
resource.setContent(new String(data));
</code>
Attached is one of the xml documents I am having problems with.
BTW: I don't have any problem adding this document with the xindicadmin tool to the same collection.
Seems to me to be some kind of encoding problem ? Anybody know of a solution ?
Thnx,
Unico