From: Julian Graham <joolean-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: guile-user-mXXj517/zsQ@public.gmane.org,
ssax-sxml-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: ANN: SDOM project development release 0.4
Date: Sat, 31 Dec 2005 11:53:00 -0500 [thread overview]
Message-ID: <2bc5f8210512310853g3171fd83oceb142f16653b947@mail.gmail.com> (raw)
In-Reply-To: <87lky1bd15.fsf-0S17iFHR5lf2/9iHc7UuXF6hYfS7NtTn@public.gmane.org>
On 12/31/05, Neil Jerram <neil-0S17iFHR5lf2/9iHc7UuXF6hYfS7NtTn@public.gmane.org> wrote:
> I'm afraid that doesn't help me much ... unless there are JDOM
> applications that I could refer to as examples?
I think this is turning into a defense of the DOM spec itself, which I
think would answer most of your questions. When it comes to JDOM, I'd
say that you'd use it any place you wanted to easily manipulate an XML
document in Java as a tree of nodes instead of as a stream of XML
tokens -- obviously, web applications are a major market for this, but
a trivial non-web application might be... parsing and querying an XML
configuration file.
> But isn't everything event-driven? As in, execute so-and-so script on
> so-and-so objects when I click on this link? And in that case, don't
> you need something that amounts to a web browser (or at least, an
> HTML/XML page renderer) to exercise the DOM?
Yes, but the DOM spec allows you to embed event handlers in the
document tree that respond in a cascading fashion to changes in the
document that may or may not be triggered by the user of the embedding
application -- for example, you might have an event handler that sorts
the nodes in a tree by attribute value whenever it's notified by the
DOM that a new node has been added to the document. You could
certainly implement this at the level of the embedding application,
but I think it's quite efficient to have the DOM handle such flows of
events for you.
Regards,
Julian
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id\x16865&op=click
next prev parent reply other threads:[~2005-12-31 16:53 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-04 19:12 ANN: SDOM project development release 0.4 Julian Graham
[not found] ` <2bc5f8210512041112k5bf277e9vb9ebba673c14c9e8-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2005-12-28 15:40 ` Neil Jerram
[not found] ` <874q4tmdq5.fsf-0S17iFHR5lf2/9iHc7UuXF6hYfS7NtTn@public.gmane.org>
2005-12-29 15:24 ` Julian Graham
[not found] ` <2bc5f8210512290724i505b05e3lae7b3eb75653a4d4-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2005-12-29 16:08 ` klaus schilling
2005-12-30 20:46 ` Julian Graham
2005-12-31 13:40 ` Neil Jerram
[not found] ` <87lky1bd15.fsf-0S17iFHR5lf2/9iHc7UuXF6hYfS7NtTn@public.gmane.org>
2005-12-31 16:53 ` Julian Graham [this message]
2006-01-09 22:00 ` Neil Jerram
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2bc5f8210512310853g3171fd83oceb142f16653b947@mail.gmail.com \
--to=joolean-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=guile-user-mXXj517/zsQ@public.gmane.org \
--cc=ssax-sxml-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).