# Parsing XML file

**URL:** <https://www.ruby-forum.com/t/parsing-xml-file/121278>\
**Category:** Ruby\
**Created:** [November 26, 2007, 12:36pm UTC](https://www.ruby-forum.com/t/parsing-xml-file/121278 "2007-11-26T12:36:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![martin\_mercy2001](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/d2c977/32.png) [@martin\_mercy2001](https://www.ruby-forum.com/u/martin_mercy2001)\
**Post date:** [November 26, 2007, 12:36pm UTC](https://www.ruby-forum.com/t/parsing-xml-file/121278/1 "2007-11-26T12:36:54Z")

</div>

Hi friends,

I have created a Buffer class with read, write and print methods. Now i  
need to implement this class in my parser class. could any one help me  
to do methods

def tag  
end

def tag\_end

end

def next!

end

def next\_token

end

Please help me with your suggesstions and code

thanks in advance

---

<div class="post-metadata">

**Author:** ![martin\_mercy2001](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/d2c977/32.png) [@martin\_mercy2001](https://www.ruby-forum.com/u/martin_mercy2001)\
**Post date:** [November 26, 2007, 3:33pm UTC](https://www.ruby-forum.com/t/parsing-xml-file/121278/2 "2007-11-26T15:33:48Z")

</div>

On Nov 26, 4:36 am, Martin D. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi friends,
> 
> I have created a Buffer class with read, write and print methods. Now i  
> need to implement this class in my parser class. could any one help me  
> to do methods

[http://www.slash7.com/pages](http://www.slash7.com/pages)

---

<div class="post-metadata">

**Author:** ![martin\_mercy2001](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/d2c977/32.png) [@martin\_mercy2001](https://www.ruby-forum.com/u/martin_mercy2001)\
**Post date:** [November 27, 2007, 2:41pm UTC](https://www.ruby-forum.com/t/parsing-xml-file/121278/3 "2007-11-27T14:41:57Z")

</div>

On Nov 26, 8:29 am, Phrogz [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> On Nov 26, 4:36 am, Martin D. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > Hi friends,
> 
> > I have created a Buffer class with read, write and print methods. Now i  
> > need to implement this class in my parser class. could any one help me  
> > to do methods
> 
> [http://www.slash7.com/pages](http://www.slash7.com/pages)

Heh, yeah. But I can sympathize, because I also wish that other people  
would randomly write me XML lexers. And give me lots of money. And  
sandwhiches. That would be nice.

Regards,  
Jordan

---

<div class="post-metadata">

**Author:** ![martin\_mercy2001](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/d2c977/32.png) [@martin\_mercy2001](https://www.ruby-forum.com/u/martin_mercy2001)\
**Post date:** [November 28, 2007, 7:33am UTC](https://www.ruby-forum.com/t/parsing-xml-file/121278/4 "2007-11-28T07:33:38Z")

</div>

Probably so, but just in case maybe he should start with:  
[http://www.xml.com/pub/a/2005/11/09/rexml-processing-xml-in-ruby.html](http://www.xml.com/pub/a/2005/11/09/rexml-processing-xml-in-ruby.html)

and that’s all I’m gonna write.
