PHPJasperXML not running subreports
<p>I am tryting to run a jaspert report in PHP using the PHPJasperXML library. it works fine with a single report, but if in the report we include a subreport or a table with a subDataSet... we are not able to get it to work, and no error is shown.</p>

<p>This is the code we have in our PHP</p>

<blockquote>
  <p>include_once('class/tcpdf/tcpdf.php');
  include_once("class/PHPJasperXML.inc.php"); include_once
  ('setting2.php');</p>
  
  <p>$PHPJasperXML = new PHPJasperXML(); $p1 =
  'f31ecc1c-cf89-fcba-e5a5-583c196e1bb4'; $p2 =
  '16e72cac-0dc3-3ae8-dd38-5847ef21c927';
  $PHPJasperXML->arrayParameter=array("contact_id"=>"'" .$p1.
  "'","pf_id"=>"'" .$p2."'");
  $PHPJasperXML->load_xml_file("another.jrxml");</p>
  
  <p>$PHPJasperXML->transferDBtoArray($server,$user,$pass,$db);
  $PHPJasperXML->outpage("I");</p>
</blockquote>

<p>And this is the jaspert report (another.jrxml)</p>

<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;!-- Created with Jaspersoft Studio version 6.3.1.final using JasperReports Library version 6.3.1  --&gt;
&lt;!-- 2016-12-16T13:55:31 --&gt;
&lt;jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="another" pageWidth="842" pageHeight="595" orientation="Landscape" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="16540d19-a3b3-4a1b-98fa-5c4f46e1b7d6"&gt;
    &lt;property name="com.jaspersoft.studio.data.defaultdataadapter" value="crm_fhom"/&gt;
    &lt;property name="com.jaspersoft.studio.data.sql.tables" value=""/&gt;
    &lt;style name="Table_TH" mode="Opaque" backcolor="#F0F8FF"&gt;
        &lt;box&gt;
            &lt;pen lineWidth="0.5" lineColor="#000000"/&gt;
            &lt;topPen lineWidth="0.5" lineColor="#000000"/&gt;
            &lt;leftPen lineWidth="0.5" lineColor="#000000"/&gt;
            &lt;bottomPen lineWidth="0.5" lineColor="#000000"/&gt;
            &lt;rightPen lineWidth="0.5" lineColor="#000000"/&gt;
        &lt;/box&gt;
    &lt;/style&gt;
    &lt;style name="Table_CH" mode="Opaque" backcolor="#BFE1FF"&gt;
        &lt;box&gt;
            &lt;pen lineWidth="0.5" lineColor="#000000"/&gt;
            &lt;topPen lineWidth="0.5" lineColor="#000000"/&gt;
            &lt;leftPen lineWidth="0.5" lineColor="#000000"/&gt;
            &lt;bottomPen lineWidth="0.5" lineColor="#000000"/&gt;
            &lt;rightPen lineWidth="0.5" lineColor="#000000"/&gt;
        &lt;/box&gt;
    &lt;/style&gt;
    &lt;style name="Table_TD" mode="Opaque" backcolor="#FFFFFF"&gt;
        &lt;box&gt;
            &lt;pen lineWidth="0.5" lineColor="#000000"/&gt;
            &lt;topPen lineWidth="0.5" lineColor="#000000"/&gt;
            &lt;leftPen lineWidth="0.5" lineColor="#000000"/&gt;
            &lt;bottomPen lineWidth="0.5" lineColor="#000000"/&gt;
            &lt;rightPen lineWidth="0.5" lineColor="#000000"/&gt;
        &lt;/box&gt;
    &lt;/style&gt;
    &lt;subDataset name="Dataset1" whenResourceMissingType="Error" uuid="cb286bc1-dd4f-4969-b8c9-662d895617a0"&gt;
        &lt;property name="com.jaspersoft.studio.data.sql.tables" value="crm_fhom"/&gt;
        &lt;property name="com.jaspersoft.studio.data.defaultdataadapter" value="crm_fhom"/&gt;
        &lt;parameter name="contact_id_ds" class="java.lang.String"/&gt;
        &lt;parameter name="pf_id_ds" class="java.lang.String"/&gt;
        &lt;queryString&gt;
            &lt;![CDATA[SELECT a.name AS  IDCuota, c.importe_c AS Importe  FROM oms2b_pagocuotas a, contacts_oms2b_pagocuotas_1_c b,oms2b_pagocuotas_cstm c 
            WHERE a.id =b.contacts_oms2b_pagocuotas_1oms2b_pagocuotas_idb AND 
    b.contacts_oms2b_pagocuotas_1contacts_ida=$P{contact_id_ds} AND c.id_c = a.id AND
    a.estado_pago NOT IN ('enviado', 'cobrado') AND a.deleted = '0' AND b.deleted = '0'

    UNION
SELECT a.name AS  IDCuota, c.importe_c AS Importe  FROM oms2b_pagocuotas a, oms2b_facturacion_oms2b_pagocuotas_1_c b, 
oms2b_pagocuotas_cstm c, contacts_oms2b_pagocuotas_1_c d WHERE a.id = b.oms2b_facturacion_oms2b_pagocuotas_1oms2b_pagocuotas_idb AND  
b.oms2b_facturacion_oms2b_pagocuotas_1oms2b_facturacion_ida=$P{pf_id_ds} AND 
c.id_c = a.id AND 
d.contacts_oms2b_pagocuotas_1contacts_ida=$P{contact_id_ds} AND
a.id = d.contacts_oms2b_pagocuotas_1oms2b_pagocuotas_idb]]&gt;
        &lt;/queryString&gt;
        &lt;field name="IDCuota" class="java.lang.String"/&gt;
        &lt;field name="Importe" class="java.math.BigDecimal"/&gt;
    &lt;/subDataset&gt;
    &lt;parameter name="contact_id" class="java.lang.String"/&gt;
    &lt;parameter name="pf_id" class="java.lang.String"/&gt;
    &lt;queryString&gt;
        &lt;![CDATA[SELECT NULL AS Empty]]&gt;
    &lt;/queryString&gt;
    &lt;field name="Empty" class="java.lang.Object"/&gt;
    &lt;background&gt;
        &lt;band splitType="Stretch"/&gt;
    &lt;/background&gt;
    &lt;title&gt;
        &lt;band height="79" splitType="Stretch"/&gt;
    &lt;/title&gt;
    &lt;pageHeader&gt;
        &lt;band height="35" splitType="Stretch"/&gt;
    &lt;/pageHeader&gt;
    &lt;columnHeader&gt;
        &lt;band height="61" splitType="Stretch"/&gt;
    &lt;/columnHeader&gt;
    &lt;detail&gt;
        &lt;band height="227" splitType="Stretch"&gt;
            &lt;componentElement&gt;
                &lt;reportElement x="180" y="10" width="200" height="200" uuid="60aeb3c3-5590-4311-b01f-c69c16d47e8d"&gt;
                    &lt;property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.VerticalRowLayout"/&gt;
                    &lt;property name="com.jaspersoft.studio.table.style.table_header" value="Table_TH"/&gt;
                    &lt;property name="com.jaspersoft.studio.table.style.column_header" value="Table_CH"/&gt;
                    &lt;property name="com.jaspersoft.studio.table.style.detail" value="Table_TD"/&gt;
                &lt;/reportElement&gt;
                &lt;jr:table xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd"&gt;
                    &lt;datasetRun subDataset="Dataset1" uuid="f79c2300-e582-44ee-9ff4-22e0aa877229"&gt;
                        &lt;datasetParameter name="contact_id_ds"&gt;
                            &lt;datasetParameterExpression&gt;&lt;![CDATA[$P{contact_id}]]&gt;&lt;/datasetParameterExpression&gt;
                        &lt;/datasetParameter&gt;
                        &lt;datasetParameter name="pf_id_ds"&gt;
                            &lt;datasetParameterExpression&gt;&lt;![CDATA[$P{pf_id}]]&gt;&lt;/datasetParameterExpression&gt;
                        &lt;/datasetParameter&gt;
                        &lt;connectionExpression&gt;&lt;![CDATA[$P{REPORT_CONNECTION}]]&gt;&lt;/connectionExpression&gt;
                    &lt;/datasetRun&gt;
                    &lt;jr:column width="40" uuid="4267d755-22c6-4f25-8e4b-12ab685762a8"&gt;
                        &lt;property name="com.jaspersoft.studio.components.table.model.column.name" value="Column1"/&gt;
                        &lt;jr:tableHeader style="Table_TH" height="30" rowSpan="1"/&gt;
                        &lt;jr:tableFooter style="Table_TH" height="30" rowSpan="1"/&gt;
                        &lt;jr:columnHeader style="Table_CH" height="30" rowSpan="1"&gt;
                            &lt;textField&gt;
                                &lt;reportElement x="0" y="0" width="40" height="30" uuid="3f62601f-8974-46bd-9016-e2cd7d41af3a"/&gt;
                                &lt;textFieldExpression&gt;&lt;![CDATA[$F{IDCuota}]]&gt;&lt;/textFieldExpression&gt;
                            &lt;/textField&gt;
                        &lt;/jr:columnHeader&gt;
                        &lt;jr:columnFooter style="Table_CH" height="30" rowSpan="1"/&gt;
                        &lt;jr:detailCell style="Table_TD" height="30"/&gt;
                    &lt;/jr:column&gt;
                    &lt;jr:column width="40" uuid="a16363a3-a9a7-4516-93df-f8b43eddc6ce"&gt;
                        &lt;property name="com.jaspersoft.studio.components.table.model.column.name" value="Column2"/&gt;
                        &lt;jr:tableHeader style="Table_TH" height="30" rowSpan="1"/&gt;
                        &lt;jr:tableFooter style="Table_TH" height="30" rowSpan="1"/&gt;
                        &lt;jr:columnHeader style="Table_CH" height="30" rowSpan="1"&gt;
                            &lt;textField&gt;
                                &lt;reportElement x="0" y="0" width="40" height="30" uuid="b956d610-43eb-4181-8cd0-59b2897daec5"/&gt;
                                &lt;textFieldExpression&gt;&lt;![CDATA[$F{Importe}]]&gt;&lt;/textFieldExpression&gt;
                            &lt;/textField&gt;
                        &lt;/jr:columnHeader&gt;
                        &lt;jr:columnFooter style="Table_CH" height="30" rowSpan="1"/&gt;
                        &lt;jr:detailCell style="Table_TD" height="30"/&gt;
                    &lt;/jr:column&gt;
                &lt;/jr:table&gt;
            &lt;/componentElement&gt;
        &lt;/band&gt;
    &lt;/detail&gt;
    &lt;columnFooter&gt;
        &lt;band height="45" splitType="Stretch"/&gt;
    &lt;/columnFooter&gt;
    &lt;pageFooter&gt;
        &lt;band height="54" splitType="Stretch"/&gt;
    &lt;/pageFooter&gt;
    &lt;summary&gt;
        &lt;band height="42" splitType="Stretch"/&gt;
    &lt;/summary&gt;
&lt;/jasperReport&gt;
</code></pre>

<p>Any sugestions? Is this functionality supported by this library?</p>

<p>Regards</p>