Re: feature: expand entity ref (for nextToken())

Aleksander Slominski <[email protected]>
Newsgroups gmane.text.xml.xmlpull.devel
Message-ID <[email protected]>
"Nikhil C. Khedkar" wrote:

> Hi Alec,
>     I have a schema document with lots of references
> (ref). Do you mean that I can get the actual elements
> (the ones referenced by 'ref'). I am attaching the
> sample schema file, which I am parsing and the sample
> code also.

hi,

unfortunately not as this only works for DTD (DOCDECL)

to support walking XML tree (including finding
referenced nodes) you need to keep whole XML in memory
and that typically require document object model
(such as DOM, JDOM or my XmlPullNode).

if you wanted to do it with XML pull parser
then parser would have to keep all read elements (to resolve
backward references) and to read ahead to find
forward references - pretty much disabling any streaming ...

alek
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.