XML Parsing in JavaScript

Author Alberto Simões



PDF
Thumbnail PDF

File

OASIcs.SLATE.2017.9.pdf
  • Filesize: 427 kB
  • 10 pages

Document Identifiers

Author Details

Alberto Simões

Cite As Get BibTex

Alberto Simões. XML Parsing in JavaScript. In 6th Symposium on Languages, Applications and Technologies (SLATE 2017). Open Access Series in Informatics (OASIcs), Volume 56, pp. 9:1-9:10, Schloss Dagstuhl – Leibniz-Zentrum für Informatik (2017) https://doi.org/10.4230/OASIcs.SLATE.2017.9

Abstract

With Web 2.0 the dynamic web got to a reality. With it, some new concepts arived, like the use of asynchronous calls to receive missing data to render a website, instead of requesting a full new page to the server. For this task, and in the recent years, developers use mostly the JSON format for the interchange of data, than XML. Nevertheless, XML is more suitable for some kind of data interchange but, and even if the web is based in SGML/XML standards, processing XML using directly JavaScript is tricky.

In this document, a set of different approaches to parse XML with JavaScript will be described, and a new module, based on a set of translation functions, will be presented. At the end, a set of experiments will be discussed, trying to evaluate how versatile the proposed approach is.

Subject Classification

Keywords
  • XML
  • JSON
  • Parsing
  • JavaScript

Metrics

  • Access Statistics
  • Total Accesses (updated on a weekly basis)
    0
    PDF Downloads

References

  1. José João Almeida and José Carlos Ramalho. XML::DT a Perl Down-Translation module. In XML-Europe'99, Granada, Spain, May 1999. Google Scholar
  2. Bear Bibeault and Yehuda Katz. jQuery in Action, Second Edition. Manning Publications, 2 edition, 2010. Google Scholar
  3. Bert Bos. Descriptions of all CSS specifications. Technical report, World Wide Web Consortium (w3c), 2017. URL: https://www.w3.org/Style/CSS/specs.en.html.
  4. David Brownell. Processing XML Efficiently with Java. O'Reilly Media, 2002. Google Scholar
  5. James Clark. XSL Transformations (XSLT) - version 1.0. Technical report, World Wide Web Consortium (w3c), 1999. URL: https://www.w3.org/TR/xslt.
  6. Rúben Fonseca and Alberto Simões. Alternativas ao XML: YAML e JSON. In José Carlos Ramalho, João Correia Lopes, and Luís Carríço, editors, XATA 2007 - 5th Conferência Nacional em XML, Aplicações e Tecnologias Associadas, pages 33-46, February 2007. Google Scholar
  7. Michael Kay. XSL Transformations (XSLT) - version 2.0. Technical report, World Wide Web Consortium (w3c), 2007. URL: https://www.w3.org/TR/xslt20/.
  8. Michael Kay. XSL Transformations (XSLT) - version 3.0. Technical report, World Wide Web Consortium (w3c), 2017. URL: https://www.w3.org/TR/xslt30/.
  9. Peter-Paul Koch. The document object model: an introduction. Digital Web Magazine, May 2001. Google Scholar
  10. Travis Leithead. DOM parsing and serialization. Technical report, World Wide Web Consortium (w3c), 2016. URL: https://www.w3.org/TR/DOM-Parsing/.
  11. Code Lindley. jQuery Succinctly. Syncfusion, 2012. Google Scholar
  12. Mark Pilgrim. HTML5: Up and Running. O'Reilly Media, Inc., 1st edition, 2010. Google Scholar
  13. Alberto Simões, Álvaro Iriarte, and José João Almeida. Dicionário-aberto – a source of resources for the portuguese language processing. Computational Processing of the Portuguese Language, Lecture Notes for Artificial Intelligence, 7243:121-127, April 2012. Google Scholar
Questions / Remarks / Feedback
X

Feedback for Dagstuhl Publishing


Thanks for your feedback!

Feedback submitted

Could not send message

Please try again later or send an E-mail