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
#4732
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  
REXML is a pure-Ruby XML processor conforming to the XML 1.0 standard.

It is a nonvalidating processor, passing all of the OASIS nonvalidating conformance tests.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#4733
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  
REXML parser has the following advantages over other available parsers


1. It is written 100 percent in Ruby.

2. It can be used for both SAX and DOM parsing.

3. It is lightweight ie less than 2000 lines of code.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#4734
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  
3. Methods and classes are really easy-to-understand.

4.SAX2-based API and Full XPath support.

5. REXML parser is shipped with Ruby installation and no separate installation is required
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#4735
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  
We first have to parse our XML data in tree fashion.

We begin by requiring the rexml/document library; often we do an include REXML to import into the top-level namespace for convenience
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#4736
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-like Parsing

To process a data, file in a stream-oriented way we will have to define a listener class whose methods will be the target of callbacks from the parser
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#4737
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  
An alternative way to view XML is XPath.

This is a kind of pseudo-language that describes how to locate specific elements and attributes in an XML document, treating that document as a logical ordered tree.
 
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