Hello,

I am writing a report that creates an xml export out of information from a diagram.

I need to give the Root object of the XML file additional information (a namespace).

The following line creates the Output and sets the name of the root-tag.

var xmlOutput = Context.createXMLOutputObject(Context.getSelectedFile(), "ReportResult");

For every following Tag I can set Attributes, with xmlItem.setAttribute(). This does not work for the Root though.

I can not work around by adding the information as the full name of the root-tag since the function does not accept a String with \" in it.

Does somebody know how I can add the namespace info to the root tag?

Thanks

 

Tags: ARIS Report Scripting