raw raw : { event : { _attributes : { access ?: string ; how ?: string ; opex ?: string ; qos ?: string ; stale : string ; start : string ; time : string ; type : string ; uid : string ; version : string ; } ; detail ?: { __chat ?: { _attributes : { chatroom : string ; groupOwner ?: string ; id : string ; messageId ?: string ; parent ?: string ; senderCallsign : string ; } ; chatgrp : any ; } ; __forcedelete ?: {} ; __geofence ?: { _attributes : { boundingSphere ?: number ; elevationMonitored ?: string ; maxElevation ?: string ; minElevation ?: string ; monitor ?: string ; tracking ?: string ; trigger ?: string ; } ; } ; __group ?: { _attributes ?: { name : string ; role : string } } ; __video ?: { _attributes ?: { sensor ?: string ; spi ?: string ; uid ?: string ; url ?: string ; } ; ConnectionEntry ?: { _attributes : { address : string ; alias ?: string ; bufferTime ?: number ; ignoreEmbeddedKLV ?: boolean ; networkTimeout ?: number ; path ?: string ; port ?: number ; protocol ?: string ; roverPort ?: number ; rtspReliable ?: number ; uid : string ; } ; } ; } ; "_flow-tags_" ?: any ; ackrequest ?: { _attributes : { ackrequested : boolean ; tag : string ; uid : string } ; } ; archive ?: | { _attributes ?: { value ?: string } } | { _attributes ?: { value ?: string } } [] ; attachment_list ?: { _attributes : { hashes : string } } ; bearing ?: { _attributes : { value : string } } ; bearingUnits ?: { _attributes : { value : string } } ; color ?: { _attributes ?: { argb ?: string } } ; contact ?: { _attributes : { callsign : string ; endpoint ?: string ; name ?: string ; phone ?: string ; } ; } ; fileshare ?: { _attributes : { filename : string ; name : string ; senderCallsign : string ; senderUid : string ; senderUrl : string ; sha256 : string ; sizeInBytes : number ; } ; } ; fillColor ?: { _attributes ?: { value ?: string } } ; inclination ?: { _attributes : { value : string } } ; labels_on ?: { _attributes ?: { value ?: string } } ; link ?: | { _attributes : { mime ?: string ; parent_callsign ?: string ; point ?: string ; production_time ?: string ; relation ?: string ; remarks ?: string ; type ?: string ; uid ?: string ; url ?: string ; } ; } | { _attributes : { mime ?: string ; parent_callsign ?: string ; point ?: string ; production_time ?: string ; relation ?: string ; remarks ?: string ; type ?: string ; uid ?: string ; url ?: string ; } ; } [] ; link_attr ?: { _attributes : { color ?: number ; direction ?: "Infil" | "Exfil" ; method : "Driving" | "Walking" | "Flying" | "Swimming" | "Watercraft" ; order : "Ascending Check Points" | "Descending Check Points" ; planningmethod ?: "Infil" | "Exfil" ; prefix : string ; routetype : "Primary" | "Secondary" ; stroke ?: string ; type ?: string ; } ; } ; marti ?: { _attributes ?: {} ; dest ?: | { _attributes : { after ?: string ; callsign ?: string ; mission ?: string ; "mission-guid" ?: string ; path ?: string ; uid ?: string ; } ; } | { _attributes : { after ?: (...) | (...); callsign ?: (...) | (...); mission ?: (...) | (...); "mission-guid" ?: (...) | (...); path ?: (...) | (...); uid ?: (...) | (...); } ; } [] ; } ; mission ?: { _attributes ?: { authorUid ?: string ; guid ?: string ; name ?: string ; tool ?: string ; type ?: string ; } ; MissionChanges ?: { MissionChange : | { contentUid : { _text : ... } ; creatorUid : { _text ?: ... } ; details : { _attributes : ...; location ?: ... } ; isFederatedChange : { _text : ... } ; missionName : { _text : ... } ; timestamp : { _text : ... } ; type : { _text : ... } ; } | { contentUid : ...; creatorUid : ...; details : ...; isFederatedChange : ...; missionName : ...; timestamp : ...; type : ...; } [] ; } ; missionLayer ?: { name ?: { _text : string } ; parentUid ?: { _text : string } ; type ?: { _text : string } ; uid ?: { _text : string } ; } ; } ; northRef ?: { _attributes : { value : string } } ; precisionlocation ?: { _attributes : { altsrc ?: string ; geopointsrc ?: string } ; } ; range ?: { _attributes : { value : string } } ; rangeUnits ?: { _attributes : { value : string } } ; remarks ?: { _attributes ?: { source ?: string ; time ?: string ; to ?: string } ; _text ?: string ; } ; sensor ?: { _attributes : { azimuth ?: number ; displayMagneticReference ?: number ; elevation ?: number ; fov ?: number ; fovAlpha ?: number ; fovBlue ?: number ; fovGreen ?: number ; fovRed ?: number ; hideFov ?: boolean ; model ?: string ; north ?: number ; range ?: number ; rangeLines ?: number ; rangeLineStrokeColor ?: number ; rangeLineStrokeWeight ?: number ; roll ?: number ; strokeColor ?: number ; strokeWeight ?: number ; type ?: string ; version ?: string ; vfov ?: number ; } ; } ; shape ?: { ellipse ?: { _attributes : { angle : number ; major : number ; minor : number } ; } ; polyline ?: { _attributes ?: { closed ?: (...) | (...) | (...); color ?: (...) | (...); fillColor ?: (...) | (...); } ; vertex ?: | { _attributes : { lat : ...; lon : ... } } | { _attributes : ... } [] ; } ; } ; status ?: { _attributes : { battery ?: string ; readiness ?: string } } ; strokeColor ?: { _attributes ?: { value ?: string } } ; strokeStyle ?: { _attributes ?: { value ?: string } } ; strokeWeight ?: { _attributes ?: { value ?: string } } ; TakControl ?: { TakProtocolSupport ?: { _attributes ?: { version ?: (...) | (...) } } ; TakServerVersionInfo ?: { _attributes ?: { serverVersion ?: (...) | (...) } ; } ; } ; takv ?: { _attributes : { device ?: string ; os ?: string ; platform ?: string ; version ?: string ; } ; } ; tog ?: { _attributes ?: { enabled ?: string } } ; track ?: { _attributes ?: { course ?: string ; eCourse ?: string ; eSlope ?: string ; eSpeed ?: string ; slope ?: string ; speed ?: string ; } ; } ; uid ?: { _attributes : { Droid : string } } ; usericon ?: { _attributes : { iconsetpath : string } } ; } ; point : { _attributes : { ce : string | number ; hae : string | number ; lat : string | number ; le : string | number ; lon : string | number ; } ; } ; } ; }
Defined in node_modules/@tak-ps/node-cot/lib/cot.ts:67
Convert to and from an XML CoT message
Param: cot
A string/buffer containing the XML representation or the xml-js object tree