November 5, 2006

XPath, apostrophes and quotes

When working with XPath be it in XSLT or C# or Javascript, apostrophes and quotes in string literals is the most annoying thing that drives people crazy. Classical example is selections like "foo[bar="Tom's BBQ"]. This one actually can be written correctly as source.selectNodes("foo[bar=\"Tom's BBQ\"]"), but what if your string is ...

October 10, 2005

How to insert a code snippet using a shortcut in XML editor of Visual Studio 2005

If you have tried to create or use code snippets in any of XML languages in Visual Studio 2005 you probably stumbled across the issue of using shortcuts. In C# or VB you just type code snippet's shortcut name and press Tab, it just works. In XML it doesn't ...

September 22, 2005

6 ways of associating XML Schema with XML document in VS 2005

Hmm, according to Stan Kitsis there is at least 6 ways to associate an XML Schema with an XML document in Visual Studio 2005: 1. Schemas Property on your XML document 2. Inline inside your XML document 3. xsi:schemaLocation or xsi:noNamespaceSchemaLocation attributes in your XML document 4. Open Document Window ...

May 3, 2005

Changing value of an XSLT variable (don't laugh!)

Can one change a value of a variable in XSLT? Unexpected answer - yes, when debugging XSLT in Visual Studio 2005 Beta2. I'm not sure even if it's a bug. Actually it can be quite useful when debugging to be able to change some values, right? Do other XSLT debuggers ...

XML Tools in Visual Studio 2005 video from the Channel 9

Finally something interesting from the Channel 9: Ken Levy shows new cool XML tools in Visual Studio 2005 - improved XML editor, XML Intellisense, schemas, XML code snippets, XSLT editing and debugging etc etc etc. 41 min video, still worth watching. ...