in reply to Re: XML log file to readable format conversion
in thread XML log file to readable format conversion

I am getting following error :

Only Comments, PIs and whitespace allowed at end of document Ln: 15, Col: 1

  • Comment on Re^2: XML log file to readable format conversion

Replies are listed 'Best First'.
Re^3: XML log file to readable format conversion
by choroba (Cardinal) on Jan 15, 2014 at 16:05 UTC
    Your input file is not a well-formed XML. It probably contains some additional information after the closing root tag.
    لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

      As it is a log file, it most likely doesn't contain a single root tag (which is something the committeee decided to require). Instead of the file, you thus have to parse an XML document like this:

      <!DOCTYPE doc [<!ENTITY real_doc SYSTEM "$the_file_name">]><doc>&real_ +doc;</doc>

      Jenda
      Enoch was right!
      Enjoy the last years of Rome.

Re^3: XML log file to readable format conversion
by toolic (Bishop) on Jan 15, 2014 at 16:05 UTC
    I had a typo in my untested code example. Refer to my update.