Hi Eric

We are storing only XML files at the moment as ML 6 and Below we have indexing 
only for XML files.

But end user is sending JSON document (Full ML JSON format) which we are 
transforming to XML in the transform module of PUT request.

The XML is validated against schema and then stored with the URI being sent.  
The URI till now is ending with .xml and content is JSON so we had no issues in 
ML 6.

In ML7, as URI extension is taking more priority to decide the content format 
our logic is not working any more.

I tried removing application/xml mime type but no change. Then I tried removing 
updating text/xml mime-type by removing xml in the extension, this resulted in 
new issue where in content is treated as binary in the transform module.

We are not able to go ahead with upgrade to ML7 as our existing logic is not 
working.

As you suggested we need to use resource extensions or any other alternative to 
fix this.

Regards,
Gnana(GP)
This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted by applicable law, this e-mail 
and other e-mail communications sent to and from Cognizant e-mail addresses may 
be monitored.
_______________________________________________
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to