com.marklogic.xcc.types

## Interface XdmComment

- All Superinterfaces:
    XdmItem, XdmNode, XdmValue

      public interface XdmComment
      extends XdmNode

  An XQuery value which is an comment().

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `org.w3c.dom.Comment` | `asW3cComment()`
    `org.w3c.dom.Comment` | `asW3cComment(javax.xml.parsers.DocumentBuilder docBuilder)`

    - ### Methods inherited from interface com.marklogic.xcc.types.XdmNode

      `asW3cNode, asW3cNode`

    - ### Methods inherited from interface com.marklogic.xcc.types.XdmItem

      `asInputStream, asReader, getItemType, isCached, writeTo, writeTo`

    - ### Methods inherited from interface com.marklogic.xcc.types.XdmValue

      `asString, getValueType`

- - ### Method Detail

    - #### asW3cComment

          org.w3c.dom.Comment asW3cComment(javax.xml.parsers.DocumentBuilder docBuilder)
                                    throws java.io.IOException,
                                           org.xml.sax.SAXException

      Throws:
        `java.io.IOException`
        `org.xml.sax.SAXException`

    - #### asW3cComment

          org.w3c.dom.Comment asW3cComment()
                                    throws javax.xml.parsers.ParserConfigurationException,
                                           java.io.IOException,
                                           org.xml.sax.SAXException

      Throws:
        `javax.xml.parsers.ParserConfigurationException`
        `java.io.IOException`
        `org.xml.sax.SAXException`

Copyright © 2025 MarkLogic Corporation

Complete online documentation for MarkLogic Server, XQuery and related components may be found at docs.progress.com