[
Lists Home |
Date Index |
Thread Index
]
I fell in love with XmlReader so I implemented it in Java (while fixing all
the quirks that I thought needed fixing). I didn't get it to be 100% XML
compliant so haven't made any attempt to release it yet but it looks like I
won't need to since there are other people working on the same thing now.
http://rainier.extreme.indiana.edu/soap/xpp/
http://www.thaiopensource.com/pullax/
Jason
----- Original Message -----
From: "Sterin, Ilya" <Isterin@ciber.com>
To: "'Dare Obasanjo'" <kpako@yahoo.com>; "'Jason Diamond'"
<jason@injektilo.org>; <xml-dev@lists.xml.org>
Sent: Friday, January 25, 2002 7:09 PM
Subject: RE: [xml-dev] Push and Pull?
> I can see something, maybe not as completely event driven, but partly is
> anyways in theory. It just gives you the control of the actual loop,
> while setting attributes. That's a great implementation actually. I'll
> have to look into this a little deeper. Has any of this been
> implemented open source?
>
> Ilya
>
> > -----Original Message-----
> > From: Dare Obasanjo [mailto:kpako@yahoo.com]
> > Sent: Sunday, November 25, 2001 6:56 PM
> > To: Sterin, Ilya; 'Jason Diamond'; xml-dev@lists.xml.org
> > Subject: Re: [xml-dev] Push and Pull?
> >
> >
> > See for yourself :
> >
> >
> > XmlTextReader reader = new
> > XmlTextReader(Server.MapPath("myfile.xml"));
> > while (reader.Read()) {
> > if (reader.NodeType == XmlNodeType.Element) {
> > Response.Write("Found an Element!<br />");
> > if (reader.HasAttributes()) {
> > while (reader.MoveToNextAttribute()) {
> > Response.Write(
> > " Found an Attribute!<br />");
> > }
> > }
> > }
> > }
> > // Make sure you close the stream to prevent file locking
> > reader.Close();
> >
> > Again, excerpt from
> > http://www.fawcette.com/xmlmag/2001_11/magazine/departments/tips/
> >
> > --
> > THINGS TO DO IF I BECOME AN EVIL OVERLORD #118
> > If I have equipment which performs an important function, it
> > will not be activated by a lever that someone could trigger
> > by accidentally falling on when fatally wounded.
> > ----- Original Message -----
> > From: "Sterin, Ilya" <Isterin@ciber.com>
> > To: "'Jason Diamond'" <jason@injektilo.org>; <xml-dev@lists.xml.org>
> > Sent: Friday, January 25, 2002 6:42 PM
> > Subject: RE: [xml-dev] Push and Pull?
> >
> >
> > > I'm not familiar with XmlReader, but just a quick question,
> > before I
> > > look at the docs. What is the benefit of stream-based
> > without event
> > > handling?
> > >
> > > Ilya
> > >
> > > > -----Original Message-----
> > > > From: Jason Diamond [mailto:jason@injektilo.org]
> > > > Sent: Friday, January 25, 2002 3:22 PM
> > > > To: xml-dev@lists.xml.org
> > > > Subject: Re: [xml-dev] Push and Pull?
> > > >
> > > >
> > > > > I'd describe the main difference as "event-driven" vs.
> > > > "tree-based".
> > > > > Event-driven processing models can have a "push" interface
> > > > (like SAX,
> > > > > where the parser calls the
> > > > > application) or a "pull" interface (where the application calls
> > > > > the parser).
> > > >
> > > > As an alternative to "event-driven", I use the term
> > "stream-based"
> > > > (as opposed to "tree-based".) Both SAX and .NET's XmlReader are
> > > > "stream-based" but only SAX is "event-driven".
> > > >
> > > > Jason
> > > >
> > > >
> > > >
> > > > -----------------------------------------------------------------
> > > > The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
> > > > initiative of OASIS
> > > <http://www.oasis-open.org>
> > >
> > > The list archives are at http://lists.xml.org/archives/xml-dev/
> > >
> > > To subscribe or unsubscribe from this list use the subscription
> > > manager: <http://lists.xml.org/ob/adm.pl>
> > >
> > > -----------------------------------------------------------------
> > > The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
> > > initiative of OASIS <http://www.oasis-open.org>
> > >
> > > The list archives are at http://lists.xml.org/archives/xml-dev/
> > >
> > > To subscribe or unsubscribe from this list use the subscription
> > > manager: <http://lists.xml.org/ob/adm.pl>
> >
> >
> > _________________________________________________________
> > Do You Yahoo!?
> > Get your free @yahoo.com address at http://mail.yahoo.com
> >
>
> -----------------------------------------------------------------
> The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
> initiative of OASIS <http://www.oasis-open.org>
>
> The list archives are at http://lists.xml.org/archives/xml-dev/
>
> To subscribe or unsubscribe from this list use the subscription
> manager: <http://lists.xml.org/ob/adm.pl>
>
|