Aside from standard things like using well-formed XML, I have three rules which I think will smooth your use of XML in your applications. 1. Use an XML Schema Always define a schema for your XML document, using XSD and make sure your code is validating against it. Most (half)decent XML libraries will validate against … Continue reading Top Three Rules for XML
Tag: XPath
Using XPath with a default namespace in .NET 2.0
I have recently been writing an assembly which facilitates automatic deployment of K2.Net 2003 workflows. The assembly reads in a configuration file and deploys the workflows as specified in the configuration file. Also, rather than writing any custom code to validate the XML, I decided to use an XML Schema Definition, mainly because it saves … Continue reading Using XPath with a default namespace in .NET 2.0