A schema defines the expected output. The report schema for all Mart reports is defined in the reports-schema.xml file. This file is available in the MartServer\WEB-INF folder. Help ensure that the report data output always confers to the schema definition.
Report schemas have the following characteristics:
Follow these steps:
Note: There are various tools to generate Schema Definition (i.e. XSD) information from a XML. You can generate the schema definition using a tool of your choice and include it in the reports-schema.xml file.
An example of defining a report schema on Users is shown below.
<report_schema>
<Name> Users </Name>
<schema>
<Report_Output>
<![CDATA[<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="report_root">
<xs:complexType>
<xs:sequence>
<xs:element name = "User" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name = "Id" type="xs:string"/>
<xs:element name ="Username" type="xs:string"/>
<xs:element name ="EmailId" type="xs:string"/>
<xs:element name ="UserType" type="xs:string"/>
<xs:element name = "IsInternal" type="xs:string"/>
<xs:element name = "IsDeleted" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>]]>
</schema>
</report_schema>
|
Copyright © 2015 CA Technologies.
All rights reserved.
|
|