Skip to Content
0
Jan 30, 2010 at 11:56 PM

REBEAN Q: Report.getXMLView(XMLView.META_DATA) ??

53 Views

Hi folks -

I'm unable to successfully use the "META_DATA" output type when instructing geXMLView on my report object.

My code is as follows:

		Reports oReports = doc.getReports();

		Properties properties  = new Properties(); 
		properties.setProperty(OutputPropertiesType.XML_UNIT, "metric");
		
		for (int j = 0; j < oReports.getCount(); j++){
			
			Report r = oReports.getItem(j);

			XMLView xmlview = (XMLView)r.getXMLView(XMLView.META_DATA, properties);
			
			System.out.println("=============================  REPORT AS XML BEGIN ================");
			System.out.println(xmlview.getContent());
			System.out.println("============================= REPORT AS XML END ================");
		}

Does anyone know how this output type filter is correctly utilized so I can, according to the API reference of REBEAN:

META_DATA

static final int META_DATA

    Return the metadata of the report

    See Also:
        Constant Field Values


... obtain this XML?

Thanks