Schema For XML File Collection Plug-in Mapper File

See how to set up a schema for an XML file collection plug-in mapper file for Oracle Database Security Central.

In the following example, you can see how to set up a mapper schema:

Example 3 XML file collection plug-in Mapper Schema

<?xml version="1.0"?>

<!--
 Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.
-->

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:include schemaLocation="ezCollectorTemplate_schema.xsd"/>

<!-- XML Document Structure-->
<xsd:element name="AVXMLCollectorTemplate" >
	<xsd:complexType>
		<xsd:all>
			<xsd:element name="HeaderInfo"  minOccurs="1" maxOccurs="1">
				<xsd:complexType>
					<xsd:all>
						<!-- StartTag tag contains Root element of XML Audit data file-->
						<xsd:element name="StartTag" type="xsd:string" minOccurs="1" maxOccurs="1"/>
					</xsd:all>
				</xsd:complexType>
			</xsd:element>
			<xsd:element name="RecordInfo"  minOccurs="1" maxOccurs="1">
				<xsd:complexType>
					<xsd:all>
						<!-- start tag of xml audit record in XML audit file-->
						<xsd:element name="StartTag" type="xsd:string" minOccurs="1" maxOccurs="1"/>
					</xsd:all>
				</xsd:complexType>
			</xsd:element>
			<!-- tag for specifying xsl transformation related information -->
			<xsd:element name="XslTransformation" minOccurs="0" maxOccurs="1">
				<xsd:complexType>
                                        <xsd:all>
                                                <!-- tag to specify name of XSL file-->
                                                <xsd:element name="XslFile" type="xsd:string" minOccurs="1" maxOccurs="1"/>
                                                <!-- tag for specifying Root element of source XML Audit data file to be transformed-->
                                                <xsd:element name="SourceFileStartTag" type="xsd:string" minOccurs="1" maxOccurs="1"/>
                                        </xsd:all>
                                </xsd:complexType>
			</xsd:element>
			<!-- Secured Target to AV server fields Mapping for Core, Large, Extension fields and Marker-->
			<xsd:element name="FieldMappingInfo" type="FieldMappingInfoType" minOccurs="1" maxOccurs="1"/>
			<!-- Event Filter. This is optional. If it is not used, all the audit events will be collected-->
			<xsd:element name="EventFilter" type="EventFilterType" minOccurs="0" maxOccurs="1"/>
		</xsd:all>
		<!-- Secured Target Type-->
		<xsd:attribute name="securedTargetType" type="xsd:string" use="required"/>
		<!-- Max Secured Target version supported by the template-->
		<xsd:attribute name="maxSecuredTargetVersion" type="xsd:string" use="required"/>
		<!-- Min Secured Target version supported by the template-->
		<xsd:attribute name="minSecuredTargetVersion" type="xsd:string"/>
		<!-- Template file version-->
		<xsd:attribute name="version" type="xsd:string" use="required"/>
	</xsd:complexType>
</xsd:element>
</xsd:schema>