1 |
Paul de Vrieze wrote: |
2 |
> On Tuesday 03 February 2004 04:37, Eric Sammer wrote: |
3 |
> |
4 |
> Just remember to use a progressive xml parsing strategy like SAX (forget |
5 |
> DOM) so at least you can do things as pause. In this case you just do |
6 |
> things as you find them in the xml file. If the file/pipe blocks you |
7 |
> have a pause, else you continue, all for free. |
8 |
|
9 |
I almost always use sax because of the memory footprint size compared to |
10 |
DOM. That said, the XML parsing would have nothing to do with pausing. |
11 |
The profile would be parsed to an object if we're loading one and as the |
12 |
user goes through the process, instance variables would be filled in in |
13 |
the GLIInstallProfile object. Once it was done, a call to serialize() |
14 |
will build and write the XML. So, they are 100% separate and one would |
15 |
never effect the other. |
16 |
-- |
17 |
Eric Sammer |
18 |
Gentoo Linux |
19 |
http://www.gentoo.org |