Sign up or Sign in | Share
 
ClearMyBench
Welcome, Guest
Please Login or Register.    Lost Password?
Re:Ruby concepts part 2 (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:Ruby concepts part 2
#4726
ShriNi (User)
Software Techie (PEGA) currently on a Career Break
Platinum Boarder
Posts: 4000
graph
User Offline Click here to see the profile of this user
Gender: Female Location: Secundrabad India Birthdate: 1983-09-29
Re:Ruby concepts part 2 3 Years, 10 Months ago Karma: 0  
XML is extremely useful for keeping track of small to medium amounts of data without requiring a SQL-based backbone.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#4727
ShriNi (User)
Software Techie (PEGA) currently on a Career Break
Platinum Boarder
Posts: 4000
graph
User Offline Click here to see the profile of this user
Gender: Female Location: Secundrabad India Birthdate: 1983-09-29
Re:Ruby concepts part 2 3 Years, 10 Months ago Karma: 0  
There are two different flavors available for XML parsers


SAX-like (Stream interfaces)

Here we register callbacks for events of interest and then let the parser proceed through the document.


This is useful when we documents are large or we have memory limitations, it parses the file as it reads it from disk, and the entire file is never stored in memory
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#4728
ShriNi (User)
Software Techie (PEGA) currently on a Career Break
Platinum Boarder
Posts: 4000
graph
User Offline Click here to see the profile of this user
Gender: Female Location: Secundrabad India Birthdate: 1983-09-29
Re:Ruby concepts part 2 3 Years, 10 Months ago Karma: 0  
DOM-like (Object tree interfaces)

This is World Wide Web Consortium recommendation wherein the entire file is read into memory and stored in a hierarchical (tree-based) form to represent all the features of an XML document
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#4729
ShriNi (User)
Software Techie (PEGA) currently on a Career Break
Platinum Boarder
Posts: 4000
graph
User Offline Click here to see the profile of this user
Gender: Female Location: Secundrabad India Birthdate: 1983-09-29
Re:Ruby concepts part 2 3 Years, 10 Months ago Karma: 0  
SAX can't process information as fast as DOM can when working with large files.

On the other hand, using DOM exclusively can really kill our resources, especially if used on a lot of small files
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#4730
ShriNi (User)
Software Techie (PEGA) currently on a Career Break
Platinum Boarder
Posts: 4000
graph
User Offline Click here to see the profile of this user
Gender: Female Location: Secundrabad India Birthdate: 1983-09-29
Re:Ruby concepts part 2 3 Years, 10 Months ago Karma: 0  
SAX is read-only, while DOM allows changes to the XML file.

Since these two different APIs literally complement each other there .
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#4731
ShriNi (User)
Software Techie (PEGA) currently on a Career Break
Platinum Boarder
Posts: 4000
graph
User Offline Click here to see the profile of this user
Gender: Female Location: Secundrabad India Birthdate: 1983-09-29
Re:Ruby concepts part 2 3 Years, 10 Months ago Karma: 0  
The most common way to manipulate XML is with the REXML library.

The REXML has been part of the standard Ruby distribution since 2002.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
get the latest posts directly to your desktop
logo footer   Copyright 2009 - 2013 HotRecruiter.Com - All Rights Reserved