Hi AkhilaReddy, you can use xdmp:load("$filepath","$fileuri") function
Eg: xdmp:load("C:\MarkLogic\xml\sample.xml","sample.xml") It will work. My sample.xml is <sample> hi this is asample data {1,2,3,4.....}</sample> Santhosh Rajasekaran <akhilareddy.ae...@cognizant.com> Sent by: general-boun...@developer.marklogic.com 04/13/2009 07:35 PM Please respond to General Mark Logic Developer Discussion <general@developer.marklogic.com> To <general@developer.marklogic.com> cc Subject [MarkLogic Dev General] unable to load data having '}' tags Hi, I need to insert the following content into Database, <docbook:chapter> <docbook:para>Let's let the circle relation stand for positive integers evenly divisible by 4. So it's the infinite set {4, 8, 12, 16, ...}.</docbook:para> <docbook:para>We'll let Oval stand for the even positive integers, {2, 4, 6, 8, ...}.</docbook:para> <docbook:para /> </docbook:chapter> I tried loading this using both xdmp:document-load and xdmp:document-insert functions with utf-8 encoding, but still unable to load this xml I get the following error Unexpected token syntax error, unexpected Dot_, expecting Comma_ or Rbrace because of ?}? tags inside the xml Any help will be greatly appreciated. Thanks and Regards, Akhila. 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, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. _______________________________________________ General mailing list General@developer.marklogic.com http://xqzone.com/mailman/listinfo/general ForwardSourceID:NT0000A77A =====-----=====-----===== Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you
_______________________________________________ General mailing list General@developer.marklogic.com http://xqzone.com/mailman/listinfo/general