CougarXML
Encyclopedia
CougarXML is an XML
XML
Extensible Markup Language is a set of rules for encoding documents in machine-readable form. It is defined in the XML 1.0 Specification produced by the W3C, and several other related specifications, all gratis open standards....

 parser written in JavaScript
JavaScript
JavaScript is a prototype-based scripting language that is dynamic, weakly typed and has first-class functions. It is a multi-paradigm language, supporting object-oriented, imperative, and functional programming styles....

 using an object-oriented approach (OOP
Object-oriented programming
Object-oriented programming is a programming paradigm using "objects" – data structures consisting of data fields and methods together with their interactions – to design applications and computer programs. Programming techniques may include features such as data abstraction,...

). This library parses XML code and converts it into an object that can be manipulated with the DOM
Document Object Model
The Document Object Model is a cross-platform and language-independent convention for representing and interacting with objects in HTML, XHTML and XML documents. Aspects of the DOM may be addressed and manipulated within the syntax of the programming language in use...

 Level 3 standard API (W3C). It was released in March 2009 on the Google Code
Google Code
Google Code is Google's site for developer tools, APIs and technical resources. The site contains documentation on using Google developer tools and APIs—including discussion groups and blogs for developers using Google's developer products....

 platform by Massimiliano Guastafierro.

CougarXML is free and open source software
Free and open source software
Free and open-source software or free/libre/open-source software is software that is liberally licensed to grant users the right to use, study, change, and improve its design through the availability of its source code...

 (FOSS), licensed under the Mozilla Public License
Mozilla Public License
The Mozilla Public License is a free and open source software license. Version 1.0 was developed by Mitchell Baker when she worked as a lawyer at Netscape Communications Corporation and version 1.1 at the Mozilla Foundation...

 1.1.

Features

  • Source code Free and Open under terms of Mozilla Public License
    Mozilla Public License
    The Mozilla Public License is a free and open source software license. Version 1.0 was developed by Mitchell Baker when she worked as a lawyer at Netscape Communications Corporation and version 1.1 at the Mozilla Foundation...

     1.1
  • No external runtime required
  • Usable with any JavaScript 1.4+ engine
  • DOM Level 3 Compliant
  • Non-validating XML Parser
  • Syntax checking
  • Well-form checking
  • API that is easy to learn and use

Future development

  • Support for every Non-validating XML 1.0 feature (Entities, Attlists, Notations etc.)
  • Support for XML to JSON
    JSON
    JSON , or JavaScript Object Notation, is a lightweight text-based open standard designed for human-readable data interchange. It is derived from the JavaScript scripting language for representing simple data structures and associative arrays, called objects...

     conversion using JsonML
    JsonML
    JsonML, the JSON Markup Language is a lightweight markup language used to map between XML and JSON...

     (JSON Markup Language)
  • Support for Unicode
    Unicode
    Unicode is a computing industry standard for the consistent encoding, representation and handling of text expressed in most of the world's writing systems...

     (XML specifications)

Download

The latest version of CougarXML is downloadable from the Google Code Project Hosting.
it is also possible to use the SVN version to get the actual code:


$ svn checkout http://cougarxml.googlecode.com/svn/trunk/ cougarxml

External links

The source of this article is wikipedia, the free encyclopedia.  The text of this article is licensed under the GFDL.
 
x
OK