Re: Grouping of elements?



Hello all,

One of my concern is: If I parse the XML into DOM, will attribute or
new element using more memory at runtime?


On 9 17 , 8 12 , Joe Kesselman <keshlam-nos...@xxxxxxxxxxx> wrote:
As with other data structures, this depends on how you're going to use
the data now and in the future. If you will eventually be making "score"
more complicated, having it be a separate element may make sense. If min
and max score are really just part of the report, the extra level of
hierarchy may not make sense.

Why do you want the <score> element? If you can't explain that (to
yourself), you probably don't want it.

--
() ASCII Ribbon Campaign | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry


.



Relevant Pages

  • Re: Java with xml
    ... There are three main XML parsing techniques: ... - Document Object Model (DOM), ... Simple API for XML (SAX), ... built in memory. ...
    (comp.lang.java.programmer)
  • Performance degradation in SelectNodes
    ... App uses XML DOM as cache, and it is not large, probaly ~10K. ... That CreateAttribute call is very slow, maybe because of memory ...
    (microsoft.public.dotnet.xml)
  • Re: Parsing HTML
    ... Well, XHTML is XML, so you'd really be loading XML into an XMLDocument, but ... could just load it into an XMLDocument object and use the ... XML DOM to parse from there. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: XML ID ...
    ... with anyway (so the most expensive part of enumerating the elements is ... amounts of data in memory all at once without significant problems. ...  After all, at _some_ point, to change an XML ... But IMHO DOM is a much more convenient way to do it, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: XML component
    ... no-one in their right mind will 'hand-parse' XML ... you automatically during the parse phase. ... but is DOM the one with the reader that fires events ... tailored to each different type of XML doc I need to handle? ...
    (comp.lang.basic.visual.misc)

Loading