Skip to content
Snippets Groups Projects
Commit f34d9865 authored by Brutzman, Don's avatar Brutzman, Don
Browse files

XML Schema for CoT validation with initial example

parent 9c5c2fd2
No related branches found
No related tags found
No related merge requests found
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2024 rel. 2 sp1 (x64) (https://www.altova.com) by Don Brutzman (Naval Postgraduate School) -->
<!-- created 12 August 2024 -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning" elementFormDefault="qualified" attributeFormDefault="unqualified" vc:minVersion="1.1">
<!-- https://stackoverflow.com/questions/2357943/whats-the-difference-between-xsdinclude-and-xsdimport -->
<xs:include schemaLocation="CoT Base-Event Schema (PUBLIC RELEASE).xsd" id="Base-Event"/>
<xs:include schemaLocation="CoT Contact Schema (PUBLIC RELEASE).xsd" id="Contact"/>
<!-- note inconsistent whitespace in CoT Contact Schema file name -->
<xs:include schemaLocation="CoT Flow-Tags Schema (PUBLIC RELEASE).xsd" id="Flow-Tags"/>
<xs:include schemaLocation="CoT Image Schema (PUBLIC RELEASE).xsd" id="Image"/>
<xs:include schemaLocation="CoT Link Schema (PUBLIC RELEASE).xsd" id="Link"/>
<xs:include schemaLocation="CoT Remarks Schema (PUBLIC RELEASE).xsd" id="Remarks"/>
<xs:include schemaLocation="CoT Request Schema (PUBLIC RELEASE).xsd" id="Request"/>
<xs:include schemaLocation="CoT Sensor Schema (PUBLIC RELEASE).xsd" id="Sensor"/>
<xs:include schemaLocation="CoT Shape Schema (PUBLIC RELEASE).xsd" id="Shape"/>
<xs:include schemaLocation="CoT Spatial Schema (PUBLIC RELEASE).xsd" id="Spatial"/>
<xs:include schemaLocation="CoT Track Schema (PUBLIC RELEASE).xsd" id="Track"/>
<xs:include schemaLocation="CoT Uid Schema (PUBLIC RELEASE).xsd" id="Uid"/>
<xs:element name="CursorOnTarget">
<xs:annotation>
<xs:documentation>Root element for a CoT stream</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="contact"/>
<xs:element ref="detail"/>
<xs:element ref="event"/>
<xs:element ref="_flow-tags_"/>
<xs:element ref="image"/>
<xs:element ref="link"/>
<xs:element ref="point"/>
<xs:element ref="remarks"/>
<xs:element ref="request"/>
<xs:element ref="sensor"/>
<xs:element ref="shape"/>
<xs:element ref="spatial"/>
<xs:element ref="track"/>
<xs:element ref="uid"/>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
\ No newline at end of file
This diff is collapsed.
CoTreceiver/lib/xsd/examples/MT-5_Alert_Example_GantzCotEventsDisplayXMLSpy.png

83.1 KiB

CoTreceiver/lib/xsd/examples/MT-5_Alert_Example_Screenshot_20240807_091552_Gmail.jpg

450 KiB

<event version="2.0" uid="Gantz_ISN_1Obj_101" type="a-u-G" how="h-g-i-g-o" time="2024-02-23T19:49:10Z" start="2024-02-23T19:49:10Z" stale="2025-02-23T19:49:10Z"><point lat="38.2831745" lon="-121.9006541" hae="-5.73" le="9999999" ce="9999999" /><detail><remarks to="MT5" keywords="Object" version="1.0" /><contact callsign="ISN 1Object 101" /><link type="a-f-G-U-C-I" uid="ISN1" parent_callsign="GANTZ_MOUNTAIN_MT5" relation="p-p" /><usericon iconsetpath="COT_MAPPING_2525C/a-u/a-u-G" /></detail></event>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment