Results 1 to 2 of 2

Thread: Best Method to Parse XML logs in real time

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Dec 2002
    Posts
    196

    Best Method to Parse XML logs in real time

    I need to parse some XML logs from a game. The game server writes the events into the xml file in real time. I will need to parse through this file about every 2-3 seconds to check and see what new events the game server has written into the XML logs. Obviously, these logs can get pretty large. Is there a way I can parse the log, and leave some sort of marker, so that the next time I go to parse the XML file that I don't need to start from the beginning, but rather I can start from the last place I left off.

    What is the best method to do this?
    Attached Files Attached Files
    Brandon S Davids

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Given the way XML is organized that can be rather hard.

    Why can't you just trick the game server into piping its output to you? That would make checking the logs far easier.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width