Code Monkey home page Code Monkey logo

saxy's People

Contributors

jbielick avatar szajbus avatar teamon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

saxy's Issues

IO-like objects handled gracefully

I noticed in writing a small sample script to try Saxy out that ARGF wasn't handled. Threw an error about trying to get the class name of the object. ARGF is IO-like, but not actually an ancestor of IO. Seems like Nokogiri gracefully duck-types this IO object in either parse or parse_io.

Could https://github.com/monterail/saxy/blob/master/lib/saxy/parser.rb#L71 check for an IO-like interface instead of class ancestry?

I'd be more than happy to supply a PR, just let me know if you're interested.

0.5.x Branch and release

Greetings, @szajbus

We recently encountered a case in which we needed to constrain the element matches to those within a parent element.

We implemented this functionality in this commit and will use our fork to solve the problem in our application. We had to write this feature against 0.5.2 because we're still on 0.5.2—some later releases like 0.6 and 0.7 had breaking API changes that we are unable to upgrade to.

I'm wondering how you feel about the functionality implemented before I try to pull request it against this repo. If you were interested, I would request that we create a 0.5.x branch, implement the feature, tag a 0.5.3 release, and publish it. I could then port the feature to the 0.7.0 tip.

Ampersands are being stripped

Given the element

<products>
    <product>
      <name>This &amp; That</name>

The resulting parsed string for name reads 'This&That' without the pre-existing spacing.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.