<div dir="ltr"><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Alright. Maybe this could actually benefit from being done in a<br>
streaming fashion (à la libxml2's reader API)? Or will it be<br>
beneficial/easier to have access to the whole DOM in memory?<br></blockquote><div><br></div><div>You are right - it could be implemented in streaming fashion.</div><div>I think the trade off is</div><div>- streaming: slower than dom, less memory than dom, possibly more complicated as you may need to store data for later.</div><div>- dom: quickest, more memory than streaming, simplest way to access citygml data.</div><div><br></div><div>For now I lean toward dom as our input data is tiled to start with so I don't expect really large files. I realize I have to revise the specs of the problem:</div><div>I'll need to parse many medium size XML files.</div><div>Dan<br></div><div> </div></div></div>