March 2009 - Posts
Got bit by this a few moments ago... Thankfully it didn't take long, but probably because this was fairly isolated in my case; I could imagine getting stuck for a bit longer if this were a larger piece of code. Anyway, I was running method that goes through
Read More...
Had a great time there, met a lot of great folks, and now I've got a bunch of ideas for posts that people will hopefully find useful - I'll work through the list as quickly as I can, but please bear with me while I catch up with my regular workflow. :)
Read More...
I've already run across a number of developers who aren't aware of this, and it's too good to pass up, so here goes. Internet Explorer 8 comes with built-in developer tools. That simple, that nice. Wherever IE8 is installed, you can select Tools | Developer
Read More...
Next Monday I'll be at DevConnections in Orlando, talking about Velocity (Microsoft Project Code Named "Velocity", if you like formality). It's going to be a bit of a challenge to sum up all that awesomeness into a single session, but I promise I'll do
Read More...
The announcement is available here . There's a video showing how to get started, a FAQ, and a link to give feedback and ask questions, so no need to wait - you can play with the future today!
Read More...
Really just a variation based on Kris' comment on my previous XmlDocument to XDocument conversion post. So if we like the reader option, what is a convenient way of encapsulating that? Well C# 3 extension methods aren't too bad. Here is one way of writing
Read More...
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. In particular, I'd like to talk about XmlSchema
Read More...
This question came up in the forums a little while ago, and I thought it might be interesting to do some comparisons. I first came up with a few ways of turning an XmlDocument into an XDocument. private static XDocument DocumentToXDocument( XmlDocument
Read More...
I frequently find myself needing to set a 'countdown timer'-type of thing on my computer. A typical use for it is to remind myself that I need to stop working and go do something - otherwise I'll be too focused to notice the passage of time. So, I've
Read More...
I've written in the past about XML & languages, and why you might be interested in being aware of the language associated with text. xml:lang is your friend, as you can tell from these older posts. Something that is a bit special about xml:lang is
Read More...
As recently announced , early preview bits are available for Astoria that provide synchronization capabilities, which allow you to create applications that work offline (among other things). Note that this announcement was made close to the "1.5" made
Read More...
Late last week, MSXML4 SP3 was made available to the world. Here are some highlights. Improved security and reliability. Kind of like MSXML6! No further SPs planned. Migrate to MSXML6! MSXML4 SP2 supports ends in November of this year. Migrate to MSXML6!
Read More...
The PreserveWhitespace property is sometimes misunderstood. As this MSDN page describes, this affects non-significant whitespace nodes. Significant whitespace is always preserved. So what is significant whitespace? The XmlSignificantWhitespace explains:
Read More...
The XElement class has a very nice capability that is not very well known - the ability to by typecasted to different types to read data from within. For example, if I have an XElement instance element , I can write (int)element , and the content of the
Read More...
This could be a gotcha, but cloning an XmlDocument doesn't quite make a completely independent copy. The CloneNode method is intended in general to be a way of creating copies of XML nodes under the same XmlDocument scope / owner XmlDocument. Cloning
Read More...
If you haven't seen this yet, ADO.NET Data Services is announcing an upcoming CTP for the v1.5 functionality over here . And if you're wondering about what "1.5" means, yes, that's explained in the post. Some of the goodies that we've wanted for are in:
Read More...
Edward discusses how to set an integer in the MSXML APIs in this thread . I wanted to provide the snippet of code necessary to do this on an attribute, using the very awesome wrappers generated by the Visual C++ #import directive. The catch is that becausae
Read More...