Is there an XML-like language (or any language) which allows easy expression of overlapping data?

27 Views Asked by At

(This is PROBABLY in the wrong site but I am unsure of where the right site is to assign this question to. Mod(s), please forgive and assist me.)

I have the following sequence:

cdadbcdacdbcbc

I have the following example "code" attempt to tag the sequence:

<c>c<d>d<a>ad<b>bcda</a>cdb</d>cb</b>c</c>

Notice that is "bad XML". It gets a "start/end tag missmatch" error in XML Marker. I did that on purpose to demonstrate.

I was trying to, and desire to, efficiently "tag" elements of a sequence in a string.

I confess I'm having difficulty knowing how to express this question. Is there a language that allows me to easily (efficiently) express (possibly, wildly) overlapping sets (think of Venn Diagrams) "found" in a sequence like the one above? Thank you.

0

There are 0 best solutions below