|
 |
Recent
Articles |
Truveo Shows Video Search Upgrades AOL's Truveo video search product should present developers and other users of the platform with better analytics and greater API performance. A trio of new...
Spry, Apollo, & Remote XML Sources So this is probably a 'Duh' type post, but I was curious how Apollo and it's "open" web browser would handle remote AJAX requests. As you know or hopefully...
Cf.Objective() - Recap Of Day One Keynote - Jason - History of CF, themes for Scorpio, a little bit of each theme. New disclosures: RSS support (), . More to come in sessions over the weekend. Skipped the next session - spent time with Mark Drew going...
AJAX And Server Side Search I've blogged before (or at least think I have) about how to do client side filtering/searching of data with Spry. An example of this is the search at RIAForge. The...
Why Is XQuery Important? The advent of wireless internet access has made web design a very complicated matter. Previously, all web browsers were created equal. HTML was the only...
|
|
|
06.12.07
Dot Net Questions: Xml Reader Class
by
Adam Sturo
Xml reader and xml writer comes from namespace system.xml. These classes' help in getting data from xml documents, both of these classes are abstract base classes.
The xml reader class helps in to get xml data in stream or xml documents. This class provides fast, non-cacheable, read only access to xml data, as the name suggest it is forward only access. As I have said, this class is a abstract class and provides methods that are implemented by derived class to get access to element and attributes of xml data. There are other things to get from this class such as depth of the node of document means, xml documents, and also the number of attribute in a node.
There is no of derived class of xml reader. One is xml text reader class. This xml text reader class reads xml data. But this class doesn't help in validating the DTD or you can say schema information.
Another derived class of xml reader is xml validating reader class. This class read xml data and also supports DTD and schema validation.
The xml text reader class allows fast access to xml data but not support DTD. It is helpful when we do not require reading full document in to memory. We can initialize xml text reader object to read data from xml document and also initialize an xml text reader object to read data from a stream.
I have explained some of the beautiful methods and properties of xml text readers.
Attribute Count: This property helps to get number of attribute in current node.
Depth: To get the depth of current node.
Item: get the value of an attribute as a string.
Value: get text value of current node.
About the Author:
To know more about Sql Server Interview Questions and Xml Interview Questions visit dotnetquestion.info.
|