我想使用japser报告从jxml文件生成xml输出。我必须实现这样的目标。
<xml>
<header>
<type />
</header>
<members>
<info />
<info />
<data atrr="df">
<name></name>
<city></city>
</data>
<data atrr="df">
<name></name>
<city></city>
</data>
<data atrr="df">
<name></name>
<city></city>
</data>
</members>
</xml>
但我得到这样的输出。
<jasperPrint xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/print http://jasperreports.sourceforge.net/xsd/jasperprint.xsd" name="json" pageWidth="595" pageHeight="842" topMargin="20" leftMargin="20" bottomMargin="20" rightMargin="20" locale="it_IT" timezone="Asia/Kolkata"><property name="net.sf.jasperreports.export.xml.start.page.index" value="0"/><property name="net.sf.jasperreports.export.xml.end.page.index" value="0"/><property name="net.sf.jasperreports.export.xml.page.count" value="1"/>
<origin band="background"/><origin band="pageHeader"/>
<origin band="columnHeader"/><origin band="detail"/>
<origin band="columnFooter"/><origin band="pageFooter"/>
<origin band="summary"/>
<page><text textHeight="11.640625" lineSpacingFactor="1.1640625" leadingOffset="-2.3583984">
<reportElement uuid="698866c8-7d26-4bc7-8727-b4a56d239a53" x="92" y="50" width="100" height="24" origin="3" srcId="1" printId="1"/>
<textContent>b1</textContent>
</text><text textHeight="11.640625" lineSpacingFactor="1.1640625" leadingOffset="-2.3583984">
<reportElement uuid="e775c6c0-4058-4bc4-8c7a-d4d381fd6e66" x="210" y="50" width="100" height="24" origin="3" srcId="2" printId="1"/>
<textContent>b2</textContent></text>
......
因为我想把结果作为普通的xml而且我得到的结果包含jasperrprint标签意味着jrxml文件的元素。
是否可以实现正常的xml?
提前致谢