X hits on this document

383 views

0 shares

1 downloads

0 comments

105 / 142

XML and Perl

Use your favorite text editor to open fix-ead.pl. Notice how it combines the process_files subroutine of the previous example with the SAX event-driven parser to loop through a set of files in one directory, reading the files' data, setting and unsetting flags, and outputting results to a second directory. Fix the EAD files in xml-data/ead/broken and save them to xml-data/ead/fixed using this command: bin/ fix-ead.pl /lamp/xml-data/ead/broken/ /lamp/xml-data/ead/fixed/ . Use xmllint to selectively validate the newly created EAD files against the workbook's version of the EAD DTD.

97

Document info
Document views383
Page views389
Page last viewedSat Dec 03 23:31:33 UTC 2016
Pages142
Paragraphs3126
Words34660

Comments