use XML::Parser; $p = new XML::Parser Style => 'subs'; parsefile $p 'Beginning.xml'; sub p { print "@{$p->{Context}}\n"; } sub characters { print "$_[1]"; } ========================================= Text: The Old TestamentText: Text: Para: tstmt fm Text: Source of original ASCII files unknown. Text: Para: tstmt fm Text: SGML markup by Jon Bosak, 1992-1994. Text: Para: tstmt fm Text: XML version by Jon Bosak, 1996-1998. Text: Para: tstmt fm Text: This work may be freely distributed internationally. Text: Text: Text: Text: The First Book of Moses, Called GENESIS. Text: Text: Para: tstmt book chapter v Text: In the beginning God created the heaven and the earth. Text: Text: Text: Text: |