
My document object model can do more than yours
Author(s) -
Alain Couthures
Publication year - 2013
Publication title -
balisage series on markup technologies
Language(s) - English
Resource type - Conference proceedings
ISSN - 1947-2609
DOI - 10.4242/balisagevol10.couthures01
Subject(s) - xpath , json , computer science , simple api for xml , xml , document object model , document type definition , information retrieval , object (grammar) , programming language , xslt , database , world wide web , xml database , document structure description , xml signature , artificial intelligence
Document object models, specifically the browser DOM, were designed to represent HTML and XML documents. Languages such as XPath were designed to access and traverse the DOM of HTML and XML documents. But suppose we wanted to bring the power and convenience of XML technologies like XPath to new data types. Could we extend the DOM to support CSV files? JSON? ZIP files? Yes we can! This paper explores a number of ways in which the DOM can be made to do more. We can loosen restrictions, describe new sequence types, and even define new XPath axes to make the DOM better and more useful.