[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Push and Pull?


xmltextreader server.mappath
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(
                  "&nbsp;&nbsp;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@c...>
To: "'Jason Diamond'" <jason@i...>; <xml-dev@l...>
Sent: Friday, January 25, 2002 6:42 PM
Subject: RE:  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@i...]
> > Sent: Friday, January 25, 2002 3:22 PM
> > To: xml-dev@l...
> > Subject: Re:  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


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.