|
Copyright (c) 2001-2002 by Jim Menard <jimm@io.com>
Released under the same license as Ruby. See www.ruby-lang.org/en/LICENSE.txt.
Using the tree parser, this script prints an XML document with all tags under the root tag in reverse order. We achieve this by adding a method to the NQXML::Document class that traverses the node tree depth-first but reversed.
usage:
reverseTags.rb <file.xml>
Required files |
Classes and Modules |