A typeful and tagless representation for XML documents

被引:0
|
作者
Zhu, DP [1 ]
Xi, HW [1 ]
机构
[1] Boston Univ, Dept Comp Sci, Boston, MA 02215 USA
关键词
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
When constructing programs to process XML documents, we immediately face the question as to how XML documents should be represented internally in the programming language we use. Currently, most representations for XML documents are typeless in the sense that the type information of an XML document cannot be reflected in the type of the representation of the document (if the representation is assumed to be typed). Though convenient to construct, a typeless representation for XML documents often makes use of a large number of representation tags, which not only require some significant amount of space to store but may also incur numerous run-time tag checks when the represented documents are processed. Moreover, with a typeless representation for XML documents, it becomes difficult or even impossible to statically capture program invariants that are related to the type information of XML documents. Building upon our recent work on guarded recursive datatypes, we present an approach to representing XML documents in this paper that not only allows the type information of an XML document to be reflected in the type of the representation of the document but also significantly reduces the need for representation tags that are required in typeless representations. With this approach, we become able to process XML documents in a typeful manner, thus reaping various well-known software engineering benefits from the presence of types.
引用
收藏
页码:89 / 104
页数:16
相关论文
共 50 条
  • [1] Efficient memory representation of XML documents
    Busatto, G
    Lohrey, M
    Maneth, S
    DATABASE PROGRAMMING LANGUAGES, 2005, 3774 : 199 - 216
  • [2] Grove Data Model for Efficient Representation of XML Documents
    Anwar, Yasmin
    Kamel, Amr
    Ahmed, Aziza Saad
    WOCN: 2009 IFIP INTERNATIONAL CONFERENCE ON WIRELESS AND OPTICAL COMMUNICATIONS NETWORKS, 2009, : 99 - +
  • [3] A Compressed Self-indexed Representation of XML Documents
    Brisaboa, Nieves R.
    Cerdeira-Pena, Ana
    Navarro, Gonzalo
    RESEARCH AND ADVANCED TECHNOLOGY FOR DIGITAL LIBRARIES, PROCEEDINGS, 2009, 5714 : 273 - +
  • [4] A typed representation for HTML']HTML and XML documents in Haskell
    Thiemann, P
    JOURNAL OF FUNCTIONAL PROGRAMMING, 2002, 12 (4-5) : 435 - 468
  • [5] Meta-programming through typeful code representation
    Chen, CY
    Xi, HW
    JOURNAL OF FUNCTIONAL PROGRAMMING, 2005, 15 (06) : 797 - 835
  • [6] Meta-programming through typeful code representation
    Chen, CY
    Xi, HW
    ACM SIGPLAN NOTICES, 2003, 38 (09) : 275 - 286
  • [7] Virtual DOM: an efficient virtual memory representation for large XML documents
    Psaila, Giuseppe
    DEXA 2008: 19TH INTERNATIONAL CONFERENCE ON DATABASE AND EXPERT SYSTEMS APPLICATIONS, PROCEEDINGS, 2008, : 233 - 237
  • [8] A data registry-based approach for semantic representation and exchange of XML documents
    Na, HS
    Chae, JS
    Baik, DK
    INTERNET APPLICATIONS, 1999, 1749 : 311 - 316
  • [9] Clustering of XML documents
    Guillaume, D
    Murtagh, F
    COMPUTER PHYSICS COMMUNICATIONS, 2000, 127 (2-3) : 215 - 227
  • [10] Classification of XML documents
    Bouchachia, Abdelhamid
    Hassler, Marcus
    2007 IEEE SYMPOSIUM ON COMPUTATIONAL INTELLIGENCE AND DATA MINING, VOLS 1 AND 2, 2007, : 390 - 396