Dual Syntax for XML Languages

Claus Brabrand, Anders Møller, Michael Ignatieff Schwartzbach

    Research output: Contribution to book/anthology/report/proceedingArticle in proceedingsResearchpeer-review

    11 Citations (Scopus)

    Abstract

    XML is successful as a machine processable data interchange format, but it is often too verbose for human use. For this reason, many XML languages permit an alternative more legible non-XML syntax. XSLT stylesheets are often used to convert from the XML syntax to the alternative syntax; however, such transformations are not reversible since no general tool exists to automatically parse the alternative syntax back into XML. We present XSugar, which makes it possible to manage dual syntax for XML languages. An XSugar specification is built around a context-free grammar that unifies the two syntaxes of a language. Given such a specification, the XSugar tool can translate from alternative syntax to XML and vice versa. Moreover, the tool statically checks that the transformations are reversible and that all XML documents generated from the alternative syntax are valid according to a given XML schema.
    Original languageEnglish
    Title of host publicationDatabase Programming Languages : 10th International Workshop, DBPL 2005, Trondheim, Norway, August 28-29, 2005, Revised Selected Papers
    Number of pages14
    PublisherSpringer
    Publication date2005
    Pages27-41
    ISBN (Print)3-540-30951-9
    DOIs
    Publication statusPublished - 2005
    EventDatabase Programming Languages. DBPL '05 - Trondheim, Norway
    Duration: 28 Aug 200529 Aug 2005
    Conference number: 10

    Conference

    ConferenceDatabase Programming Languages. DBPL '05
    Number10
    Country/TerritoryNorway
    CityTrondheim
    Period28/08/200529/08/2005
    SeriesLecture Notes in Computer Science
    Volume3774
    ISSN0302-9743

    Keywords

    • XML transformation
    • non-XML syntax
    • reversible
    • bidirectional

    Fingerprint

    Dive into the research topics of 'Dual Syntax for XML Languages'. Together they form a unique fingerprint.

    Cite this