Cot Xml Parser
Parses a CoT (Cursor-on-Target) XML event string into a TakPacketV2Data.
Multiplatform: built on the io.github.pdvrieze.xmlutil:core streaming reader and kotlin.time.Instant (kotlin.time stdlib), so it runs on every KMP target.
Text-handling note: xmlutil may split an element's text body across several TEXT/CDSECT events (e.g. around entity references). Rather than assign on each event (which would keep only the last fragment), this parser ACCUMULATES the raw text run per active element into a buffer and commits the coalesced + trimmed value on END_ELEMENT.
Functions
Link copied to clipboard
Extract the raw inner bytes of the <detail> element, verbatim.
Link copied to clipboard
Parse a CoT XML event string into a TakPacketV2Data.