XmlTextReader Overview #24

Overview of .Net XmlReader and XmlWriter Object

XmlReader

Can read XML data both from file or stream. Readonly access. Also, provides information about the XML data. XmlTextReader class is derived from XmlReader. It provides faster access to XML data though it does not support validating DTD or XML schema. XmlValidatingReader class supports both DTD and schema validation. Attributes of XmlTextWriter class areAttributeCount,Depth,HasAttributes,HasValue,IsEmptyElement, Item,Value. Some methods are: IsStartElement, MoveToElement, MoveToFirstAttribute, MoveToNextAttribute, Read, ReadAttributeValue, ReadString, ReadStartElement, ReadEndElement, Skip

Example
   dim reader as New XmlTextReader("")   while reader.Read() select case reader.Nodetype     case XmlNodeType.Element            Console.Write("")   if reader.HasAttributes then   while reader.movetonextAttribute()   Console.Write(reader.value)   End While   end if  case XmlNodeType.Text Console.Write(reader.value)       case XmlNodeType.EndElement   Console.WriteLine("")end selectend while

From: http://sitestree.com/?p=4748
Categories:24
Tags:
Post Data:2011-10-11 17:18:58

    Shop Online: <a href='https://www.ShopForSoul.com/' target='new' rel="noopener">https://www.ShopForSoul.com/</a>
    (Big Data, Cloud, Security, Machine Learning): Courses: <a href='http://Training.SitesTree.com' target='new' rel="noopener"> http://Training.SitesTree.com</a> 
    In Bengali: <a href='http://Bangla.SaLearningSchool.com' target='new' rel="noopener">http://Bangla.SaLearningSchool.com</a>
    <a href='http://SitesTree.com' target='new' rel="noopener">http://SitesTree.com</a>
    8112223 Canada Inc./JustEtc: <a href='http://JustEtc.net' target='new' rel="noopener">http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning) </a>
    Shop Online: <a href='https://www.ShopForSoul.com'> https://www.ShopForSoul.com/</a>
    Medium: <a href='https://medium.com/@SayedAhmedCanada' target='new' rel="noopener"> https://medium.com/@SayedAhmedCanada </a>