in reply to How can I extract text from XML document and after that put the extracted text to original place?
You might want to look at the handy dandy XML::Simple module. Look at the XMLin() and XMLout() methods. XMLin() allows you to read in an XML document. Loop through the data structure that is returned from XMLin(), run your spell check on the data within in, then write the final results back to the XML document via XMLout().
As for exporting the tags and the text between the tags to two separate files and then putting them back together, just say 'NO'. On a large XML file, this would be extremely slow and you'd be doing much more work than necessary.
C:\>shutdown -s
>> Could not shut down computer:
>> Microsoft is logged in remotely.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: XML::Simple for looping through an XML structure
by mirod (Canon) on Jan 29, 2003 at 14:56 UTC |