COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: luizgr on 17 Mar 2021 11:24:12 PM

Title: How to change the XML output format?
Post by: luizgr on 17 Mar 2021 11:24:12 PM
Hello. When we export a report to the XML format, it gives us an output like this:

....
<data>
        <row>
            <value>1</value>
            <value>Envisn</value>
             <value>Harvard, MA</value>
        </row>
        <row>
            <value>2</value>
            <value>IBM</value>
            <value>New York</value>
        </row>
    </data>
</dataset>

Is there any way we can change this format so cognos gives us the output that we want without using third party tools?
For example I'd like the metadata tags to be used like <number>2</number> instead of the "value" in each row.
Title: Re: How to change the XML output format?
Post by: fernie253 on 18 Sep 2024 10:36:43 AM
Hi,
I'm wanting to do the same thing.  Have you found a way to modify the element names in the output xml file?