Tomeh
Tomeh

Reputation: 301

MarkLogic WebDav documents created as binary instead of xml

I am trying to create a dynamic website using MarkLogic and xQuery as the server side language.

I have created a WebDav server and am using windows explorer to create xml documents within the database, the contents of which are used as some pages content.

When I create xml documents in windows explorer, MarkLogic inserts them as binary documents instead of xml documents, therefore my xquery does not work. Is there any way I can change this, ie a setting within MarkLogic?

If I do xdmp:document-insert("/example.xml", <a/>) from within cq it does create an xml document.

Many thanks.

Upvotes: 1

Views: 141

Answers (1)

mblakele
mblakele

Reputation: 7842

Check the mimetypes in the admin console: http://docs.marklogic.com/guide/ingestion/formats has more on that subject.

Upvotes: 2

Related Questions