Erika Ehrli Cabral

Monday, March 21, 2005

System.XML Improvements in .NET 2.0

The Microsoft .NET Framework 1.0 has built-in support for XML. The following list presents the great improvements done to the XML API in the Microsoft .NET Framework 2.0 according to Mark Fussel, a Lead Program Manager at Microsoft that works on XML and Web Service technologies:
  1. Better performance: The XmlReader and XmlWriter classes are twice as fast as the V1.1 release classes. XML Schema validation is 20 percent faster and XSLT performance is three to four times faster.
  2. Editing support for the XPathDocument and XmlWriter class: The XPathEditableNavigator combined with the XmlWriter class provide editing support for the XPathDocument class.
  3. XPathDocument improved as better DOM: XPathDocument class was improved and Microsoft recommends to use XPathDocument class instead of XmlDocument class as a better XML data store.
  4. Easier XPath queries to XML documents that have namespaces.
  5. Security enhancements: System.XML 2.0 allows now Code Access Security (CAS) and the XmlReaderSettings.ProhibitDtd property prohibits Document Type Definition (DTD) parsing to avoid Denial of Service (DoS) attacks.
  6. XQuery language: A new API that allows the use of XQueries in .NET.
  7. New XmlReader and XmlWriter helper methods: New methods such as:
    • XmlReader.ReadSubTree()
    • XmlReader.ReadToDescendent(string qname)
    • XmlReader.ReadToNextSibling(string qname)
    • XmlReader.ReadAsObject (System.Type type)
    • XmlWriter.WriteNode(XPathNavigator navigator, bool defattr)
    • XmlWriter.WriteFromObject(object value)

  8. Universal type support and conversion: The XmlReader, XmlWriter, and XPathNavigator classes now support CLR-XML type validation and conversion without using the XmlConvertion and XmlValidatingReader classes.
  9. Better compliance to the XML 1.0 Specification: The Create() methods for the XmlReader and XmlWriter classes enforce DTD support as well as conformance issues such as validation of element and attribute names.
  10. Static creation methods on XmlReader and XmlWriter. The use of static Create() methods provide easier configuration and enhances specialization because the instance type can be controlled.

      If you are interested for more in-depth information of System.XML improvements in .NET 2.0, I strongly recommend you to read the article: What's New in System.Xml for Visual Studio 2005 and the .NET Framework 2.0 Release.


      • At 1:11 AM, Anonymous Anonymous said…

        Great work!
        [url=]My homepage[/url] | [url=]Cool site[/url]

      • At 1:11 AM, Anonymous Anonymous said…

        Good design!
        My homepage | Please visit

      • At 1:11 AM, Anonymous Anonymous said…

        Thank you! |

      • At 4:53 AM, Anonymous Anonymous said…

        Search engines try it


      • At 10:55 PM, Anonymous Anonymous said…

        Latest news. Viagra, cialis


      • At 8:03 AM, Anonymous Anonymous said…

        DOn't you know what else can help ? Because I do not know to whom address.
        I was prescribed Carisoprdol which I bought here. But maybe I bought something wrong?
        or here phentermine


      Post a Comment

      << Home