Class XalanXmlDataSource

    • Constructor Detail

      • XalanXmlDataSource

        public XalanXmlDataSource​(org.w3c.dom.Document document)
                           throws JRException
        Creates the data source by parsing the xml document from the given file. The data source will contain exactly one record consisting of the document node itself.
        Parameters:
        document - the document
        Throws:
        JRException - if the data source cannot be created
      • XalanXmlDataSource

        public XalanXmlDataSource​(org.w3c.dom.Document document,
                                  java.lang.String selectExpression)
                           throws JRException
        Creates the data source by parsing the xml document from the given file. An additional XPath expression specifies the select criteria that produces the nodes (records) for the data source.
        Parameters:
        document - the document
        selectExpression - the XPath select expression
        Throws:
        JRException - if the data source cannot be created
      • XalanXmlDataSource

        public XalanXmlDataSource​(java.io.InputStream in)
                           throws JRException
        Creates the data source by parsing the xml document from the given input stream.
        Parameters:
        in - the input stream
        Throws:
        JRException
        See Also:
        JRXmlDataSource(Document)
      • XalanXmlDataSource

        public XalanXmlDataSource​(java.lang.String uri)
                           throws JRException
        Creates the data source by parsing the xml document from the given system identifier (URI).

        If the system identifier is a URL, it must be full resolved.

        Parameters:
        uri - the system identifier
        Throws:
        JRException
        See Also:
        JRXmlDataSource(Document)
      • XalanXmlDataSource

        public XalanXmlDataSource​(java.io.File file)
                           throws JRException
        Creates the data source by parsing the xml document from the given file.
        Parameters:
        file - the file
        Throws:
        JRException
        See Also:
        JRXmlDataSource(Document)