skip to main | skip to sidebar

drand48

"so" random it needs a mantissa 48 bits long

Monday, August 4, 2008

Parse XML with ruby

Use Hpricot:

# @my_xml contains my xml in a String object

doc = Hpricot::XML(@my_xml)

Now you can do regular Hpricot to extract the xml content. E.g.(doc/"//entry/title/text()")
Posted by Tom at 12:03 AM
Labels: xml hpricot

0 comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Sites

  • tnturl.com
  • blog.tnturl.com
  • suxnuts.com
  • gamenewshq.com

Blog Archive

  • ►  2009 (1)
    • ►  August (1)
      • emacs commands to remember
  • ▼  2008 (20)
    • ▼  August (2)
      • Fedora + Ruby + Rails
      • Parse XML with ruby
    • ►  July (1)
      • Misc Handy Linux Commands
    • ►  May (12)
      • HO-MADE PIES - YUM!
      • Ruby + Rails + Debian
      • run snmpd with perl or c modules
      • haml and emacs
      • Ruby and Emacs!!
      • Extending Net-SNMP with Perl
      • 5 Rails Tips
      • associate_with_list
      • haml + form.html.haml + make_resourceful
      • new.html.haml and edit.html.haml form.html.haml
      • haml
      • change_column
    • ►  April (5)
      • snmp manage load
      • snmp manage proc
      • snmp manage disk
      • snmp remote gui browser
      • snmp config setup for snmpd