[jdom-interest] Parsing only root element
Jason Hunter
jhunter at acm.org
Fri Nov 15 12:46:12 PST 2002
There's the org.jdom.contrib.input.scanner package (see the jdom-contrib
CVS module) which lets you built just part of a document. But if all
you want is the root, you'd best use SAX or a pull parser like Bob
recommends.
-jh-
bob mcwhirter wrote:
>
> Maybe use an XML Pull Parser (I have no experience) or magical SAX
> handlers? I don't think JDOM can help you. JDOM (and most of the
> other models too) typically are an all-or-nothing type of thing.
>
> -bob
>
> On Mon, 11 Nov 2002 daves.subscriptions at SAFe-mail.net wrote:
>
> > How can I parse only the root element of a document? I want to save the time and space of parsing the entire document since I am only interested in the attributes and namespace of the root element.
> >
> > Thanks,
> > -- Dave
> > _______________________________________________
> > To control your jdom-interest membership:
> > http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com
> >
>
> --
> Bob McWhirter bob at werken.com
> The Werken Company http://werken.com/
>
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com
More information about the jdom-interest
mailing list