Learn about .NET System.XML and System.Web.Services here...
2006 Mar 16
101 of 206 | LocationMaker, an approach to System.XML - Tired of editing the location.xml file via notepad? try LocationMaker...
2006 Mar 14
102 of 206 | Hello Saxon on .NET! - An ASP.NET Introduction - [QUICK-UPDATE: Forgot for some silly reason to add the link to the live working sample of this code.]
// NOTE: Saxon now uses System.Xml internally on the .NET platform.
// We could import it and use any of its derived classes, methods, and so forth,
// but in this example we will be using a FileStream for both the source
// and transformation files, and Saxon will be taking care of things from there,
// so theres no need to import System.Xml for this particular example.
void Page_Load(Object sender, EventArgs e)
{
// Create two strings that represent the source file and
// transformations file. These values could be set using
// a variety of methods (e.g. QueryStrin......
2006 Mar 10
103 of 206 | How to load a DSL domain model instance file programmatically - Note: this entry has moved. Say you have a custom DSL file in a solution. Say you want to process the model on that file using GAT or an AddIn or even your custom application code at runtime. You need to deserialize that XML (yes, it’s all XML in the end) into an instance of your domain model (root). You will need two pieces of information: the .NET type of the domain model (that is, the parent of your domain model root concept) and its the corresponding designer. The following code does the trick, allowing you to deserialize a model and return the first instance of the given domain model type (i.e. the model root):public static TRootConcept GetModelRoot<TRootConcept>(string mo......
2006 Mar 09
104 of 206 | How to load a DSL domain model instance file programmatically - Note: this entry has moved. Say you have a custom DSL file in a solution. Say you want to process the model on that file using GAT or an AddIn or even your custom application code at runtime. You need to deserialize that XML (yes, it’s all XML in the end) into an instance of your domain model (root). You will need two pieces of information: the .NET type of the domain model (that is, the parent of your domain model root concept) and its the corresponding designer. The following code does the trick, allowing you to deserialize a model and return the first instance of the given domain model type (i.e. the model root):public static TRootConcept GetModelRoot<TRootConcept>(string mo......
2006 Feb 23
105 of 206 | buldocs has released xnsdoc 1.1, a €49 payware "documentation generator for XML namespaces defined by W3C XML Schema in HTML in a JavaDoc like visualization.
- buldocs has released xnsdoc 1.1, a €49 payware "documentation generator for XML namespaces defined by W3C XML Schema in HTML in a JavaDoc like visualization. xnsdoc supports all common schema design practices like chameleon, russian doll, salami slice, venetian blind schemas or circular schema references. xnsdoc can be used from the command line, as an Apache Ant Task, as an Apache Maven Plugin, as an eclipse plugin or integrated as a custom tool in many XML development tools such as StylusStudio, oXygen XML or XMLWriter." Version 1.1 adds an Eclipse plugin and fixes bugs....
2006 Feb 08
106 of 206 | XAdES Interop with XML-DSIG as implemented by the .NET Framework -
What a way to start off a new category on my blog called "Interoperability".
I recently came across an interesting post in the forums that goes something like
this:
[QUOTE]
Currently I'm working with Visual Studio 2003 in
order to generate xmldsig signature. I'm using the class signedxml to create
the xmldsig signature and I get somthing like this:
[Signature xmlns="http://www.w3.org/2000/09/xmldsig#"]
[SignedInfo]
[CanonicalizationMethod
Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /]
............
[/Signature]
But I need the sign......
2006 Feb 02
107 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&nbs......
108 of 206 | System.Xml v2 Articles posted by Alex Homer - Alex has written two good overview articles on System.Xml in .NET v2.0 - part 1 on the XmlReader and part 2 on the XmlWriter....
2006 Jan 13
109 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 ...
110 of 206 | Harnessing the BackPack API - Part I - Michael shows you how to build an app that uses the open API associated with BackPack, a web-based personal organization application, passing data back and forth with XML, and taking advantage of System.XML and Delegates to keep the code simple....
111 of 206 | Improving XML Performance in .NET Framework Applications -
The Microsoft Pattern and Practices folks have produced an excellent guide to Improving
.NET Application Performance and Scalability with a chapter on Improving
XML Performance. If you build .NET Framework applications that utilize
XML then you owe it to yourself to take a look at the guidelines in that document.
There is also a handy, easily printable XML
Performance checklist which can be used as a quick way to check that your
application is doing the right thing with regards to getting the best performance
for XML applications.
On a similar note, Mark Fussell has posted XmlNameTable:
The Shiftstick of System.Xml ......
112 of 206 | Primus -
About me:
Well, my name is Arpan Desai and I'm a Program Manager with the SQL Server group at
Microsoft. I work on the System.Xml stack
in the .NET Framework, focusing on XML querying.
What you'll find on my blog:
I'm going to mainly focus on 'XML Tips & Tricks', but I'll also dive a bit into
other diversions such as HTPCs/HDTV/Pretty much anything technology related.
...
113 of 206 | XLinq: is XML embedded in a host language a good idea or a terrible one? - Note: this entry has moved. During the MVP Summit, and through various articles and blog posts, Microsoft has been trying to get community feedback on the proposed feature of integrating XML as a first-class concept into a core language (such as VB.NET). It seems so natural, right? After all, they are not the first ones to propose such a thing. You're dealing with lots XML in your application, what else could you ask than to be able to do something like the following?:Dim CountriesWithCapital As XElement = _ <Countries> <%= Select <Country Name=(Country.Name) &nbs......
114 of 206 | XLinq: is XML embedded in a host language a good idea or a terrible one? - Note: this entry has moved. During the MVP Summit, and through various articles and blog posts, Microsoft has been trying to get community feedback on the proposed feature of integrating XML as a first-class concept into a core language (such as VB.NET). It seems so natural, right? After all, they are not the first ones to propose such a thing. You're dealing with lots XML in your application, what else could you ask than to be able to do something like the following?:Dim CountriesWithCapital As XElement = _ <Countries> <%= Select <Country Name=(Country.Name) &nbs......
2006 Jan 11
115 of 206 | Microsoft and EXSLT - secret breakthrough -
There are two new killer but undocumented features in Microsoft .NET 2.0 pertaining to EXSLT. Anybody like me regularly digging in System.Xml assembly probably knows it, but general audience is still unaware. So I want to share these secrets.
Secret #1. Unexpected surprise. Microsoft`s new XSLT processor (XslCompiledTransform) supports natively two EXSLT extension functions - exsl:node-set() and exsl:object-type(). That is technically speaking XslCompiledTransform supports EXSLT - Common module.
Moreover, as mentioned in the "Introducing XslCompiledTransform" article on the Microsoft XML Team`s WebLog, the behaviour of Microsoft specific msxsl:node-set() extension function......
2005 Dec 21
116 of 206 | Writing XML using JavaScript - This article illustrates a Javascript XMLWriter object....
2005 Dec 19
117 of 206 | Evaluating XML Value - There has been a bunch of discussion in the community (with commentary) on XSLT 2.0 and whether Microsoft should impement the recommendation (as well as how & when). I started tracking the external discussion by reading DonXML`s thoughts as well as Dare`s point of view and it blossomed from there. With all this talk about business cases it got me thinking about how we evaluate value and how the community can have the maximum impact on that evaluation. The point of my post isn`t about XSLT 2.0 - it`s about the decision making process here at Microsoft and how we can all learn to work better to get the right things done. However since XSLT 2.0 seems to be a hot topic (or was last week) I ......
2005 Dec 15
118 of 206 | Don Demsak on XSLT 2.0 and Microsoft -
Don Demsak has a post entitled XSLT
2.0, Microsoft, and the future of System.Xml which has some insightful perspectives
on the future of XML in the .NET Framework
Oleg accidentally restarted the XSLT 2.0 on .Net firestorm by trying to startup
an informal
survey. Dare chimed in with his
view of how to get XSLT 2.0 in .Net. M. David (the guy behind Saxon.Net
which let .Net developers use Saxon on .Net) jumped in with his
opinion.
...
One of the things that I’ve struggled with in System.Xml is how hard it is sometimes
to extend the core library. The XML MVPs have done a good job with some things,
but other things (like implementing XSLT 2.0 on top o......
119 of 206 | Don Demsak on XSLT 2.0 and Microsoft -
Don Demsak has a post entitled XSLT
2.0, Microsoft, and the future of System.Xml which has some insightful perspectives
on the future of XML in the .NET Framework
Oleg accidentally restarted the XSLT 2.0 on .Net firestorm by trying to startup
an informal
survey. Dare chimed in with his
view of how to get XSLT 2.0 in .Net. M. David (the guy behind Saxon.Net
which let .Net developers use Saxon on .Net) jumped in with his
opinion.
...
One of the things that Ive struggled with in System.Xml is how hard it is sometimes
to extend the core library. The XML MVPs have done a good job with some things,
but other things (like implementing XSLT 2.0 o......
2005 Dec 12
120 of 206 | XSLT 2.0, Microsoft, and the future of System.Xml - Oleg accidentally restarted the XSLT 2.0 on .Net firestorm by trying to startup an informal survey. Dare chimed in with his view of how to get XSLT 2.0 in .Net. M. David (the guy behind Saxon.Net which let .Net developers use Saxon on .Net) jumped in with his opinion.
But in the end, what does all this mean. From the outsider viewpoint, it could look like the .Net XML guys are fighting publicly, but let me assure you, that isn’t the case. Visual Studio 2005 and .Net has finally shipped, and now is the time to start looking at what should make it into the next version. The System.Xml team is hard a work compiling a list of things that may or may not make it into future releases, and Ole......
2005 Nov 28
121 of 206 | Mvp.Xml library v1.2 and v2.0 released - Mvp.Xml library v1.2 (for .NET 1.1) and v2.0 (for .NET 2.0)released.Mvp.Xml library v1.2 is the latest Mvp.Xml release for .NET 1.1. What`s new in the Mvp.Xml v1.2:o Support for fractional seconds in EXSLT Dates and Times functions o Bug fixes Mvp.Xml library v2.0 is the first Mvp.Xml release for .NET 2.0. What`s new in the Mvp.Xml v2.0:o EXSLT.NET now works with new .NET 2.0 XSLT processor - XslCompiledTransform class o Experimental new improved and simplified XSL transformation API introducing concepts of IXmlTransform interface, XmlInput and XmlOutput o MvpXslTransform - extends capabilities of the XslCompiledTransform class by adding support for transforming into XmlReader , vast collec......
2005 Nov 17
122 of 206 | Mono Status `05 - Mono Directions: (Article Permalink) We just released Mono 1.1.10, our best release so far. The major feature missing from this release to call it Mono 1.2 is the completion of our Windows.Forms implementation. In this document I only present the direction of development of the Mono team at Novell; A more comprehensive view of other Mono developments by the Mono community is something that am working on and will post at a later date. I also present how our team`s priorities are shifting in response to Novell`s own internal use of Mono and external factors like the final release of .NET 2.0.Index Code Development Process Windows.Forms 2.0 Support Mono Debugger MonoDevelop IDE Mono ......
2005 Nov 14
123 of 206 | New XML Features in .NET Version 2 - Version 1.1 of the .NET framework supports todays mainstream XML technologies including DTDs, XML Schema, XSLT, XPath, SOAP 1.1, DOM Level 2, and XML namespaces. While version 2 of the framework continues to support these technologies (and newer versions where appropriate), it also adds significantly more perfomant XSLT transformations, enhanced XmlReader and XmlWriter APIs, plus a more powerful XPathNavigator class (to name a few of the enhancements). I`ve put together some code that shows how to leverage several of the new XML APIs found in .NET version 2. You`ll find the code available at the following URL: http://www.xmlforasp.net/CodeSection.aspxcsID=107 ...
124 of 206 | New XML Features in .NET Version 2 - Version 1.1 of the .NET framework supports today’s mainstream XML technologies including DTDs, XML Schema, XSLT, XPath, SOAP 1.1, DOM Level 2, and XML namespaces. While version 2 of the framework continues to support these technologies (and newer versions where appropriate), it also adds significantly more perfomant XSLT transformations, enhanced XmlReader and XmlWriter APIs, plus a more powerful XPathNavigator class (to name a few of the enhancements). I've put together some code that shows how to leverage several of the new XML APIs found in .NET version 2. You'll find the code available at the following URL: http://www.xmlforasp.net/CodeSection.aspx?csID=107 ...
125 of 206 | Work with RSS Feeds using the System.Xml Assembly - .NET version 2.0 adds many enhancements to the System.Xml namespace and its related classes. This sample code demonstrates how several of these enhancements can be used to consume RSS feeds for display on ASP.NET Websites in an efficient and scalable manner. Different techniques are shown including caching feeds, randomizing feeds, plus more using the XmlReader and XPathNavigator classes. Other alternatives such as the DataSet and XmlDataSource control are also shown. http://www.xmlforasp.net/CodeSection.aspx?csID=118 ...
126 of 206 | Work with RSS Feeds using the System.Xml Assembly - .NET version 2.0 adds many enhancements to the System.Xml namespace and its related classes. This sample code demonstrates how several of these enhancements can be used to consume RSS feeds for display on ASP.NET Websites in an efficient and scalable manner. Different techniques are shown including caching feeds, randomizing feeds, plus more using the XmlReader and XPathNavigator classes. Other alternatives such as the DataSet and XmlDataSource control are also shown. http://www.xmlforasp.net/CodeSection.aspx?csID=118 ...
127 of 206 | Work with RSS Feeds using the System.Xml Assembly - .NET version 2.0 adds many enhancements to the System.Xml namespace and its related classes. This sample code demonstrates how several of these enhancements can be used to consume RSS feeds to display on ASP.NET Websites in an efficient and scalable manner. Different techniques are shown including caching feeds, randomizing feeds, plus more using the XmlReader and XPathNavigator classes. Other alternatives such as the DataSet and XmlDataSource control are also shown.
...
2005 Oct 23
128 of 206 | Karma - To atone for my sins in a previous virtual life, I have been made the program manager "owning" the DOM APIs at Microsoft -- MSXML, System.Xml, and whatever lies ahead in the future.
Whoever runs the universe has a sense of humor, anyway :-)
...
129 of 206 | Karma Maybe. But, For The Rest Of Us At Least, Its Karma Of The Good Variety - mikechampion`s weblog : Karma Karma To atone for my sins in a previous virtual life, I have been made the program manager "owning" the DOM APIs at Microsoft -- MSXML, System.Xml, and whatever lies ahead in the future.Whoever runs the universe has a sense of humor, anyway :-)Remind me to thank whoever it is that does run the Universe, as I can`t imagine a more qualified individual who will also have the best interests of the XML communities as a whole in each and every decision he makes.Very good decision Microsoft, and obviously an easy one to make.Congratulations Mike!...
2005 Oct 22
130 of 206 | KennyW on the dreaded "null channel" - Kenny`s going to build an intra-AppDomain channel (http://kennyw.com/indigo/47).Here`s a thought - implement an XmlReader/Writer pair that simply constructs an in-memory linear sequence of data structures and smuggle the sequence across the service boundary as an implementation detail of the channel. No copying of strings.No parsing of byte/char arrays to reconstitute the infoset.If you needed to calculate a DSIG, you`d need to be much more clever of course....
2005 Oct 12
131 of 206 | buldocs has released xnsdoc 1.0, a 49 payware "documentation generator for XML namespaces defined by W3C XML Schema in HTML in a JavaDoc like visualization. - buldocs has released xnsdoc 1.0, a 49 payware "documentation generator for XML namespaces defined by W3C XML Schema in HTML in a JavaDoc like visualization. xnsdoc supports all common schema design practices like chameleon, russian doll, salami slice, venetian blind schemas or circular schema references. xnsdoc can be used from the command line, as an Apache Ant Task, as an Apache Maven Plugin, as an eclipse plugin or integrated as a custom tool in many XML development tools such as StylusStudio, oXygen XML or XMLWriter."...
2005 Oct 10
132 of 206 | ValidationType.Auto is obsolete, what do I do -
In .NET 2.0 ValidationType.Auto value is made obsolete. What`s worse - it doesn`t work for XmlReaders created via XmlReader.Create() factory method. But how do you validate against either DTD and/or schema, i.e. against DTD if document has a DOCTYPE and/or schema if any is applicable The answer is: you can chain two XmlReaders, one set up for performing DTD validation and second - schema validation.
XmlReaderSettings settings = new XmlReaderSettings();
settings.ValidationType = ValidationType.DTD;
XmlReader inner = XmlReader.Create("book.xml", settings); // DTD Validation
settings.Schemas.Add("urn:book-schema", "book.xsd");
settings.ValidationType = ValidationType.Schema......
2005 Oct 04
133 of 206 | Back From The MVP Summit - System.Xml Team Rocks - I spent a couple days in Seattle/Redmond thanks to the MVP program and the MVP Global Summit. This was my second Summit, and although I thought it to be impossible, it was even better then the first one. Some of the other MVP groups got to see mostly repeats of the PDC, but not the XML MVPs. Our team (the System.Xml team, aka WebData) went way out of their way and made the most of our time out at Redmond. Besides asking the XML MVPs in attendence (about 6 of us) to help with the future of System.Xml (which is all under NDA, so I can’t mention the details, but if half of it becomes reality, you will have to re-think how you write code), Dave Remy some how convinced Anders Hejlsberg and s......
2005 Sep 23
134 of 206 | XLinq Bitter Words, Part I - XML functional construction -
XLinq is new and hot technology everybody seems to be happy with. I`m going to post a different review series - not what I like, but what I dislike and want to be fixed in XLinq. Sorry in advance for bitter words, but it`s better when your friend says them.
XML functional construction
XML Tree functional construction is a great stuff and definitely a big improvement over the upside down DOM-style XML building. I only wanted to note that one doesn`t have to wait years for C# 3.0 to be able to build XML tree in a natural top-down way, that was actually possible from the very beginning (here is .NET 2.0 sample, in .NET 1.X one would need XmlNodeWriter):
XmlDocument doc = ......
2005 Aug 09
135 of 206 | XML do`s and don`ts - Atsushi Enomoto has a great list of hints on developers using XML and Mono`s XML if they care about performance, his list is available here.String Collation Mono originally was using IBM`s Classes for Unicode (ICU) library. A C library that provides many tools to handle internationalized strings (like comparing strings, finding substrings, handling case sensitivity in a culture-aware fashion) and so on. Basically all the managed code in Mono would call into the C runtime and the C runtime would use ICU`s functionality to carry out the job. Unluckly Microsoft`s behavior of the unicode operations differed from ICU implementation and the fixes that we applied in our wrapper code that use I......
2005 Aug 01
136 of 206 | New in .NET 2.0: Push-Based XML Validation with XmlSchemaValidator Class -
This is a real hidden gem in .NET 2.0 everybody (including me) have pretty much overlooked. XmlSchemaValidator class from the System.Xml.Schema namespace is a push-based W3C XML Schema validatation engine. Push-based means different processing model - an opposite for pull-based one. Think about how you work with XmlWriter (push) and XmlReader (pull). With (obsolete now) .NET 1.X`s XmlValidatingReader and .NET 2.0`s XmlReader with validation enabled you read XML to make sure it`s valid. With XmlSchemaValidator you do the opposite - you ask it to validate XML bits using ValidateElement, ValidateAttribute, ValidateText etc methods.
Which scenarios does XmlSchemaValidator enab......
2005 Jul 29
137 of 206 | Correction: Atsushi Eno and Mono`s System.Xml; Clarification from my previous post - monogatariA while back I posted an entry regarding Atsushi Eno and Mono`s System.Xml implementation. As some of you are aware, my time is limited at the moment while I work on a project that is sorta, kinda, still unannounced. As such I havent been able to keep up with as many blogs as I would like to. However, catching up with Atsushi Eno`s blog I came across this correction to my post:System.Xml code is not mineI came across M.David Peterson thinking that I have written all xml code. It is quite incorrect ;-) System.Xml - XmlReader and XmlDocument related stuff are originally from Jason Diamond.XmlWriter related stuff are from Kral Ferch.System.Xml.Schema - Dwivedi, Ajay kumar wrote no......
2005 Jul 20
138 of 206 | GetElementsByTagName - It`s been quiet on this blog as we get closer to Whidbey RTM. Meanwhile, Erik Saltwell - the dev lead for system.xml - gives a "behind the scenes" look at GetElementsByTagName. It`s quite a good read, especially if you`re using this method.
Stan Kitsis...
139 of 206 | GetElementsByTagName - It`s been quiet on this blog as we get closer to Whidbey RTM. Meanwhile, Erik Saltwell - the dev lead for system.xml - gives a "behind the scenes" look at GetElementsByTagName. It`s quite a good read, especially if you`re using this method.
Stan Kitsis...
2005 Jul 11
140 of 206 | XslCompiledTransform API bug -
I`m porting nxslt utility to .NET 2.0 with XslCompiledTransform as XSLT processor and I just found out XslCompiledTransform API is really severe broken. I was writing before that the only Transform() method overload that accepts XmlResolver outputs to XmlWriter. So if you want to create HTML and to have some control over document() function resolving (or just provide user credentials), you are out of luck with XslCompiledTransform. Quite common scenario, isn`t it Too bad, XML Team should hire better testers.
As Anton Lapounov pointed out XmlWriter is .NET 2.0 is actually capable to write not only XML, but also HTML or text. This behavior is controlled by XmlWriterSettings.......
2005 Jun 23
141 of 206 | XmlReader and XmlWriter articles by Alex Homer - Alex Homer wrote a very good article (http://www.15seconds.com/issue/050601.htm) on using XmlReader and XmlWriter in .NET 2.0. It is based on beta 2 bits and while we`ve added a few new features since then (for example, allowXmlAttributes flag), it is still a very good read.
Stan Kitsis...
142 of 206 | XmlReader and XmlWriter articles by Alex Homer - Alex Homer wrote a very good article (http://www.15seconds.com/issue/050601.htm) on using XmlReader and XmlWriter in .NET 2.0. It is based on beta 2 bits and while we`ve added a few new features since then (for example, allowXmlAttributes flag), it is still a very good read.
Stan Kitsis...
2005 Jun 22
143 of 206 | Before the MS XSLT 2.0 rumors become solidified in concrete by days end read the second sentence | Oh, and some questions and answers regarding where Saxon.NET fits into all of this - [UPDATE: With as many references to XML-related technologies, specifically XSLT 2.0, as well as the overabundance of references to the .NET platform and the Saxon (and Saxon.NET) processor how did Google determine that the best ads to sit side by side with this post should be related to World War II Might wanna` check that "amazingly advanced" ad matching technology you`ve been toutin` there Google... think you might have a glitch or two to deal with, but maybe its just me ;)]monogatariThe best approach to interoperability is to focus on getting widespread, conformant implementation of the XSLT 2.0 specification.Atsushi Eno doesn`t blog often but when he does I tend to drop whatever it is......
144 of 206 | System.Xml v2 Articles posted by Alex Homer - Alex has written two good overview articles on System.Xml in .NET v2.0 - part 1 on the XmlReader and part 2 on the XmlWriter....
2005 Jun 07
145 of 206 | Performance of System.Xml in the .NET Framework V2 - Vindication tastes so sweet: http://msdn.microsoft.com/vstudio/java/compare/xmlperf/default.aspx...
2005 Jun 01
146 of 206 | What`s new in System.Xml 2.0: XPathNavigator is now IXPathNavigable -
Another improvement System.Xml 2.0 brings, from the how-come-I-didn`t-make-it--before department is that XPathNavigator class now implements IXPathNavigable. Sounds obvious, huh In both common and OOP sense of course XPathNavigator should be IXPathNavigable, but somehow in .NET 1.0 and 1.1 it is not. (And by the way I still wonder how come XmlNodeReader doesn`t implement IHasXmlNode interface. Too bad I made this suggestion too late and now we must wait another year or two for this). Anyway, these 2 lines of code:
public virtual XPathNavigator CreateNavigator()
{
return this.Clone();
}
made a magic to the XslCompiledTransform API. 4 redundant Transform() overloads down! Now......
2005 May 25
147 of 206 | 70-316 Exam: Passed. Got MCAD. -
So yesterday I passed 70-316 exam ("Developing and Implementing Windows-based Applications with Microsoft Visual C# .NET and Microsoft Visual Studio .NET"). Slack preparation during a week, bad-surprizingly too many questions on darned DataSets, but anyway I got 900 out of 1000. Now that I passed these three exams (70-315, 70-316 and 70-320) I should reach MCAD certification status which I wanted.
Hey, I passed 4 certification exams during last 5 months (3 for Microsoft and one for IBM) and not a single one before in my life. Should be some sort of psychological compensation effect. That was fun actually, but I better stop now. Actually I`m going to take other two exams to reach MC......
2005 May 23
148 of 206 | A Cry for Help (AKA, Implementing a XML Schema Provider) -
I`ve been having a lot of fun playing around with all the new goop in the .NET Framework
2.0 recently. Although my focus has been mostly on what`s new in the ASMX stack, I`ve
also been looking at XML serialization.
As part of my demo code for TechEd 2005, I`ll be showing how to implement the interface, System.Xml.Serialization.IXmlSerializable for
a type. This interface allows you to control the XML serialization/deserialization
process in a streaming context. Also, I`ll be showing how to implement an XML schema
provider. An XML schema provider is basically a method you delegate that controls
how your schema will look when it`s generated by tools like wsdl.exe.
......
149 of 206 | A Cry for Help (AKA, Implementing a XML Schema Provider) -
I`ve been having a lot of fun playing around with all the new goop in the .NET Framework
2.0 recently. Although my focus has been mostly on what`s new in the ASMX stack, I`ve
also been looking at XML serialization.
As part of my demo code for TechEd 2005, I`ll be showing how to implement the interface, System.Xml.Serialization.IXmlSerializable for
a type. This interface allows you to control the XML serialization/deserialization
process in a streaming context. Also, I`ll be showing how to implement an XML schema
provider. An XML schema provider is basically a method you delegate that controls
how your schema will look when it`s generated by tools like wsdl.exe.
......
150 of 206 | Ode to the System.Xml.Serialization.Advanced.SchemaImporterExtension Class -
Back in May 2004, Daniel Cazzulino - XML
wonk of the .NET blogosphere - published an article on MSDN entitled,
"Code
Generation in the .NET Framework Using XML Schema". In his article, he described
how one could extend xsd.exe to support dynamic code generation when processing XML
Schema. The purpose was to support the scenario where a developer could customize
the code generated for schema type structures. In my opinion, this solution provided
two benefits: (1) it provided control over the code generation process and, in turn,
(2) resolved the "loose" type map inferred by the .NET Framework. Personally speaking,
I can recall numerous occasions when the .NET F......