XML datasource: dynamic file name and location
39030Mar 5 2003 — edited May 30 2003I have an RDF file that uses an XML file as its datasouce. I have supplied it a valid DTD file location and a valid XML file location, via the report wizard. I would like to programatically change the name of the XML file at runtime. What are my options...use an XML customization? I would like to do it in an after parameter form trigger. Is this possible?
If I have to use an XML customization, is it possible to only customize part of the datasource tag. For example, here is my datasource tag (not from an RDF, but an XML report definition)
=====================================================
<dataSource name="QP_1">
<plugin factoryClass="oracle.reports.plugin.datasource.xmlpds.XMLDataSourceFactory"
majorVersionNumber="1" minorVersionNumber="2"
signOnParameter="XML_HTTPS">
<![CDATA[<xmlpds DTDVersion=" 1.0">
<dtd>file:C:/downloads/LVB.dtd</dtd>
<schema>null</schema>
<XSQLschema>null</XSQLschema>
<XSQLWithDTD>false</XSQLWithDTD>
<type>false</type>
<xmlWritten>true</xmlWritten>
<validate>false</validate>
<xml>file:C:/test/175.xml</xml>
<xsl>null</xsl>
<select>
<element name = "typef" type = "string" s_simpleTypeMapping = "string" /> <element name = "Volume" type = "string" s_simpleTypeMapping = "string" /> <element name = "Trades" type = "string" s_simpleTypeMapping = "string" /> <element name = "Percent_Total_Vol" type = "string" s_simpleTypeMapping = "string" /> <element name = "Percent_Total_Trd" type = "string" s_simpleTypeMapping = "string" /> </select>
<simpleTypesInfo></simpleTypesInfo></xmlpds>]]>
</plugin>
<displayInfo x="1.65002" y="1.00000" width="0.69995" height="0.19995"/>
<group name="G_1">
<displayInfo x="1.30188" y="1.94995" width="1.39624" height="0.77246"
/>
<dataItem> ...stuff here... </dataItem>
</group>
</dataSource>
==================================================
How can I only customize the <xml>file:C:/test/175.xml</xml>?
I only want to change the name of 175.xml to something like 176.xml.
I have to put in a valid XML when I create the report via Reports Builder, but once it is in there I need to change it.