Hi Karthik,


If you let MarkLogic parse such doctypes properly (using document-load,
document-get or unquote), you would see it gets stripped away. That is
conform XML recommendation. The doctype would have no use inside MarkLogic,
so I wouldn’t bother inserting it at storage within MarkLogic. Instead, add
the doctype on output. You can specify output options within a specific
XQuery file, or you can specify it in general for an App Server in the
Admin interface.



Kind regards,

Geert



*Van:* [email protected] [mailto:
[email protected]] *Namens *
[email protected]
*Verzonden:* woensdag 13 februari 2013 15:19
*Aan:* [email protected]
*Onderwerp:* [MarkLogic Dev General] Adding DOCTYPE header to xml documents
in MarkLogic



Hi,



I have a requirement to add a DOCTYPE header to a xml document stored in
MarkLogic DB.

<!DOCTYPE         Test       PUBLIC "-//NLM//DTD Test //EN" "Test.dtd">



If I try to insert a document with the above DOCTYPE header, I am getting
“Unexpected token syntax error, unexpected Junk_”.

I didn’t face any issue when I try to insert documents with XSD mapping.

Is it possible to insert documents with DOCTYPE header?



Thanks and Regards,

Karthik



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.
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to