In the code snippet below, you've retrieved the binary document, not the filtered XHTML. If you've stored the XHTML as properties on the binary document, then use the "category" parameter on GET /v1/documents specifying both "content" (binary) and "properties". Note that you'll get a multipart/mixed response.
A common pattern while working with binaries is to store the binary and XHTML in separate files, then (using a collection or directory) restrict searches to the XHTML content. You can then present some interesting results to your users, including a link to download the original binary. -- Dave Cassel<http://davidcassel.net>, @dmcassel<https://twitter.com/dmcassel> Technical Community Manager MarkLogic Corporation<http://www.marklogic.com/> http://developer.marklogic.com/ From: <[email protected]<mailto:[email protected]>> on behalf of Rajesh Kumar <[email protected]<mailto:[email protected]>> Reply-To: MarkLogic Developer Discussion <[email protected]<mailto:[email protected]>> Date: Thursday, November 3, 2016 at 7:52 AM To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Subject: [MarkLogic Dev General] epub - opf file to xml Hi Dave, I tried below code by creating rest instance in 8020 port and it worked fine. As i want to implement xpath on the opf content document-filter didn't work for me eventhough it converted to xhtml format. Code snippet: xdmp:document-get("http://xxxx:8020/v1/documents?uri=/epub/sample/OPS/package.opf", <options xmlns="xdmp:document-get" xmlns:http="xdmp:http"> <repair>full</repair> <format>xml</format> <http:authentication> <http:username>xxxx</http:username> <http:password>xxxx</http:password> </http:authentication> </options>) Thanks for your response. Regards, Rajesh
_______________________________________________ General mailing list [email protected] Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general
