Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

geoffgarside-demolisher

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

geoffgarside-demolisher

  • 0.3.3
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

= demolisher

Works in a similar fashion to Builder but is instead used for extracting information from XML files rather than building them.

== Example

Given the simple XML example file below

Enoch Root 01234 567 8900 enoch@example.com YES Randy Waterhouse 01234 567 8901 randy@example.com NO

we can parse it with

xml = Demolisher.demolish('addressbook.xml') xml.addressbook do xml.person do puts "#{xml.firstname} #{xml.lastname}: #{xml.contact.email}" puts "this person is active" if xml.active? end end

and we should get the result of

Enoch Root: enoch@example.com this person is active Randy Waterhouse: randy@example.com

== Copyright

Copyright (c) 2009 Geoff Garside. See LICENSE for details.

FAQs

Package last updated on 11 Aug 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc