BizTalk Utilities CV ,   Jobs ,   Code library
 
Go to the front page to continue learning about XML or select below:

Contents

ReBlogger Contents

 
WSE
SOA
XML

 
 
Buzz index BUZZ INDEX : -net-xml-system-xml
 
Buzz index

.NET XML, System.XML

Learn about .NET System.XML and System.Web.Services here...
Tags found in the posts on this page : System.XML Search for System.XML on Wikipedia.Search for System.XML on Technorati | XmlReader Search for XmlReader on Wikipedia.Search for XmlReader on Technorati | XmlWriter Search for XmlWriter on Wikipedia.Search for XmlWriter on Technorati
Page 4 of 5

2005 May 16

151 of 206 | System.Xml 2.0: XmlReader is now IDisposabe - Another handy feature implemented in .NET 2.0 Beta2 is that XmlReader class now implements IDisposable interface and so can be closed automatically when using with "using" statement in C#: using (XmlReader r = XmlReader.Create("../../source.xml")) { while (r.Read()) Console.WriteLine(r.NodeType); } Really handy. And implemented in literally couple of lines. It`s a pity we don`t have such simple but useful stuff in .NET 1.1. ...

152 of 206 | XInclude and W3C XML Schema Will Play Nice Together in .NET Framework v2.0 - Stan Kitsis, who replaced me as the XML Schema program manager on the XML team, has a blog post about XInclude and schema validation where he writes A lot of people are excited about XInclude and want to start using it in their projects. However, there is an issue with using both XInclude and xsd validation at the same time. The issue is that XInclude adds xml:* attributes to the instance documents while xsd spec forces you to explicitly declare these attributes in your schema. Daniel Cazzulino, an XML MVP, blogged about this a few months ago: "W3C XML Schema and XInclude: impossible to use together???" To solve this problem, we are introducing a new system.xml va......

153 of 206 | XInclude and W3C XML Schema Will Play Nice Together in .NET Framework v2.0 - Stan Kitsis, who replaced me as the XML Schema program manager on the XML team, has a blog post about XInclude and schema validation where he writes A lot of people are excited about XInclude and want to start using it in their projects. However, there is an issue with using both XInclude and xsd validation at the same time. The issue is that XInclude adds xml:* attributes to the instance documents while xsd spec forces you to explicitly declare these attributes in your schema. Daniel Cazzulino, an XML MVP, blogged about this a few months ago: "W3C XML Schema and XInclude: impossible to use together" To solve this problem, we are introducing a new sy......

2005 May 12

154 of 206 | XInclude and schema validation - A lot of people are excited about XInclude and want to start using it in their projects.  However, there is an issue with using both XInclude and xsd validation at the same time.  The issue is that XInclude adds xml:* attributes to the instance documents while xsd spec forces you to explicitly declare these attributes in your schema.  Daniel Cazzulino, an XML MVP, blogged about this a few months ago: "W3C XML Schema and XInclude: impossible to use together" To solve this problem, we are introducing a new system.xml validation flag AllowXmlAttributes in VS2005.  This flag instructs the engine to allow xml:* attributes in the instance documents even if they are not defined in the schema.  Th......

2005 May 10

155 of 206 | UPDATED: Things to note about foreach and System.Xml.XPath.XPathNodeIterator - Oleg Tkachenko has a post about one of the changes I was involved in while the program manager for XML programming models in the .NET Framework. In the post foreach and XPathNodeIterator - finally together Oleg writes This one little improvement in System.Xml 2.0 Beta2 is sooo cool anyway: XPathNodeIterator class at last implements IEnumerable! Such unification with .NET iteration model means we can finally iterate over nodes in an XPath selection using standard foreach statement: XmlDocument doc = new XmlDocument(); doc.Load("orders.xml"); XPathNavigator nav = doc.CreateNavigator(); foreach (XPathNavigator node in nav.Select("/orders/order")) Console.Write......

156 of 206 | UPDATED: Things to note about foreach and System.Xml.XPath.XPathNodeIterator - Oleg Tkachenko has a post about one of the changes I was involved in while the program manager for XML programming models in the .NET Framework. In the post foreach and XPathNodeIterator - finally together Oleg writes This one little improvement in System.Xml 2.0 Beta2 is sooo cool anyway: XPathNodeIterator class at last implements IEnumerable! Such unification with .NET iteration model means we can finally iterate over nodes in an XPath selection using standard foreach statement: XmlDocument doc = new XmlDocument(); doc.Load("orders.xml"); XPathNavigator nav = doc.CreateNavigator(); foreach (XPathNavigator node in nav.Select("/orders/order")) Console.WriteLine(......

2005 May 09

157 of 206 | foreach and XPathNodeIterator - finally together - This one little improvement in System.Xml 2.0 Beta2 is sooo cool anyway: XPathNodeIterator class at last implements IEnumerable! Such unification with .NET iteration model means we can finally iterate over nodes in an XPath selection using standard foreach statement: XmlDocument doc = new XmlDocument(); doc.Load("orders.xml"); XPathNavigator nav = doc.CreateNavigator(); foreach (XPathNavigator node in nav.Select("/orders/order")) Console.WriteLine(node.Value); Compare this to what we have to write in .NET 1.X: XmlDocument doc = new XmlDocument(); doc.Load("../../source.xml"); XPathNavigator nav = doc.CreateNavigator(); XPathNodeIterator ni = nav.Select("/orders/order"); while (......

2005 May 08

158 of 206 | Security changes in .NET 2.0`s XSLT - More security changes made in XSLT in .NET 2.0 Beta2. When working with XslCompiledTransform class: document() function is disabled by default. To enable it, one has to provide XsltSettings enum value with EnableDocumentFunction field set to the XslCompiledTransform.Load() method: XslCompiledTransform xslt = new XslCompiledTransform(); XsltSettings settings = new XsltSettings(); settings.EnableDocumentFunction = true; xslt.Load("style.xslt", settings, new XmlUrlResolver()); or XslCompiledTransform xslt = new XslCompiledTransform(); XsltSettings settings = new XsltSettings(true, false); xslt.Load("style.xslt", settings, new XmlUrlResolver()); (first argumen......

2005 May 04

159 of 206 | .NET 2.0 prohibits DTD in XML by default - Yep, no DTD is allowed by default in the .NET 2.0 Beta2: XmlReaderSettings.ProhibitDtd Property (System.Xml) Gets or sets a value indicating whether to prohibit document type definition (DTD) processing. Return Value true to prohibit DTD processing; otherwise false. The default is true. Remarks This setting can be useful in preventing certain denial of service attacks. When set to true, the reader throws an System.Xml.XmlException when any DTD content is encountered. That`s for sure contradicts "Allow all XML syntax" gospel, but looks like Microsoft takes security very seriously nowadays. Well, at least Microsoft`s XML team. Most likely that was a hard decision, but may be not sin......

2005 Apr 02

160 of 206 | XML Performance Improvements through Interdisciplinary Factor Assessment and Application - Just over two years ago, I co-authored a position paper on XML and binary encoding techniquesthat eventually led to our beloved MTOM/XOP combo.Andrew Layman and I have prepared a response to today`s XML Binary Characterizationthat provides a novel approach to the oft-mentioned XML performance problem based on looking beyond the traditional data encoding techniques.You can read our thoughts here.I expect Gudge or I to have an XmlReader/XmlWriter implementation ready in a few weeks. Watch this space....

2005 Mar 23

161 of 206 | ADO.NET and System.Xml v. 2.0--The Beta Version (2nd Edition) now Published - In time for the upcoming Visual Studio 2005 and .NET v2.0 Beta 2 release, the updated version of my ADO.NET and System.Xml book has now been published. See this book list for more information and where to download the code examples from. Alternatively just buy a copy so that I can feed my children and bribe my wife to convince her that the hours of writing were worthwhile. If you bought a copy of the first version of this book, this version is a total re-write and twice as thick, reflecting that a year and a half changes a product in many ways. Given that this is on ADO.NET it also covers features from SQL Server 2005 and complements Bob Beauchemin`s et al book A First Look at Microsoft SQ......

2005 Feb 28

162 of 206 | DataSet feature requests - We have begun the initial planning for the next version of the DataSet (post VS 2005).  If you have a feature you would like to see, let me know. I can also pass on feature requests for other components in System.Xml and ADO.net to the proper folks....

163 of 206 | DataSet feature requests - We have begun the initial planning for the next version of the DataSet (post VS 2005).  If you have a feature you would like to see, let me know. I can also pass on feature requests for other components in System.Xml and ADO.net to the proper folks....

2005 Feb 23

164 of 206 | XmlBookmarkReader - I just stumbled across this new custom XmlReader sample, XmlBookmarkReader,and had one of those "why didn`t I think of that" moments. It basically lets you set bookmarks on nodes that you might want to return to when you`re further down the node stream. It accomplishes this by caching the bookmarked node, and the nodes that follow it up to the current position, so they can all be replayed if necessary, giving you a handy hybrid between the efficiencies of a forward only cursor and the flexibility of temporary caching. Kudos to Helena. She is one of the women Dare wrote about in his post on Women in XML. According to him she`s been responsible for a lot of the work on the .NET XML parser and......

2005 Feb 18

165 of 206 | XML Reader with Bookmarks - Helena Kupkova discusses the XmlBookmarkReader. It provides the ability to set bookmarks in an XML stream and then navigate between them, combining random access to the XML with the XmlReader API....

2005 Feb 12

166 of 206 | Combining the XmlReader and XmlWriter classes for simple streaming transformations - The XmlReader and XmlWriter classes can often be combined to provide simple streaming transformations rather than resorting to XSLT which requires a the document to be loaded into memory. This class combination is often faster and uses less memory, although it requires more code and is less flexible in the types of transformations possible. However for many scenarios it is ideal. Say for example you wanted to add a new element in several repeating places to an existing document. The XmlWriter.WriteNode method is useful in pulling from an XmlReader and pushing to an XmlWriter to achieve this, but it does have a limitation in that it writes the current node and all its children to the XmlWri......

2005 Jan 28

167 of 206 | Get RSA Public key from Assembly or SNK File - I use this class to return RSA public key from Signed Assembly (i.e. SN assembly.)  Works with SNK file too (I think Whidbey will include this too). using System;using System.IO;using System.Text;using System.Xml; using System.Reflection;using System.Security.Cryptography; using System.Collections; namespace WSESimpleTCPDLL{ ///  /// One static method to get an RSACryptoServiceProvider from a *.snk file. /// NOTE:  These methods assume 1024 bit keys, the same as exported from sn.exe. ///  public sealed class SnkUtil {  #region Fields  private const int magic_priv_idx = 0x08;   private const int magic_pub_idx = 0x14;   private const int magic_size = 4;   #endregion   #region Constructors  pr......

2005 Jan 19

168 of 206 | 19 Jan 2005: Recent Novell Open Source Hires - Novell just hired Niels Bornstein, the co-author of Mono: A Developer`s Notebook. The O`Reilly best-seller. Niel will be working on the Linux and Open Source practice group. Also Tor Lilqvist, the developers who brought GIMP and Gtk+ to Windows has been hired to work full time on Gtk+ on Windows and to assist us porting various Gtk+ based applications to Windows. Nat`s blog has more details. Tor will initially be helping Frederik port our new Desktop Search tool Beagle to Windows: Later he will take on the final step to make the world a safer place: bring Evolution (our email and calendar client) to Windows. Even Windows users deserve an email program instead of a petri dish of wo......

2005 Jan 14

169 of 206 | Srikanth ... Another Introduction - Following the trend, I would like to introduce myself. I joined Microsoft and the XML team recently as a PM. I have now come to own the XmlReader, the native Infoset Reader,  the XmlWriter and the Xml Binary Reader (both native and managed). Prior to coming to Microsoft, I served as the Director of Software Development for Interactive Communication International Inc. (InComm) a leader in pre-paid services. While with InComm, my responsibilities included day to day management of the application group, customer interface, technology recommendation, overall application architecture, product implementation and roll out. Prior to InComm, I was the CTO of Infostrands, a banking product startup b......

2005 Jan 04

170 of 206 | New build complete... testing in progress. - Hey all... After a few configuration frustrations I have things in order and have a new build of Saxon.NET version 8.1.1 that I am now running through the test sequence. While I generally have expected to find little things that need to be adjusted my gut it telling me that the little things of the past (mostly issues dealing with URI`s and such) are more than likely a thing of the past as both the GNU project and IKVM.NET project have filled in massive holes over the past 4 months. Actually things, for the most part, seemed to be fairly straight forward and most of my little hacks were subsequently looking as if they would no longer be needed a couple of months ago. I have left them in ......

2004 Dec 22

171 of 206 | XInclude in .NET v2 - Now that the XInclude spec is officially a Recomendation, is it too late to include it in System.Xml v2 Unfortunately I think so :( Luckily, you can still use it in your apps by using the Mvp.Xml project XInclude.NET....

2004 Dec 16

172 of 206 | To better understand when to use XSLT we must first understand when not to use it - XML.com: XML Namespace Processing in ApacheSome of the best advice I have ever been given came from Dr. Wendell Piez when he commented (and I paraphrase) not to let "religion" overcome common sense. He wasn`t speaking to religion in the sense of my belief in God but in the sense of my belief in XSLT, two obviously very different things :) His advice was very appropriate and has stuck with me ever since.This article suggests that to those willing to work at a much lower level in the form of the Apache and SAX API there are alternatives to the more commonly understood and therefore used languages in Java, XSLT, and PHP. From my side of the world I would add that there are also many alterna......

2004 Dec 03

173 of 206 | RenderX Announces New Version - XEP.NET Released - RenderX has released XEP.NET, a Visual J#/.NET port of XEP, RenderX`s XSL Formatting engine. It consists of 100% manageable code, no Java or native libraries are required to run it. Its functionality and XSL FO support level are identical to RenderX`s Java version. The XEP.NET core is wrapped in an API that exposes standard .NET interfaces for XML processing: XmlReader and XmlWriter. This public API is a .NET class library component that can be used from .NET programming language, such as Visual C#.NET, Visual Basic.NET, and Visual J#.NET. Additionally, the software includes a .NET class library for MSXML integration, with C# source codes included. This integration component allows use of M......

2004 Dec 02

174 of 206 | RenderX Announces New Version - XEP.NET Released - RenderX has released XEP.NET, a Visual J#/.NET port of XEP, RenderX`s XSL Formatting engine. It consists of 100% manageable code, no Java or native libraries are required to run it. Its functionality and XSL FO support level are identical to RenderX`s Java version. The XEP.NET core is wrapped in an API that exposes standard .NET interfaces for XML processing: XmlReader and XmlWriter. This public API is a .NET class library component that can be used from .NET programming language, such as Visual C#.NET, Visual Basic.NET, and Visual J#.NET. Additionally, the software includes a .NET class library for MSXML integration, with C# source codes included. This integration component allows use of M......

2004 Nov 29

175 of 206 | Introducing the XMLTextReader - The .NET Framework provides a variety of classes and methods to manipulate XML. However, many times an application requires read only access to an XML Data file. This is the perfect situation for the XMLReader. This abstract class provides a fast forward only cursor for XML files and is used in both the XMLNodeReader and XMlTextReader .NET classes. The XMLTextReader reads records sequentially and allows the skipping of element that may not be needed. Overall, this improves the performance as your traverse the DOM tree.   The XMLTextReader provides a cursor that specifies the node in the document. The Read method is used to advance the cursor one node at a time. When initialized the XMLTextR......

176 of 206 | Introducing the XMLTextReader - The .NET Framework provides a variety of classes and methods to manipulate XML. However, many times an application requires read only access to an XML Data file. This is the perfect situation for the XMLReader. This abstract class provides a fast forward only cursor for XML files and is used in both the XMLNodeReader and XMlTextReader .NET classes. The XMLTextReader reads records sequentially and allows the skipping of element that may not be needed. Overall, this improves the performance as your traverse the DOM tree.   The XMLTextReader provides a cursor that specifies the node in the document. The Read method is used to advance the cursor one node at a time. When initialized the XMLTextR......

177 of 206 | Not the Way to Introduce XmlTextReader - Thom Robbins is a great guy, but unfortunately for him he has bumped into one of my major pet peeves, Viral Coding Examples with his Introducing the XmlTextReader post.  It really isn’t his fault, since the code he uses is very similar to the code example in the XmlTextReader.Read()  documentation, and I complained about that code to the System.Xml team at the MVP Summit.  I did promise to write something up on it, and Thom’s post finally got me to do it (it has been months since I promised to write this up). The problem is in the structure of the code: Dim xmlFileStream As New FileStream("cust.xml", FileMode.Open)Dim xmlRead As New XmlTextReader(xmlFileStream) While xmlRead.Read    xmlRea......

2004 Nov 25

178 of 206 | Building an XML Document in Code - Question: How can I build an XML Document with Code for the Compact Framework I understand that I can use the tools of Visual Studio, XML Spy or even Notepad to do this. Unfortunately, I dont know the format of the actual XML Document until the application is running.   Answer: It is important to understand the Document Object Model (DOM) provides a set of classes that conforms to the World Wide Consortium (W3C) Level 1 Specification. It is these classes that we can use to both create and modify an XML Document in memory and navigate through the document. It is really the DOM that provides acess to the contents of the entire document. When the XML Parser (System.XML) in the .NET Compact Fr......

179 of 206 | Building an XML Document in Code - Question: How can I build an XML Document with Code for the Compact Framework? I understand that I can use the tools of Visual Studio, XML Spy or even Notepad to do this. Unfortunately, I dont know the format of the actual XML Document until the application is running.   Answer: It is important to understand the Document Object Model (DOM) provides a set of classes that conforms to the World Wide Consortium (W3C) Level 1 Specification. It is these classes that we can use to both create and modify an XML Document in memory and navigate through the document. It is really the DOM that provides acess to the contents of the entire document. When the XML Parser (System.XML) in the .NET Compact F......

2004 Nov 22

180 of 206 | Calling document("") in .NET - There was recently an interesting thread in the microsoft.public.dotnet.xml newsgroup on document(") call in .NET. A guy was portiong some app from using MSXML to .NET. Something didn`t work... You know these usual bitter (and usually completely lame) complains: It is strange, this all works just fine using MSXML4 objects instead of XML.NET I guess between the implementation of MSXML4 and XML.NET they forgot the purpose of the special case document(``). ... W3C spec or not, it is too bad that XML.NET is intrinsically tied to the file system. My program has access neither to write nor read from the file system. I guess I will use MSXML4. So what`s wrong with document(") in .NET......

181 of 206 | Calling document("") in .NET - There was recently an interesting thread in the microsoft.public.dotnet.xml newsgroup on document(") function call in .NET. A guy was porting some app from using MSXML to .NET. Something didn`t work... You know these common bitter (and usually completely lame) complaints: It is strange, this all works just fine using MSXML4 objects instead of XML.NET I guess between the implementation of MSXML4 and XML.NET they forgot the purpose of the special case document(``). ... W3C spec or not, it is too bad that XML.NET is intrinsically tied to the file system. My program has access neither to write nor read from the file system. I guess I will use MSXML4. So what`s wrong with document(......

2004 Nov 11

182 of 206 | Beta Book Pain, Performance Love - Writing books on beta products is probably the most painful thing that you can ever endure even if you are in the product team (or was as in my case). I finally finished up the last XML chapter in the beta version of ADO.NET and System.Xml V2. It is a vast brain dump of the delta between V1.1 and V2.0 for System.Xml coupled with the numerous changes since the PDC 2003 preview release. However I was not able to cover the #1 feature enough of System.Xml V2.0 - performance. This will have to wait for any potential future final version of the book depending on sales of this one of course. All I can say is that you will not be disappointed - the XML team has done an incredible job. Every compone......

183 of 206 | Beta Book Pain, Performance Love - Writing books on beta products is probably the most painful thing that you can ever endure even if you are in the product team (or was as in my case). I finally finished up the last XML chapter in the beta version of ADO.NET and System.Xml V2. It is a vast brain dump of the delta between V1.1 and V2.0 for System.Xml coupled with the numerous changes since the PDC 2003 preview release. However I was not able to cover the #1 feature enough of System.Xml V2.0 - performance. This will have to wait for any potential future final version of the book depending on sales of this one of course. All I can say is that you will not be disappointed - the XML team has done an incredible job. Every compone......

2004 Oct 25

184 of 206 | Implementing XML Base in .NET - XML Base is a tiny W3C Recommendation, just couple of pages. It facilitates defining base URIs for parts of XML documents via semantically predefined xml:base attribute (similar to that of HTML BASE element). It`s XML Core spec, standing in one line with "Namespaces in XML" and XML InfoSet. Published back in 2001. Small, simple, no strings attached or added mind-boggling complexity. Still unfortunately neither MSXML nor System.Xml of .NET support it (Dare Obasanjo wrote once on the reasons and plans to implement it). Instead, XmlResolver is the facility to manipulate with URIs. But while XmlResolvers are powerful technique for resolving URIs, they are procedural facility - one has......

2004 Oct 24

185 of 206 | Indenting attributes with XmlTextWriter - XmlTextWriter in .NET 1.X only supports indentation of the following node types: DocumentType, Element, Comment, ProcessingInstruction, and CDATA. No attributes. So how to get attributes indented anyway? If you can - wait .NET 2.0 with cool XmlWriterSettings.NewLineOnAttributes, otherwise - here is a hack how to get attributes indented with XmlTextWriter in .NET 1.X. Well, XmlWriter isn`t particularly low-level writer, it`s abstract XML oriented API, so its implementation XmlTextWriter wouldn`t allow you to just override WriteStartAttribute() method and inject indentation characters before each attribute - it would be considered as an exceptional attempt to write an attrib......

2004 Oct 14

186 of 206 | .NET System.XML and Javax.XML Reference - TopXML.com has published two new references. .NET System.XML and Javax.XML reference. Both contains a very nice introduction about the classes and an example code in VB.Sonu...

187 of 206 | System.Xml Beta 2 Changes - Dare and I compiled the Upcoming Changes to System.Xml in .NET Framework 2.0 Beta 2 which he published on the MSDN XML developer center. Mostly my previous article still stands without the #6 and #3 gone. However as a result of implementing the editablable XPathNavigator over the XmlDocument class this has forced us to re-address performance issues with the DOM.Performance is still the top goal for the version 2.0 release and we continues to make improvements. Recently we found that by rewriting the date handling support in the XML Schema processor gave significant performance improvements in certain scenarios. The goal performance goal - to be as good as or better than MSXML 4.0 which has ......

188 of 206 | System.Xml Beta 2 Changes - Dare and I compiled the Upcoming Changes to System.Xml in .NET Framework 2.0 Beta 2 which he published on the MSDN XML developer center. Mostly my previous article still stands without the #6 and #3 gone. However as a result of implementing the editablable XPathNavigator over the XmlDocument class this has forced us to re-address performance issues with the DOM.Performance is still the top goal for the version 2.0 release and we continues to make improvements. Recently we found that by rewriting the date handling support in the XML Schema processor gave significant performance improvements in certain scenarios. The goal performance goal - to be as good as or better than MSXML 4.0 which has ......

2004 Oct 13

189 of 206 | TopXML Publishes .Net System.Xml Reference - Looks like Mark Wilson (et al) have put together a new reference site for the System.Xml namespace.  It is a simple (easier to read) reference site for System.Xml focusing on the VB.Net developer.  It is a bit light for someone that has a decent understanding of Xml in .Net, but for the newbies, it should be a blessing (compared to the MSDN documentation)....

2004 Oct 03

190 of 206 | Building Custom XmlResolvers Article on MSDN XML Developer Center - In between re-writing and updating the chapters for the beta version of the my book A First Look at ADO.NET and System.Xml V2.0, I found some time to write an article on Building Custom XmlResolvers for MSDN. What`s so great about this class is that it enables you to redirect the location of the XML that you want to load, as well as allowing you to define your own schemes, if necessary (e.g. db:// to load from a database). There are all sorts of great things that you can do with an XmlResolver and you can come up with some fairly intelligent caching solutions if your applications needs this. One aspect that I did not cover in this article is the use of the credentials property of the XmlRes......

191 of 206 | Building Custom XmlResolvers Article on MSDN XML Developer Center - In between re-writing and updating the chapters for the beta version of the my book A First Look at ADO.NET and System.Xml V2.0, I found some time to write an article on Building Custom XmlResolvers for MSDN. What`s so great about this class is that it enables you to redirect the location of the XML that you want to load, as well as allowing you to define your own schemes, if necessary (e.g. db:// to load from a database). There are all sorts of great things that you can do with an XmlResolver and you can come up with some fairly intelligent caching solutions if your applications needs this. One aspect that I did not cover in this article is the use of the credentials property of the XmlRes......

2004 Sep 03

192 of 206 | More Information on the XPathDocument/XmlDocument Change in Whidbey beta 2 - In my recent post entitled The MSDN Camp vs. The Raymond Chen Camp I wrote Our team [and myself directly] has gone through a process of rethinking a number of decisions we made in this light. Up until very recently we were planning to ship the System.Xml.XPath.XPathDocument class as a replacement for the System.Xml.XmlDocument class ... The problem was that the XPathDocument had a radically different programming model than the XmlDocument meaning that anyone who`d written code using the XmlDocument against our v1.0/v1.1 bits would have to radically rewrite their code to get performance improvements and new features. Additionally any developers migr......

2004 Aug 01

193 of 206 | Loading XML Files from Behind a Proxy Server - I recently got a number of bug reports that in certain situations RSS Bandit would report a proxy authentication error when fetching certain RSS feeds over the Web when connecting through a proxy server. It seemed most feeds would work fine but a particular set of feeds would result in the following message The remote server returned an error: (407) Proxy Authentication Required. Examples of sites that had problems include the feeds for Today on Java.net, Martin Fowler`s bliki and Wired News. It dawned on me that the one the one thing all these feeds had in common was that they referenced a DTD. The problem was that although I was using an instance ......

2004 Jul 21

194 of 206 | When Backwards Compatibility Mode Isn`t - Today Arpan (the PM for XML query technologies in the .NET Framework) and I were talking about features we`d like to see on our `nice to have` list for the Orcas release of the .NET Framework. One of the things we thought would be really nice to see in the System.Xml namespace was XPath 2.0. Then Derek being the universal pessimist pointed out that we already have APIs that support XPath 1.0 that only take a string as an argument (e.g. XmlNode.SelectNodes) so we`d have difficulty adding support for another version of XPath without contorting the API. Not to be dissuaded I pointed out that XPath 2.0 has a backwards compatibility mode which makes it ......

2004 Jul 15

195 of 206 | Bang! Bang! My Baby Shot Me Down - I was reading an XML-Deviant column on XML.com entitled Browser Boom when I came across the following excerpt The inevitable association with Microsoft`s CLI implementation is proving a source of difficulty for the Mono project. The principal author of Mono`s XML support, Atsushi Eno, posted to the Mono mailing list on the problems of being conformant in Mono`s XML parser implementation. More specifically, whose rules should Mono conform to. W3C or Microsoft MS XmlTextReader is buggy since it accepts XML declaration as element content (that violates W3C XML specification section 3 Logical Structures). ... However, there is another discussion that it ......

2004 Jul 08

196 of 206 | Chat with us now! - Sorry, got this rather late, but for anyone interested, the System.Xml team be on for the next hour or so: Title: C# and XML Use XML? Use C#? Have some questions, comments, or just want listen to people talk about your favorite technologies? Join members of the C# team and Dare Obasanjo http://blogs.msdn.com/DareObasanjo/> of the XML/Data team for a discussion about C# and XML. Chat room: http://communities2.microsoft.com/home/chatroom.aspx?siteid=34000014 ...

2004 Jul 04

197 of 206 | Breaking Changes in System.Xml from v1.1 to v2.0 of the .NET Framework - At Microsoft one of our goals in developing software is that backwards compatibility when moving from one version of software to the next is high priority. However in certain cases the old behavior may be undesirable enough that we break compatibility. An example of such undesirable behavior are bugs that lead to incorrect results or security issues. Below is a list of breaking changes in the System.Xml namespace in beta 1 of v2.0 of the .NET Framework. Extension of xs:anyType which changes the content type to mixed="false" results in error. Add an enumeration member to XmlWriter.WriteState to indicate that the writer is in error ......

2004 Jun 24

198 of 206 | What Would You Like To See in System.Xml in Orcas/Longhorn - I`m in the end stages of doing the spec work for the various components in the System.Xml namespace  I am responsible for in the Whidbey betas. After the 4th of July holidays we plan to start doing initial brain storming for what feature work we should do in