Reference of namespaces in OData

This post is a simple overview of namespaces you will run into when working with OData in the ATOM format. The list is not comprehensive, but you can get pretty far with it. http://www.w3.org/2005/AtomThis is the Atom namespace, defined in RFC 4287. It’s used for all “regular” ATOM things like entry, feed, link, content, etc….

1

Testing with XPathNavigator.Evaluate

Continuing from yesterday’s post, we’ll use XPathNavigator.Evaluate to sketch some helper functions that can be used to test components. For example, if we’re testing the results of a transformation or of some custom XML from a REST-ful service, we would probably want to make sure that some elements are where they’re supposed to be and…

0

Using XPathNavigator.Evaluate

Today I simply want to call out a somewhat obscure but very useful method: XPathNavigator.Evaluate. Many users of XML components are familiar with APIs such as SelectNodes or SelectSingleNodes. These are declared on the XmlNode class, and are thus available in its subclasses, for example XmlDocument and XmlElement. What may not be obvious is that…

1

InfoPath and SharePoint = sophisticated automation without code

Today I want to talk about how InfoPath and SharePoint allow non-developers to develop some very sophisticated systems. Someone I know was just stepping into a new job, a startup-like organization currently in the process of defining many of their internal business processes. In particular, the process the new person was in charge of was…

0

Layering enumerators

Now that I’ve touched upon XmlReader and how it can be used to stream data while allowing clean layering at the same time, I want to touch on the layer-able interface by excellence in the .NET Framework: IEnumerable<T>. You may have also seen the term ‘composing’ enumerables, but I tend to think of composing them as being…

0

Catching streaming exceptions with streaming readers

About two years ago, I put up a post discussing how exceptions are streamed in WCF Data Services (called ADO.NET Data Services at the time). Today I want to continue from yesterday’s post and discuss how the client implements support for this, but first a quick note. I’d like to make sure I clarify what I…

0

Layering XML readers

If you’ve spent any time looking at the new Open Data Protocol Client Libraries on CodePlex, you may have run into the internal XmlWrappingReader class. I’ll look into why this was a useful thing to have and what important OData processing aspect it helps with in the future, but for today I want to touch…

0

Add an attribute to an MSXML node

This question came up in the forums, and I thought it was worth blogging about because there are a number of considerations “off to the side”. The original question was whether it’s possible to add an attribute to an IXMLDOMNode, without having to downcast to an IXMLDOMElement. The straightforward answer is yes, you can: function…

0

DataSet does not validate XML Schema (XSD)

If you’re working with the DataSet class and loading and saving data in XML format, you may have run into a bit of a surprise. Even when you specifically read an XSD schema into your DataSet, when you load data into it, it seems that validation doesn’t work – you’re still able to pass in…

1

Moving XML nodes from one document to another

Today’s topic might be of interest for developers that work both in native and managed code, or who are transitioning from one to another. Moving XML nodes from one document to another is a common operation when you’re merging content, for example, or when a piece of code produces a standalone document that you want…

0