SAX/Python : read an xml from the end to the top



I currently have an xml input file containing lots of data. My objectiv
is to write a script that reports in another xml file only the data I
am interested in. Doing this is really easy using SAX.

The input file is continuously updated. However, the other xml file
should be updated only on request.

Everytime we run the script, we track the new elements in the input
file and report them in the output file.

My idea was to :
_ detect in the output file the last event reported
_ read the input file from the end
_ report all the new events ( since the last time the script was run).



Question : IS it possible to read an XML file and process it from the
end to the beginning, using SAX????

.



Relevant Pages

  • Re: Is it possible to load such XML file using SQLXML BulkLoad?
    ... 300MB XML file: What on earth do you have in that? ... HTH means: Hope This Helps ... > Unfortunately I cannot do XSLT transformation because input file size is ... > file and simple XSLT file. ...
    (microsoft.public.sqlserver.xml)
  • Multi Site/Web Serverhosted XML Report loader
    ... I have a WAN network w/ Multi Web server hosting "Internal XML files" ... I would like to have the XML file hosted at ... reporting app and low responsibility and lag of transferring the XML ... report file to the main server. ...
    (microsoft.public.dotnet.xml)
  • Batch Printing Crystal reports from VB.Net application
    ... Each xml file ... a crystal report, and prints the report to the specified printer. ... as some printers only printed garbage. ... everyone used the same high performance printers, ...
    (microsoft.public.vb.crystal)
  • Data field
    ... I have a report project that is linked to an xml file. ... has a picture on witch data field has been inserted. ... The xml element will always have 4 records with 3 childs and one of these ...
    (microsoft.public.vb.crystal)
  • Re: GDI+ on Windows Forms
    ... elements in the report once it has been drawn, so I don't need to handle any ... Also if I invalidate the listbox, ... reprocess the XML file again to re-draw everything. ... > If you only need to draw the items as a list, ...
    (microsoft.public.dotnet.framework.windowsforms)