OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] Appending XML to File

[ Lists Home | Date Index | Thread Index ]

* david.lyon@computergrid.net <david.lyon@computergrid.net> [2005-01-18 05:58]:
> Hi Alan,
> 
> > I was wondering if anyone had used XML in a logging context.
> 
> To answer the question, I believe that you will find a
> good way to manage the data is to store it into a SQL
> database in a memo field, along with a datetime entry
> stamp and a unique row id.
> 
> This will take care of:
> 
>  - concurrency issues, if you need it to work from
>    multiple machines.

>  - programming time, design/code/debugging of what
>    is a deceptively simple task (aka all I want is a
>    simple system that just...)

>  - performance. A free db like mysql might be good
>    for a small budget. Consider other products if you
>    have more to spend.

>  - maintenance and querying. Very easy with sql and
>    you get a good choice of languages.

    You are addressing an issue that I'm not to terribly concerned
    about, yet, but an interesting one.

    I'll go the external entity route suggested by Michael Kay, and
    I'll processing my log file using an XML parser, but what
    happends if I get to the end of the file and the entry has been
    truncated because the process terminated in mid-write?

    Are there parsers that can handle that gracefully giving me an
    API that will give me an option to recover?

    Again, I'm not terribly concerned, consider this a general
    question about dealing with a scratch and dent XML file.

--
Alan Gutierrez - alan@engrm.com




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS