Forum Moderators: open

Message Too Old, No Replies

Parse Not Well Formed XML

         

peterlck

7:50 am on Apr 19, 2005 (gmt 0)



Hi,
I am new to Perl as well as this forum.
I am wondering if someone can guide me on what Perl modules to do to parse xml information <datetime> in a non well-formed xml file or txt file.

Content of file are below.

2005-Apr-15 04:37:00 com.abc.source AUDIT [Thread-6] -
<InboxFilename>/test/abc.txt</InboxFilename>
<datetime>1113539820478</datetime>

Thanks in advance
Peter

brucec

11:53 am on Apr 20, 2005 (gmt 0)

10+ Year Member



Your XML looks well formed to me. Is there a date function in Perl which you can use to convert the date before it gets read in by the XML?