From anurag08priyam at gmail.com Tue May 18 15:36:48 2010 From: anurag08priyam at gmail.com (Anurag Priyam) Date: Wed, 19 May 2010 01:06:48 +0530 Subject: [libxml-devel] Ruby Libxml Tutorial - Reader API Message-ID: Hello all, I have written this tutorial [1] on using libxml's cursor API( XML::Reader ). I was exploring it for my Google Summer of Code project[2], wherein I need to write a wrapper over ruby-libxml to parse NeXML[3] files. Since ruby-libxml currently lacks any tutorial, I was hoping that my tutorial could be used or adapted to form a better version. I think it would help beginners to have a tutorial section on the main site. [1] http://anurag-priyam.blogspot.com/2010/05/ruby-libxml-tutorial-reader-api.html [2] http://anurag-priyam.blogspot.com/2010/05/nexml-io-and-rdf-triples-api-for.html [3] http://nexml.org -- Anurag Priyam, 2nd Year Undergraduate, Department of Mechanical Engineering, IIT Kharagpur. +91-9775550642 -------------- next part -------------- An HTML attachment was scrubbed... URL: From dreamcat4 at gmail.com Tue May 18 16:24:56 2010 From: dreamcat4 at gmail.com (dreamcat four) Date: Tue, 18 May 2010 21:24:56 +0100 Subject: [libxml-devel] Ruby Libxml Tutorial - Reader API In-Reply-To: References: Message-ID: Hmm, You could have used the libxmlr wrapper. I am assuming you just didnt find it. github.com/dreamcat4/libxml4r It includes links, help and examples. Its all on the above homepage. On Tue, May 18, 2010 at 8:36 PM, Anurag Priyam wrote: > Hello all, > > I have written this tutorial [1] on using libxml's cursor API( XML::Reader > ). I was exploring it for my Google Summer of Code project[2], wherein I > need to write a wrapper over ruby-libxml to parse NeXML[3] files. Since > ruby-libxml? currently lacks any tutorial, I was hoping that my tutorial > could be used or adapted to form a better version. I think it would help > beginners to have a tutorial section on the main site. > > > [1] > http://anurag-priyam.blogspot.com/2010/05/ruby-libxml-tutorial-reader-api.html > [2] > http://anurag-priyam.blogspot.com/2010/05/nexml-io-and-rdf-triples-api-for.html > [3] http://nexml.org > > -- > Anurag Priyam, > 2nd Year Undergraduate, > Department of Mechanical Engineering, > IIT Kharagpur. > +91-9775550642 > > _______________________________________________ > libxml-devel mailing list > libxml-devel at rubyforge.org > http://rubyforge.org/mailman/listinfo/libxml-devel > From transfire at gmail.com Tue May 18 16:43:41 2010 From: transfire at gmail.com (Trans) Date: Tue, 18 May 2010 13:43:41 -0700 (PDT) Subject: [libxml-devel] Ruby Libxml Tutorial - Reader API In-Reply-To: References: Message-ID: <9679dee7-3d6f-4633-b596-2cccbcc7d0ed@z33g2000vbb.googlegroups.com> On May 18, 3:36?pm, Anurag Priyam wrote: > Hello all, > > I have written this tutorial [1] on using libxml's cursor API( XML::Reader > ). I was exploring it for my Google Summer of Code project[2], wherein I > need to write a wrapper over ruby-libxml to parse NeXML[3] files. Since > ruby-libxml ?currently lacks any tutorial, I was hoping that my tutorial > could be used or adapted to form a better version. I think it would help > beginners to have a tutorial section on the main site. Even if libxmlr might have made things easier, I thinks it's great that you have done this. It's always helpful when developer tutorialize their own work. Thanks, ~trans From anurag08priyam at gmail.com Wed May 19 16:44:26 2010 From: anurag08priyam at gmail.com (Anurag Priyam) Date: Thu, 20 May 2010 02:14:26 +0530 Subject: [libxml-devel] Ruby Libxml Code Example - Writing XML Documents Message-ID: Composing an XML document with ruby libxml is quite intuitive. Does not actually need a tutorial; API docs are sufficient. Still I have provided a code example[1] on writing creating XML with ruby libxml. I hope that people will find it useful. [1] http://anurag-priyam.blogspot.com/2010/05/ruby-libxml-tutorial-writing-xml.html -- Anurag Priyam, 2nd Year Undergraduate, Department of Mechanical Engineering, IIT Kharagpur. +91-9775550642 -------------- next part -------------- An HTML attachment was scrubbed... URL: From anurag08priyam at gmail.com Wed May 19 17:09:08 2010 From: anurag08priyam at gmail.com (Anurag Priyam) Date: Thu, 20 May 2010 02:39:08 +0530 Subject: [libxml-devel] Ruby Libxml Tutorial - Reader API In-Reply-To: References: Message-ID: Hi Dreamcat, I had come across your project, and it indeed is good. I have to add NeXML parsing and serializing support to BioRuby. Libxml is an existing BioRuby dependency. Using your wrapper would mean adding more dependency to it, which I do not want. Naturally, I did not give libxml4r a thorough look. Before, I had worked with the Nokogiri library. That time i did not even understand SAX or StAX; just DOM. I would dare say Nokogiri's documentation is better compared to libxml and they have nice tutorials. It helped me do my job, within a few minutes of encounter with the library. What I am trying to emphasize is that having tutorials on the main site helps, atleast for beginners. That is why I wrote this and forwarded the idea of either linking to my post from the main site or maybe adapting it to form better tutorials and putting it on the site :). On Wed, May 19, 2010 at 1:54 AM, dreamcat four wrote: > Hmm, > You could have used the libxmlr wrapper. I am assuming you just didnt find > it. > > github.com/dreamcat4/libxml4r > > It includes links, help and examples. Its all on the above homepage. > > On Tue, May 18, 2010 at 8:36 PM, Anurag Priyam > wrote: > > Hello all, > > > > I have written this tutorial [1] on using libxml's cursor API( > XML::Reader > > ). I was exploring it for my Google Summer of Code project[2], wherein I > > need to write a wrapper over ruby-libxml to parse NeXML[3] files. Since > > ruby-libxml currently lacks any tutorial, I was hoping that my tutorial > > could be used or adapted to form a better version. I think it would help > > beginners to have a tutorial section on the main site. > > > > > > [1] > > > http://anurag-priyam.blogspot.com/2010/05/ruby-libxml-tutorial-reader-api.html > > [2] > > > http://anurag-priyam.blogspot.com/2010/05/nexml-io-and-rdf-triples-api-for.html > > [3] http://nexml.org > > > > -- > > Anurag Priyam, > > 2nd Year Undergraduate, > > Department of Mechanical Engineering, > > IIT Kharagpur. > > +91-9775550642 > > > > _______________________________________________ > > libxml-devel mailing list > > libxml-devel at rubyforge.org > > http://rubyforge.org/mailman/listinfo/libxml-devel > > > _______________________________________________ > libxml-devel mailing list > libxml-devel at rubyforge.org > http://rubyforge.org/mailman/listinfo/libxml-devel -- Anurag Priyam, 2nd Year Undergraduate, Department of Mechanical Engineering, IIT Kharagpur. +91-9775550642 -------------- next part -------------- An HTML attachment was scrubbed... URL: