Hi all,

        1) Loading JAVA document.
                I am trying to load a java file (sample.java) from java 
using xcc api provided by marklogic.
                ContentCreateOptions createOptions = new 
ContentCreateOptions();
                createOptions.setFormatText();
                Content content = ContentFactory.newContent("sample.java", 
fileBytes, createOptions);
                xccSession.insertContent(content);
 
        // fileBytes - is the byte array constructed from the java 
file(sample.java).

        But it is giving 
        com.marklogic.xcc.exceptions.XQueryException: XDMP-DOCROOTTEXT: 
Invalid root text  (Exception)

        Note:If i load the same file using xdmp:document-load() function 
from cq it is loading fine.

        2) Loading HTML document.

        When i load a html file using xcc api

                ContentCreateOptions createOptions = new 
ContentCreateOptions();
                createOptions.setFormatText();
                Content content = ContentFactory.newContent("sample.html", 
fileBytes, createOptions);
                xccSession.insertContent(content);
 
        If the html tag is not closed any where then it is throwing 
XDMP-DOCNOENDTAG:Expecting end tag 

        com.marklogic.xcc.exceptions.XQueryException: XDMP-DOCNOENDTAG: 
Expecting end tag </link> at sample.html
        line 10

        Note:If i load the same file using xdmp:document-load() function 
from cq it is loading fine.

        Please help me in this regard. How to tackle this problem.

Thanks and Regard,
Santhosh Rajasekaran
=====-----=====-----=====
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
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to