Understanding XML Schema Sets in the XSD Designer

We have recently blogged about the new XML Schema Designer and the various views over schemas offered by it. We visit here the concept of schema sets, which are actually the central organizing concept around what is shown in the designer for a buffer in Visual Studio for which we have XML Schema information (be…

1

LINQ to XSD now available on CodePlex

We are happy to announce that we are releasing the sources for LINQ to XSD on CodePlex  at http://linqtoxsd.codeplex.com. LINQ to XSD allows you to program with strongly-typed classes  based on an XSD schema and was previously released on MSDN as an alpha  preview.   We have recently received  a  number of requests from customers…

4

Stylesheet import tree in the XSLT Debugger

Complex XSLT stylesheets often contain several include and/or imports instructions. VS XML Editor has very limited support for such scenarios. (Most noticeable it lacks the concept of “primary stylesheet”.)   In the XSLT Debugging session you may need to put breakpoint in the template that is defined in one of the referenced files and VS…

3

XML and Languages

I’ve written in the past about XML and languages, and why you might be interested in being aware of the language associated with text. Text with no language is just not quite there Impact of text language on WPF  Text, language and sorting For dealing with languages, xml:lang is your friend, as you can tell from…

2

XmlSchemaSet Thread Safety

Here’s a good word of warning: even if an object “feels” read-only because you’re not calling code to modify it, if it’s not documented as safe for use from multiple threads, then you shouldn’t risk it. As an example, let’s look at XmlSchema and XmlSchemaSet. Initializing these has a cost associated with it, and so…

3

Converting from XmlDocument to XDocument

Converting from XmlDocument to XDocument has a number of benefits, including the ability to use LINQ to XML, use a much cleaner object model, get better name handling with XName and being able to use functional constructors. However, there are a lot of XmlDocuments out there, so what is the best way to convert a…

1

Hotfix for Visual Studio hang when opening Web project from a remote site

Under certain conditions opening Web projects from remote sites may become very slow. We’ve seen quite a few ‘hang’ reports submitted via ‘Send Information to Microsoft’ feedback (aka Dr. Watson). The reason is that sometimes XML editor (which is used when you edit web.config) may begin walking remote Web site file structure looking for XML schema…

1

MSXML4 SP3 Is Available Now!

Today, we officially released MSXML4.0 Service Pack 3 (SP3) on the Microsoft Download Center as a stand-alone installer in multiple languages. MSXML4.0 SP3 is a complete replacement of MSXML4.0, MSXML4.0 SP1 and MSXML4.0 SP2 and contains a number of bug fixes to enhance security and reliability. Approximately nine years ago, MSXML4.0 was released to the…

6

XML Schema Designer – Content Model View

The new XML Schema Designer (see this previous blog post for a d/l location to the CTP) offers four views over XML Schema Sets: XML Schema Explorer, Graph View, Content Model View, and Start View.  This entry will focus on the Content Model View.  The Content Model View provides a detailed view of individual nodes…

2

Equality Semantics of LINQ to XML Trees

In certain scenarios, it is important to be able to compare two XML trees for equivalence.  For example, if you are writing a web service that serves results of queries, and you want to cache query results so that duplicate queries use previously cached results instead of always accessing the underlying database.  However, the senders…

1