Wouter de Vaal wrote:
Nope, before, first create meta data object and call setCustomDocument andWouter de Vaal wrote:
I'm trying to use the custom document part of meta data and experiencing some problems. If I add meta data to a collection or document all the attribute stuff shows up in the ugly browser and in my code when I do a retrieve of that meta data via the MetaService, however I've also set some custom xml to the MetaData using
meta.setCustomDocument(DOMParser.toDocument(someXMLString));
and this doesn't show up in the ugly browser (any attributes on the meta data do show in the uglybrowser) and also when I try to retrieve it using
meta.getCustomDocument()
it returns null. Is this feature not implemented or maybe am I doing something wrong?
Did you set meta after setCustomDocument using MetaService.setMetaData(id, meta) method?
then call setMetaData.
The custom document just doesn't show up in the database...
I just committed a fix for handling custom meta data documents, together with unit test for it:
http://cvs.apache.org/viewcvs.cgi/xml-xindice/java/tests/src/org/apache/xindice/integration/client/services/MetaTest.java?rev=1.5&view=markup
See the last method, testSetDocumentCustomMetaData.
Vadim
