Skip to main content
Article
Taming XML: Objects first, then markup
IEEE Electro/Information Technology
  • Matt Bone
  • Peter Nabicht
  • Konstantin Läufer, Loyola University Chicago
  • George K. Thiruvathukal, Loyola University Chicago
Document Type
Conference Proceeding
Publication Date
5-1-2008
Publisher Name
IEEE Computer Society
Disciplines
Abstract

Processing markup in object-oriented languages often requires the programmer to focus on the objects generating the markup rather than the more pertinent domain objects. The BetterXML framework aims to improve this situation by allowing the programmer to develop a domain-specific object model as usual and later bind this model to preexisting or newly generated markup. To this end, the framework provides two types of object trees, XElement and NaturalXML, for representing XML documents. XElement goes beyond DOM-like automatic parsing of XML by supporting the custom mapping of elements to domain objects; NaturalXML allows the mapping of existing domain objects to XML elements using class metadata. Both types of object trees can be inflated and deflated by means of a common intermediate representation in the form of an event stream. Finally, the framework includes the XML Intermediate Representation (XIR), a lossless record-oriented representation of XMLdocuments for efficient streaming and other types of data exchange.

Comments
© 2008 IEEE. Personal use of this material is permitted. Permission from IEEE must be obtained for all other users, including reprinting/ republishing this material for advertising or promotional purposes, creating new collective works for resale or redistribution to servers or lists, or reuse of any copyrighted components of this work in other works.
Creative Commons License
Creative Commons Attribution-Noncommercial-No Derivative Works 3.0
Citation Information
Matt Bone, Peter F. Nabicht, Konstantin Läufer, and George K. Thiruvathukal, Taming XML: Objects first, then markup, IEEE Electro/Information Technology 2008 (EIT 2008).