From: Salim Reza Date: 2010-12-17T03:26:51+09:00 Subject: Re: xml parsing in ruby Abinoam Jr. wrote in post #968849: > Salim, > > I have "finished" the script. > It's getting uglier at each interaction. (needs refactoring) > But, it seems to work well. > > I renamed to xml2uppall.rb. > There's 2 xml. The second is a modified version just for put the > script to proof. > Each cpp file corresponds to an xml file. > > Tell me if it works for you. > > Tell me if you don't understand any part of the code. > > Abinoam Jr. Hi Abinoam, It works as intended. Thanks for the help. I have understood most of the code. Except: ARGV[0].nil? ? "xmlfile.xml" : ARGV[0] and Regexp.new(/\w*_(\w*)/). I am trying to take a look about these from tutorials. Thanks once again. -- Posted via http://www.ruby-forum.com/.