Hi,

  The "Explore" feature un QConsole is making the expectation that a
document node has exactly one child node.  If there is a document with
several children, the following error is displayed and it is not
possible to explore the content of the database:

XDMP-ARGTYPE: (err:XPTY0004)
xdmp:node-kind((fn:doc("/tmp/bug-explore.xml")/comment(),
fn:doc("/tmp/bug-explore.xml")/hello)) -- arg1 is not of type node()

  The following reproduces the problem (execute it to insert an XML
document with a comment before the root element, a common practice,
then explore the same database you inserted it in):

    xdmp:document-insert(
      '/tmp/bug-explore.xml',
      document {
        comment { 'This is a comment' },
        <hello>World!</hello>
      })

  Regards,

-- 
Florent Georges
http://fgeorges.org/
http://h2oconsulting.be/



-- 
Florent Georges
http://fgeorges.org/
http://h2oconsulting.be/
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to