Questions Columns Rows
GitHub icon


Trex - Grammar language

< >

Trex, aka Tree Regular Expressions for XML, is a grammar language created in 2001 by James Clark.

#2267on PLDB 22Years Old

TREX is a new language for validating XML documents. A TREX pattern specifies a pattern for the structure and content of an XML document. A TREX pattern thus identifies a class of XML documents consisting of those documents that match the pattern. A TREX pattern is itself an XML document.

Example from the web:
<element name="addressBook"> <zeroOrMore> <element name="card"> <element name="name"> <anyString/> </element> <element name="email"> <anyString/> </element> </element> </zeroOrMore> </element>

View source

- Build the next great programming language Search Add Language Features Creators Resources About Blog Acknowledgements Stats Sponsor Traffic Traffic Today Day 267 Logout