Technical Reports (CIS)

Document Type

Technical Report

Date of this Version

October 2004


University of Pennsylvania Department of Computer and Information Science Technical Report No. MS-CIS-04-23.


XTATIC is a lightweight extension of C# offering native support for statically typed XML processing. XML trees are built-in values in XTATIC, and static analysis of the trees created and manipulated by programs is part of the ordinary job of the typechecker. "Tree grep" pattern matching is used to investigate and transform XML trees.

XTATIC’s surface syntax and type system are tightly integrated with those of C#. Beneath the hood, however, an implementation of XTATIC must address a number of issues common to any language supporting a declarative style of XML processing (e.g., XQUERY, XSLT, XDUCE, CDUCE, XACT, XEN, etc.). In particular, it must provide representations for XML tags, trees, and textual data that use memory efficiently, support efficient pattern matching, allow maximal sharing of common substructures, and permit separate compilation. We analyze these representation choices in detail and describe the solutions used by the XTATIC compiler.



Date Posted: 26 June 2005