* XML/Ada - reading an attribute
@ 2008-09-11 12:35 Thomas Locke
2008-09-11 14:10 ` Georg Bauhaus
0 siblings, 1 reply; 2+ messages in thread
From: Thomas Locke @ 2008-09-11 12:35 UTC (permalink / raw)
Hey group,
I'm currently doing this in order to read the seconds attribute of the
simulation_length element: http://pastebin.ca/1199908
My current solution is working quite well and it gets the job done, I'm
just wondering if there's a "better" way. I've only just started working
with XML/Ada, so it's pretty safe to say that I'm not very good at it
yet. :o)
Regards,
/Thomas
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: XML/Ada - reading an attribute
2008-09-11 12:35 XML/Ada - reading an attribute Thomas Locke
@ 2008-09-11 14:10 ` Georg Bauhaus
0 siblings, 0 replies; 2+ messages in thread
From: Georg Bauhaus @ 2008-09-11 14:10 UTC (permalink / raw)
Thomas Locke wrote:
> Hey group,
>
> I'm currently doing this in order to read the seconds attribute of the
> simulation_length element: http://pastebin.ca/1199908
>
> My current solution is working quite well and it gets the job done, I'm
> just wondering if there's a "better" way.
http://www.mckae.com/xia.html might make access more
comfortable.
At the opposite end, not necessarily a better way, but
have you considered a SAX style parser with callbacks
triggered by certain nodes?
I have found that useful when processing lots of
similar subtrees of the XML document. No need for a
DOM then.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-09-11 14:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-11 12:35 XML/Ada - reading an attribute Thomas Locke
2008-09-11 14:10 ` Georg Bauhaus
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox