When I insert a document using my xindice function that calls using XML-RPC I need a CDATA section as follows:
xindice.Insert( String( "/db/test"), String( "mydoc"), String( "<![CDATA[<root><doc>something</doc></root>]]>"));
Without the CDATA section I get a document parse error since the XML tags are not visible.
Document doc = DOMParser.toDocument((String) message.get(DOCUMENT));
Specifically the message.get(DOCUMENT) line returns the incorrect data. Is this an intended feature? BTW I checked to see if this was an XMLRPC failure, but the XMLRPC call includes the XML tags.
(please, Christian, try to avoid HTML mail)
I don't get what you are trying to do. I assume that you made a function with the signature Insert(String collection, String key, String document). If that's the case, you are trying to insert an empty XML document, since there is no root element (all you have is a CDATA tag). What am I'm missing?
Ciao,
-- Gianugo Rabellino
