Akhila,
I don't have a problem using xdmp:documument-load() with MarkLogic
Server 4.0-3 on 64-bit linux. Note that your sample XML didn't declare
the 'docbook' prefix, so I started by fixing that:
$ cat /tmp/test.xml
<docbook:chapter xmlns:docbook="docbook">
<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>
Now in cq:
xdmp:document-load('/tmp/test.xml')
=> ()
As expected, there are no errors. Let's take a look at what's in the
database now:
doc('/tmp/test.xml')
=>
<docbook:chapter xmlns:docbook="docbook">
<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>
With regard to escaping curly braces within XQuery direct element
constructor expressions, you might find
http://www.w3.org/TR/xquery/#id-element-constructor helpful.
thanks,
-- Mike
On 2009-04-13 07:05, akhilareddy.ae...@cognizant.com wrote:
<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>
_______________________________________________
General mailing list
General@developer.marklogic.com
http://xqzone.com/mailman/listinfo/general