From: Derek Date: 2005-05-01T20:20:15+09:00 Subject: parsing xml documents using rexml ------=_NextPart_000_0016_01C54E91.42976650 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, I'm new to ruby. I want to use ruby to process an xml file.=20 At the moment I am using the REXML but are open to other xml parsers. In the xml file below how would I go about processing the section =
in the following way: - - when the tag is detected perform a method "copy". within the = "copy" method extract other child tags within the current = element. - when the tag is detected perform a method "mkdir". within the = "mkdir" method extract other tags within the current element. I've looked at using XPATH, and have been able to extract specific = information but have not worked out how to do it. here is a sample xml file: - This can state one or multiple applications Person from development who create this file This is a sample File group xml
//myPath/to/File.txt target directory path goes here //myPath/to/File2.txt target directory path goes here relative/Path
------=_NextPart_000_0016_01C54E91.42976650--