Tuesday, 15 January 2013

Are there any XML Parsers for Ruby that fully support XPath 2.0? -



Are there any XML Parsers for Ruby that fully support XPath 2.0? -

i need see if node exists within particular xml document. if node not exist, utilize value. xpath 1.0 involves craziness using concat. xpath 2.0, can work with:

if (boolean(path-to-preferred-node)) path-to-preferred-node else default-to-other-node

we need utilize xpath 2.0 rules out nokogiri.

any help appreciated.

ruby-on-rails ruby xpath-2.0

No comments:

Post a Comment