Softpedia
 


SCRIPTS CATEGORIES:



NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • LitePublisher 5.53
  • Piwigo 2.5.0
  • InK 1.0
  • jQuery RS Carousel 0.11.1
  • WP Catalogue 1.4
  • javascript-video-scrubb...
  • ll.filtrera.js
  • CSS Browser Selector + ...
  • WordPress Nginx 1.6.13
  • Timer alert
  • Home > Scripts > Development Tools

    xmlObjectifier

    Download button


    Downloads: 623  Tell us about an update
    User Rating:
    Rated by:
    Good (3.1/5)
    19 user(s)
    Developer:

    Website:

    License / Price:

    Platforms:

    Databases:

    Language:

    Last Updated:

    Category:
    Sam Tsvilik | More scripts
    www.terracoder.com
    Other Free / Open Source License 

    Windows / Linux / Mac OS / BSD / Solaris
    N/A
    JavaScript
    April 25th, 2008, 07:45 GMT
    C: \ Development Tools

     Read user reviews (0)  Refer to a friend  Subscribe

    xmlObjectifier description

    xmlObjectifier a simple way to convert XML to a JSON object.

    xmlObjectifier a simple way to convert XML to a JSON object.

    In just one method call your XML document is converted into a JavaScript Object and is ready for simple data browsing using a familiar dot notation. xmlObjectifier is written in client-side JavaScript in an object oriented manner to reduce processing overhead and to provide optimal compatibility across various browsers.

    xmlObjectifier was written to simplify a task of working with XML data provided by web services or just static XML files. Complexity of working with DOM tree impacts code flexibility and increases the size of your script.

    It works by taking a DOM Document object as an input parameter, scans through it reading all nodes, values and attributes and dynamically assembles a JSON object. The way JSON object is constructed is that all XML nodes are automatically converted to Arrays baring the name of the XML node they represent, and XML attributes are converted to fields of each array element they belong to.

    The only possible exception to the name being exactly replicated is when node/attribute names contain dash ("-") in it's name, in that case all dashes are converted to underscores ("_") due to JavaScript compatibility issues (objects can not contain dashes in their names).



    TAGS:

    XML to a JSON converter | developer tool | XML tool | XML | tool | javascript

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM