Tag | XML Posts

This is somewhat mildly embarrasing, but I just went from version 7.02 of SlickEdit to SlickEdit 2008 which is version 13.0 -- wow...6 versions behind! I've been using SlickEdit since (I think) version 1.0 when Brief took a dump in Windows 98 Beta and my boss told me to order two copies of this new editor. So why haven't I upgraded? Well... SlickEdit is almost TOO good at what it does. SlickEdit is (for it's editing functions anyway) essentially a big macro editor. They ship it with a ton of macros, ...
It is difficult to introduce both novice and experienced procedural programmers to the anthropomorphic perspective necessary for object-oriented design. Wherever possible we wish to illustrate the use of functional programming in the web domain. In this domain, expressions that involve mirrors of HTML and XML elements are the key constituents. We make new members part of the team through close training and interaction. Expressions use VB.NET syntax and are technically very similar to Excel formulas, ...
I have a Factory class that creates number of classes to handle different XML responses, returned by Web Service. All of them are derived from some base class GwsResponse and created depending on the top name element name. Previously factory and all created object classes were located in the same DLL. Now we need to increase number of handled responses, but we want new classes to create in separate extension DLL. We are going to use Activator.CreateInstance to dynamically load the concrete class ...
I had a comment recently on one of my older posts that I did about XMLA which asked about listing cubes in a database and whether the cube is processed and it's size. I have posted about a number of different ways of doing this over the last few years, but I thought I would use this opportunity to consolidate a list all the various ways of doing this that I could think of. Under the covers all these techniques are ultimately issuing some sort of XMLA discover against the SSAS database and returning ...
Ive been doing a little research recently about the B2B capabilities of BizTalk. Based on the content currently available I thought it might be useful to have a B2B 101 style article with some background information and links to useful resources. so here goes! Background BizTalk is an integration and business process platform which can help you develop different kinds of solutions (BPM, EAI, ESB etc). One of the key scenarios which BizTalk allows you to develop solutions for is B2B. BizTalk can act ...
This blog post is inspired by a project I've been working on recently. One of the project requirements is writing all the stored procedures and user-defined functions in CLR integration. Although I don't intent to give you the overview of CLR integration in this article, it's not a bad idea to go over the benefits you get from using CLR integration. Stored procedures and user-defined functions/types/aggregates authored in managed code compiles into native code prior to execution, and you can achieve ...
Two of my latest books just hit the market - Professional C# 2008 and Professional Visual Basic 2008, both from Wrox. The back cover of the C# book is as follows: Updated for .NET 3.5 and Visual Studio® 2008, this book is the ultimate guide to C# 2008 and its environment. Beginning with a look into the architecture and methodology of .NET, the team of superlative authors explains why the C# language cannot be viewed in isolation, but rather, must be considered in parallel with the .NET Framework. ...
WCF uses by default the DataContractSerializer found in System.Runtime.Serialization namespace to serialize an object to XML and back to an object. This is needed to transfer the data in the object through the communication channel as part of the SOAP packet. The DataContractSerializer supports version tolerance which can be very helpful when versions of WCF Clients are not aligned with the versions of their needed WCF Services. It’s not always possible to upgrade all the clients at once when you ...
You have to love the xml type in SQL Server 2005. Here's a simple way I found to make use of it: You can audit all the object/schema changes to the database with a simple database-level trigger. First, create a very simple table (inside a schema I name 'Audit'): CREATE TABLE [Audit].[Objects]( [EventID] [int] IDENTITY(1,1) NOT NULL, [EventData] [xml] NULL, PRIMARY KEY CLUSTERED ( [EventID] ASC ) WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY] ) ON [PRIMARY] Then, the trigger: CREATE TRIGGER [Trig_AuditObjects] ...
WCF: values disappeared in response: derived classes and serialization/deserialization order error This is a second article about errors with getting data from the web-services. "WCF: Deserialization error, the response elements disappeared" ( http://geekswithblogs.net/L... ) First time the whole elements disappeared from the response messages without any errors. Now only values of the elements disappeared. ...
Introduction So I find myself working in a BizTalk world these days. So most of what I am dealing with is WCF, SOA, bus, etc. related. However, there are times when I need to write an assembly that BizTalk can use to communicate with the outside world. The best way for BizTalk to interact with my assembly is with XmlDocuments that conform to an strongly typed XSD generated schema. After a bit of research across many sites, several colleagues interacting with one another over this issue, and finally ...
John Stockton with a UserControl bug, Sunil Urs with a Visifire demo, JesseLiberty with a UserControl Tutorial and Slides from Atlantic City, Brad Abrams with FlickR/SL example, Michael Palermo on unsing the MouseWheel, Mike Taulty on Getting to ListBoxItems and Video Markers, and Daniel Moth on File Dialogs. From SilverlightCream.com: Silverlight 2 Beta 1 Problem with Animations on User Controls John Stockton reported this to The Silverlight Team. Apparently he worked his way into it and couldn't ...
If you point XSD.exe at one of the ESB itinerary on-ramps, it will produce some ugly DTO classes for the itinerary, services and resolvers, and a proxy for the on-ramp service. You can use the DTO classes directly to build the itinerary object graph, but it's not intuitive and the results aren't pretty. It also ties you in to using the ESB Guidance solution, whereas it would be nice to abstract that away and construct a generic itinerary. In the set of simple samples - which I'll put on CodePlex ...
It is quite easy to say that the IT world is a diverse world. For instance, it is quite rare that you would find an enterprise that is built upon a single vendor’s technology stack. Instead, you most likely find that a company is made up of a patchwork of systems. Some of the systems are based upon UNIX, some Microsoft, and some others (sometimes items that are considered legacy). A company’s software and data repositories are something that grows quite organically over time. Usually you will find ...
Employee Info Starter Kit is a starter kit, which includes very simple user requirements, where we can create, read, update ad delete (crud) the employee info of a company. The primary purpose of this starter kit is, to provide a solid guideline with respect to building enterprise level projects, by utilizing new asp.net 2.0 and sql server 2005 features, as well as latest best coding practices. The starter kit includes several cases where we can perform multi-table joining and/or write operations. ...
I'm sensitive to the fact that not everyone is an MVP. If you're reading this, and you aren't then go back and find some of my posts that talk about my travails. 3 years ago at this very time, I was out of work and having trouble finding work. Life has some funny twists, and today ends my first MVP Summit. Because I'm taking vacation time and paying my own flight, etc.. I'm leaving tonight and will get to Phx about 11:30, and be back on the 101 heading to work tomorrow morning at 7 :) This was an ...
Given the time (nearly 2 days!) it's taken me to get to the bottom of this I thought it worthy of a blog post hopefully saving someone the hours of frustration i've just been through. I know my FTP code works very well, around 50 different customer sites with very few support calls confirm this, on this one installation however my xml documents would not arrive at the web server. My logging code confirmed that we were connecting to the server ok, successfully managing to cwd to the appropriate directory ...
This article is for Silverlight 2 beta 1 There is a common misconception that User Controls in Silverlight must be placed in the assembly from which they are referenced. However, this is not true, you can have user controls in an assembly and use them from another assembly. This is not a direct process, however, so let's see how to proceed: Preparing the control Create a new Silverlight 2 application in Visual Studio. In this example, we'll name this application "UserControlsPacking". For this first ...
Today was day 2 of the Global MVP Summit. We spent it in Redmond, on the Microsoft Campus. For my part I spent the whole day in the RIA (pronounced "reee-ya") track, focussed on Silverlight (mostly) and WPF (a little). I won't say much about it for two reasons: Either the code we saw was very similar to the one shown in Vegas one month ago, or I don't have the right to talk about it because of NDA Generally speaking, it's safe to say that really great things are going to be built on top of Silverlight. ...
Update: This tool seems to be only relevant with InfoPath 2003. A co-worker pointed out that due to customer pains around a the lack of a feature like this, in InfoPath 2007 you can right-click a node in the data source and choose "Copy XPath". Cool! Thanks to Scott Heim for pointing this out. So, I love making tools. One-off things that process something. Batch files that lessen monotony. Sexy little WinForm apps for displaying data. XSL transformations that regurgitate and pre-process XML. My latest ...
I had a surprise recently about the behaviour of the Table Looping and Looping functoids that I wasn't expecting and involves when the scripting functoid is evaluated. For those of you only interested in the comparison... In the following map, the highlighted scripting functoid will be evaluated once per Client element. In the following map, the highlighted scripting functoid will be evaluated once per element in the Client element. In other words, for every Client element, the scripting functoid ...
I'm in a few VB.NET sessions this morning here at the Microsoft campus. We went through a bit of an overview of where the Visual Studio language team is at, where things are moving, and where VB.NET fits into that picture. Donald decided to infiltrate and see what was going on with the non-semicolon kids. He's now become a convert and ran out of the room tearing off his badge and saying "I can't believe I've been so blinded!" I've been sitting with Chris Williams and Jason Olson... The first demo ...
Continuing the series on recommendations for testing with BizTalk this post will focus on how to effectively test custom adapters developed by your team and for use within a BizTalk solution. As most of you will be aware adapter development is probably one of the most difficult development tasks in the BizTalk arena because it is often easy to get the functionality of the adapter to work, but once you put it in a production like situation you will often discover a whole new set of problems. Based ...
After doing some stuff recently with the Pipeline Component Test Library by Tomas Restrepo I had a bit of an idea on a different way this library can help you during the development process. On the back of this idea I have created a small tool on codeplex which will help you create sample flat file messages. The rest of this article will describe how this tool can help. Get the tool here: http://www.codeplex.com/Biz... Get Pipeline Test Library Here: http://www.winterdom.com/we... ...
The Enterprise Library 4 CTP and the feature list can be found at the Codeplex Home page. General Features of Entlib 4 (Excerpt from Release Notes) · Enterprise Library 4.0 takes advantage of the improved features in the .NET WMI 2.0 API to provide update capability for configuration exposed through the Manageable Configuration Source. Objects defined in the Enterprise Library configuration, such as databases, trace listeners, and cache backing stores, are exposed through WMI as a set of classes ...
One Line Statement Microsoft's IoC container Unity, hosted on CodePlex as an Application Block for Enterprise Library is now released in ver. 1.0. Introduction If you do not know what IoC is, you might want to check sample articles: The semi standard Dependency Injection (DI) and Inversion of Control (IoC) article by Martin Fowler (Tip, read as much as you can from this guy's writings - and thank me for suggesting it) [Warning: Not .NET Specific] Understanding IoC Container (Simple "down to code ...
One of the things Microsoft introduced with BizTalk 2006 is failed message routing. Prior to this, developers had to come up with custom solutions to remove failed messages from the messagebox to prevent them from accumulating. Now all one has to do is enable routing for failed messages on the receive ports and create an orchestration to consume these failed messages. When a message comes into the messagebox, BizTalk tries to find a matching subscription based on the context properties of the message. ...
Very interesting thread: "Am I wrong about WCF usage?" http://forums.microsoft.com... There are the complains about WCF. Why Microsoft looks at the future only with loose-coupled WCF and depreciates the Remoting technology? My experience is from the BizTalk side. It's interesting that we have similar issues. For example, using contracts in the current formats tends to be rigid. What I need in the many cases from the data/message contracts is ...
If we need to pass and process ONE row to the SQL store proc, it is pretty easy. Just map the XML message (inside BizTalk) elements to the service SQL request schema elements. This schema is created by SQL Port wizard when we point it to the SQL store proc. More interesting problem is to pass several rows to the SQL Send port. Here I use the SQL terminology. In Xml terms it means the Xml node with MaxOccurs=unbounded in the Xml document. (We can use the updategramm, but you can see this approach ...
I was stopped by the words "Contract-Driven Messaging" in the article "An XML Guru's Guide to BizTalk Server 2004, Part I" by Aaron Skonnard ("Contract-Driven Messaging" http://msdn.microsoft.com/m... ) What does in mean the "Contract-driven" in the BizTalk? The contract in the BizTalk means the same thing as in WCF, the signatures of the objects (documents, messages). But not only the the objects with entry data but the with context data. For example, the addresses ...
I was just about to /mywrists today when I found this post. I wanted to post to this blog to say thanks to SteveX for posting it. I was trying to read a web.sitemap file in as an XML doc and work with it. I was screaming at my screen that I KNEW there were nodes matching my XPath (//siteMapNode) but it always returned 0 nodes. Thanks again to SteveX for savin' my life. :0) ~L ...
When was .NET announced? Bill Gates delivered a keynote at Forum 2000, held June 22, 2000, outlining the .NET 'vision'. The July 2000 PDC had a number of sessions on .NET technology, and delegates were given CDs containing a pre-release version of the .NET framework/SDK and Visual Studio.NET. When was the first version of .NET released? The final version of the 1.0 SDK and runtime was made publicly available around 6pm PST on 15-Jan-2002. At the same time, the final version of Visual Studio.NET was ...
What is new in Visual Studio 2008 A quick list of some of the new features are: Multi-Targeting support Web Designer and CSS support ASP.NET AJAX and JavaScript support Project Designer Data LINQ – Language Integrated Query The features listed and explained in this paper are not complete and this document intends to give you a forehand to start off with VS 2008. 1. Multi-Targeting Support Earlier, each Visual Studio release only supported a specific version of the .NET Framework. For example, VS ...
I've been working on various forms of displaying status messages from enums, and here's the latest preferred iteration of how to do this. Regurgitated and tweaked from WayneHartman.com. public enum XmlValidationResult { [Description("Success.")] Success, [Description("Could not load file.")] FileLoadError, [Description("Could not load schema.")] SchemaLoadError, [Description("Form XML did not pass schema validation.")] SchemaError } private string GetEnumDescription(Enum value) { // Get the Description ...
Stefan Lieser has posted a great preview of a plugin he's working on for Resharper for working with NHibernate mapping files. I've installed it and like it alot already. Anything that makes it easer to work with XML is a good thing in my book! Features he has implemented so far are: Name and type of mapped class is verified Id name and type is verified Property names and types are verified (not the access attribute!) many-to-one and one-to-one names and types are verified Component names and types ...
This blog has moved to http://www.douglasmarsh.net You will be redirected in 10 seconds. Here is an issue with the BizTalk mapper that resulted in a little hair loss recently. I was working on a fairly complex BizTalk map that was using scripting functiods to reference functions in an pre-existing .NET assembly. In a couple of instances, the code in the Helper assembly wasn't quite what needed, so I switched from using the Helper Class function to using inline C#. Once I changed the functiod to use ...
In our previous tutorial we have seen how we can use XML axis properties to consume XML returned from a web service in Silverlight applications, in this example however we will look at how XML Literals and Embedded Expressions can be used to easily write fast and efficient Web Services. *Note XML Literals and Embedded Expression are Visual Basic 9 Exclusive features you might need Visual Studio 2008 and .NET Framework 3.5 installed. XML Literals and Embedded Expression are not limited to Silverlight/WPF ...
Continuing the series on testing in BizTalk projects this article is about testing orchestrations. From projects I have seen or through speaking to other developers I have come across the following techniques for testing orchestrations: 1. Testing by debugging them in HAT Im amazed how many times this comes up when I have interviewed people. Ok first thing Debugging != Testing. Secondly the problem here is the "tests" are manual and there for not easily repeatable and prone to error. 2. Manual Testing ...
If you are an ASP.NET developer or want to become one, there are numerous books available that talk about the ASP.NET framework and/or how to build web sites using ASP.NET. Pact Publishing has a book that focuses specifically on the data presentation controls that are available in ASP.NET, including ASP.NET 3.5 called ASP.NET Data Presentation Controls Essentials by Joydip Kanjilal. The book provides a good introduction to the basics of how data binding in ASP.NET works and then expands on that introduction ...
In my previous post about Unity and IoC containers, I made note of some changes in the latest drop of the Unity Application Block. As Grigori Melnik, the PM of the Unity and Enterprise Library team noted, Unity should be released in its final form on April 7th, so stay tuned. In the mean time, the latest drop of Unity was on March 24th, so go ahead and it pick it up. Configuration Changes As I noted from above, the public APIs really haven't changed all that much. Instead, most of the efforts recently ...
I realize it's been a while since my last post on Inversion of Control containers and looking at Unity as one of them. Since that time, Scott Hanselman linked to some of the comparisons that I did for IoC containers here. I'll be the first to admit that the look was a bit naive, but to get you all interested in looking at IoC container and how they can improve your applications. It was suggested here that my posts weren't a complete comparison, although in my previous posts I covered a lot of those ...
There might be a few samples of working with web services in Silverlight but I promise I'll keep you interested with VB.NET exclusive feature VB Literals. This is going to open a whole new way of looking and working with XML and Web Services. *Note: Don't attempt to do everything I do in this tutorial in C# (espcially consuming WebService in Silverlight 2) because you simply can't, C# or any other language doesn't have this feature, so stick to VB.NET for consuming you can use C# for the rest, I'll ...
Very recently I wrote an application where I had to deal with DataSet from a Web Service. Please note, I have no control on the Web Service and I ended up writing a small function which converts DataTable to JSON. I understand I haven't gain anything on the web traffic, but it surely simplified my JavaScript programming. Let me go through what I did Step 1. Extract the XML Schema. DataTable has two handy methods to extract Xml and Xml Schema. I extracted the Xml Schema to be able to generate a C# ...
Time for another adventure in F#, covering some of the basics of functional programming and F# in particular. This is intended at looking not only at the language, but the implementation as it regards to C#. Where We Are Before we begin today, let's catch up to where we are today: Part 1 - Basic functional programming Part 2 - Currying and Tuples Part 3 - Scope, Recursion and Anonymous Functions Part 4 - History of F#, Operators and Lists Part 5 - Pattern Matching So, today we'll be covering the ...
There are some things that you just can't do with the native implementation of xsl. One alternative is to use the msxml:script block. The problem I am running into is the different implementations of the msxml:script in MSXML and System.Xml.Xsl . In MSXML vbscript is supported while System.Xml.Xsl does not support vbscript. System.Xml.Xsl supports C#,VB.Net, JScript, java, and other languages. The documentation is "XSLT Stylesheet Scripting Using <msxsl:script>" So if your xsl sheets were designed ...
Another month and another highly successful DC ALT.NET meeting. I want to thank Kevin Hegg for hosting the event as he was a very gracious host. We had a better than expected turnout which was very cool. It's good to associate names to faces after chatting, emailing and whatnot. I also want to thank Phil McMillan for stepping up to the plate at the last moment to backfill for the lack of the scheduled speaker. It's even more refreshing to not have any Death By PowerPoint (DBPPT) (TM). I appreciate ...
This has been pooled together from a number of resources: What is ASP.NET? Microsoft ASP.NET is a server side technology that enables programmers to build dynamic Web sites, web applications, and XML Web services. It is a part of the .NET based environment and is built on the Common Language Runtime (CLR) . So programmers can write ASP.NET code using any .NET compatible language. What are the differences between ASP.NET 1.1 and ASP.NET 2.0? A comparison chart containing the differences between ASP.NET ...
As I've mentioned in recent posts such as here, here and here, I've been very interested in Domain Specific Languages (DSLs), especially with regards to F# and the DLR as well. I recently re-listened to Software Engineering Radio Episode 52 with Obie Fernandez discussing DSLs in Ruby. One of the things that attracted me to Ruby for this was the flexibility of the syntax for closures, mixins, etc. Anyhow, it's a good listen and if you're new to the subject, you should give it a go. Also, there is ...
Time for another adventure in F#, covering the 101 level basics of the language and why I think it's useful and how it can even help your C# as well. This time, I want to spend a good deal of time on pattern matching and a few other topics. Where We Are Before we begin today, let's catch up to where we are today: Part 1 - Basic functional programming Part 2 - Currying and Tuples Part 3 - Scope, Recursion and Anonymous Functions Part 4 - History of F#, Operators and Lists So, today, like I mentioned ...

C# Different XML Extraction Techniques

http://developer.yahoo.com/dotnet/howto-xml_cs.html