Tag | XML Posts

Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; ...
Generic xmlTextReader Original article: http://www.dotnetspider.com... ////-----------------------... ////convert XML string to MemoryStream ////-----------------------... MemoryStream memoryStream = new MemoryStream(); byte[] data = Encoding.Unicode.GetBytes(s... memoryStream.Write(data, 0, data.Length); memoryStream.Position = 0; ////-----------------------... ...
Original Article: http://bytes.com/forum/thre... Is there a simple way to indent xml with dotnet? SQL Server returns a long xml string that is hard > to read.[/color] XmlReader r = new XmlTextReader(new StringReader(myXML)); StringWriter sw = new StringWriter(); XmlTextWriter w = new XmlTextWriter(sw); w.Formatting = Formatting.Indented; while (r.Read()) w.WriteNode(r, false); w.Close(); r.Close(); Console.WriteLine(sw.ToStri... -- Oleg Tkachenko [XML MVP] http://blog.tkachenko.com ...
I've been using StructureMap for my dependency injection container for a little while now and I wanted to discover all the ways (I could find) to register my dependencies. Here's is what I came up with (If you know of more or see something wrong drop me a comment): I've got a project with a console app, a project for my dependencies (memento and concrete types), and a project that does my dependency registration (when I do it in code). My console app just gets the default concrete type first, then ...
It is important to note that the adaptability of interfaces is only one facet that dynamic systems must deal with. Wherever possible I 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. Microsoft has confirmed that socket support and a rich control set will be added in a future release of Silverlight. Software reverse engineering is done to retrieve the source code of a program ...
Advanced Transact-SQL Querying, Programming and Tuning for SQL Server 2000 & 2005 When: November 3-7, 2008 Where: New Horizons of MN located in Edina MN (www.nhmn.com) Course Outline: http://www.nhmn.com/Courses... This course was developed by Itzik Ben-Gan, a mentor and one of the founders of Solid Quality Learning, and the author of Inside Microsoft SQL Server 2005: T-SQL Querying (MSPress, 2006) and Inside Microsoft SQL Server 2005: T-SQL Programming (MSPress, 2006). ...
I've alluded in the past that I got my start in computers because of games; I also ended up getting started in programming because of games. I happen to be a big fan of the WarCraft and StarCraft series produced by Blizzard Entertainment, and it was my association with (and desire to make a good website for!) a group of people on their gaming service called Battle.net that got me involved with programming, and that's where the "Fun" part of this comes from. I'm not sure where "Profit" comes into ...
SWIFT (Society for Worldwide Interbank Financial Telecommunication) is one of widely accepted way to do financial transaction between financial institutions. It has over 8,300 banking organizations, securities institutions and corporate customers in more than 208 countries. If you look at the SWIFT evolution in the market they cover overall market in financial institutions; from securities to cash to treasury, etc. And all of these communities have one common problem – Integration Problem. They are ...
Recently, I got called in to help a developer who had an issue where he was using the Infragistics HTMLWebEditor control to allow users to submit content. Many of the users copy and paste code from Word into the editor. For those in the web development industry we all know that Word's HTML is not your typical HTML. The issue the developer ended up having was that certain characters were being saved to the database and when passed back to the front end from his web service they were causing XML validation ...
I've been working on a project to process incoming Xml messages. Part of the process is to call some SOAP webmethods. The webservice was created by another developer so I'm limited to the changes I can make to it. The webservice webmethods are all primative so there are no complex classes generated by the WSDL wizard. I added the webservice to the project as a web reference. Then I created a port to the webservice in the orchestration. Now I have to map the incoming message to the web method request. ...
QuickCode.Net has a new free 2008 version. UPDATE: in a new release 3.0.6. it's possible to assign any shortcut key. In VS 2008 Customise keyboard I've selected command QuickCode2008.AddIn.Replace... and assigned a shortcut key Alt-Q. It uses <TAB> instead of previously assigned Alt-Q hotkey. <TAB> is consistent with standard VS snippets. If you press the TAB key after your QuickCode, e.g. tc<TAB> the QuickCode will expand. If the same pattern exists in snippets and QuickCode, ...
Article Source: http://geekswithblogs.net/m... I have often come across situations where I have been asked to look at a process (usually in BizTalk) where it isn’t quite running as the customer would like. I have decided to start a series of posts which I will call refactoring tales. These posts will discuss a the process implementation and the problems encountered along with it. I will then discuss the approach taken to improve things and what the benefits were. Background This particular ...
The Challenge Imagine a development shop that maintains 100 .Net solutions, each composed of multiple projects. Imagine roughly half of these being shared domain services or shared common libraries, the other half being end web applications servicing multiple large clients. Imagine any given project having the ability to reference classes/methods on any suitable re-usable service. Imagine trying to get a grip on it all - a great architectural paradise or a great architectural nightmare. Welcome to ...
I have an existing C# file, generated a long time ago from XSD definition. The XSD files were changed, and proxy class should be regenerated. I've tried to use XML Schema Definition Tool (Xsd.exe) to generate C# class, but it returned the error: "The datatype is missing". I've actually have two XSD files -outer and imported Thanks to the post: XSD.exe is kicking my butt, man...redux , it pointed me to specify all necessary files on the commandline. Note that name of generated file is combined from ...
I want to save html file generated by ASP.NET to PDF. I was pointed to itextsharp open source project. I found a few links, discussing how to do it: http://www.velocityreviews.... iTextSharp Tutorial Chapter 7: XML and (X)HTML iTextSharp Demo(asp.net 2.0):http://rubypdf.com/ite... introduces HtmlParser.Parse.(see the source code here) We tried to use it. HtmlParser.Parse does NOT throw any error , ...
Denislav Savkov on VSM, Mino with a SL PhotoGallery, Alex Golesh on app performance, Avi Pilosof with "War on Terrier", Michael Schwarz reports SL2B2 update, Alex Knight on VSM, Peter McGrattan on initialization via SL server control, Lee on DataGrids and ListBoxes, and David Anson on shrinking XAPs. Open notice to Tim Heuer, Brad Abrams, and Karen Corby just to name a few ... you should send email to xclusivesalman at yahoo dot com (Mashook Talpur - 26-167 cantt bazar, Karachi Sind, Pakistan) because ...
Fons Sonnemans with RollMenu, Frank LaVigne with Community Megaphone SL Map, Martin Mihaylov on LINQ to XML in SL2, John Stockton with What is Silverlight, and How to Learn it, Felix Corke on Designing a SL2B2 skin, Michael Washington with Silverlight Notepad, Michael Scherotter with IE8 Forward/back in SL2, Expression Blend Team resource links for VSM, and Tamir Khason on Actual Width/Height. Yes boys and girls, this is what happens when you take a weekend off from blogging ... so I'm posting this ...
In the top-level SharePoint list views I often order items by the "Last Updated" column. Corresponding xml fragment of the list schema.xml looks like <View BaseViewID="0" Type="HTML" ContentTypeID="0x012001">... <Query> <OrderBy> <FieldRef Name="DiscussionLastUpdated" Ascending="FALSE"> </FieldRef> </OrderBy> </Query> </View> When a SPList contains large number of items it is also vital to define "Last Updated" as indexed column to keep having good ...
I found this great article that tells you how to do testing for WCF services exposed as web services, especially REST services (like the ones we create in my company for the project I work on now). What’s the problem ? Typically, for HTTP GET services, you can just put a URL that matches the URI template of the service (the template of the URLs that call the service) in the browser, and simply see what comes back in the browser itself However, when you want to test a service with other HTTP verbs ...
Due to much frustration and lost time, I'll try to summarize in this post the "naming" conventions to be used when defining and/or referencing IDs (some of which are, in fact, GUIDs, and others contain GUIDs) in Sharepoint 2007. If you're thinking "what the heck?! aren't GUIDs always the same format?!" you're half-right: they should be, but not in sharepoint. So if you're a newbie to sharepoint 2007 (or wss 3.0) like me, the following tips regarding how element id's should be written might save you ...
[Source: http://geekswithblogs.net/E... The Enterprise Single Sign On database can function as a centralized configuration store, as well as an identity store, which is available to all BizTalk instances in a group, and also to custom .Net apps. For a clear explanation of the benefits and drawbacks of the EntSSO approach (and the alternative options), see Michael Stephenson's post Where do I store my custom configuration for a BizTalk solution. Here I'll look at overcoming some of the practical ...
One of the questions that came out of my TFS talk at the Magenic Technology Summit was: How do you go about customizing one of the existing templates provided for TFS, such as MSF Agile? We may want to add new types for Work Items, for example, or add new states that work items can be in. The easiest way to do this is through the Visual Studio Team System 2008 Team Foundation Server Power Tools. If you do not have the Power Tools installed, you can still do this by editing the XML that makes up the ...
Below is an idea how to improve SOAP exception handling in BizTalk to WCF communication. Let’s consider approach recommended in BizTalk SDK documentation (Catch Typed Fault Exception sample): Add custom WCF fault to the service contract and add corresponding exception handler in the BizTalk orchestration. In BizTalk orchestration add hander that expects System.Web.Services.Protoco... to catch any general SOAP exceptions This allows catching any custom WCF faults and handling them gracefully. ...
Five years ago, I wrote an article about creating a Catalog file for Windows CE 4.0. How time flies, and how the tools get better as we go. That article turned out to be 10 pages when printed; this one should be much shorter because the tools have become much better. What is the Catalog and why would we want to change it? The Catalog is a collection of components that can be added to your project. These components include OS features, like Internet Explorer, and Board Support Packages (BSP). If you ...
A byproduct of XAML’s expressivity and comprehensiveness is true separation of user interface and business logic. Because configuration files are XML documents, extending the integrated configuration system means extending the XML schema of the system, refer to Waterfall model. many programmers out there just change the behaviour of their program instead of improving the code. At the core of Spring.Net is the concept of Dependency Injection, otherwise known as Inversion of Control. At run time, XAML ...
I just surfed on this on the sharepoint forum so i decided to share It can save a lot of time though Getting Started Topics SharePoint Developer Introduction for .NET Developers http://www.microsoft.com/cl... Microsoft SharePoint Team Blog http://blogs.msdn.com/share... Troubleshooting Topics Problem Area: Debugging and Troubleshooting Problem When developing against the SharePoint object model in an application outside of IIS (service, console, Winforms etc..) on a machine ...
Well today Chris and I decided that MT had reached another milestone of functionality. After having several people review our efforts we have tried to take a lot of the feedback into the system and really polish it up. This release shows a lot of improvement towards embracing the IoC container quite a bit more. I think that it still has some rough edges around it, but it is an excellent start that should help us to now see where we can further embrace it. We cleaned up the subscriptions quite a bit, ...
It is hard to really get a grasp of how much control you are given in Sharepoint. Microsoft touts its easy to use web UI and webparts for the end user, but this is just the icing on the cake. It is the ingredients that make it special. Many of those ingredients are exposed in different ways in Sharepoint. There are features, event handlers, web services, and enough XML to make your head explode. These are the parts that make it an exciting development platform. I was able to get an amazing look at ...
Code debugging is one of the most important parts of any development life cycle because it gives you the technique to find the problem and how to resolve it. When we talk about the visual debugging Visual Studio has tremendous potential in the term visual debugging features in the form of DataTips. DataTips tool provide a handy way to view information about your variables in visual studio during debugging only. In old versions of Visual Studio DataTips were limited in the amount of the information ...
If you store BizTalk application settings in Enterprise SSO database and adapt continuous integration you'll find this MS Build task useful. DeploySSOConfigStore task reads settings from XML configuration file and saves them to the SSO database. The XML can be created (exported) using Richard Seroter's SSO tool which I modified to support this operation. So, if you change your configuration settings, just update XML file in the source control and build process will pick it up and propagate changes ...
I've added some codegen scripts to the ESBSimpleSamples project, and a simple UI which runs the scripts against metadata it retrieves from a WSDL endpoint. The codegen templates were built for a custom tool which we use (not public I'm afraid), and then stripped down for the "ServiceClient.Generator" tool, so the structure might look a bit odd, but they do the following jobs: Extract the schema from the WSDL location to XSD (ready for loading into BizTalk) Build a (very) clean request DTO for the ...
I've been working with config files for quite some time. I was recently reminded that I needed to finish my original article and share my final findings on my personal best practices for working with config files. One of the coolest and most useful features in config files is the file attribute as displayed below (see my other article for a more detailed explaination, preferred-method-for-read-o... <configuration> <configSections> <section name="MyCustomSection" type="System.Configuration.... ...
I'm clearly not the oldest knife in the drawer, nor am I the youngest. I got involved with computers in my youth just about the time Bill Gates was positioning himself to put a PC in every home. What this means is, I grew up on PCs with no mice; pre-Windows, pre-GUI. I learned how to write "menu" programs that utilized a broader range of ascii characters than most people are familiar with today. The point is, everything I did on the computer I did with the keyboard. I recall in high school, a new ...
I’m attending the first heat of Speaker Idol here at Tech Ed...I'm competing in the third heat and want to "scope out the competition". The judges are Steve Smith, Yasir from Austria, Mark Dunn, and Scott Stansfield (winner from last year). Rachel Appel is up first. She’s going to be talking about Dynamic Data. OMG, she’s using Northwind…I just heard Scott Hanselman from accross the convention center scream “NOOOOOOOOOO…”. Honestly I haven’t looked into Dynamic Data much, but I see that its using ...
Imagine that every project in codeplex had to be decomposed into codeplex hosted unit tested functions which complied to some xunit standard - that would go along way towards code reuse, and move away from reinventing the wheel. worked on 2 Silverlight projects recently - see screenshots: and Last 3 months learned the following: NET Components revise – reread Yuval Loweys book – revised best mechanism for interface usage, delegates (circa .NET Framework 2.0), threading. The Interface stuff leads ...
For the last six weeks I have been working on a Master of Orion clone called Sovereign - all in XNA. Main screen Intro screen Menu screen Planet info screen All of these graphics were created with Paint.Net. All graphics, such as the logo, menu screen background, and planets, were created from tutorials on the Paint.Net forums. Current Features: Intro screen has a gear animation that moves across the screen, cracks like an egg, and an Appsguild logo flies out, complete with Fade. Menu screen has ...
Install IIS, ASP.NET, .NET Framework 3.5, SQL Server 2005 Express /w Reporting Services, a Web Application, create the Web Application database, and Deploy Report files using a batch script... Possible? Yes!!! I often like to explore possibility and this was my challenge. So here's what I did... I knew I wanted to have a batch file to start the installation and get everything installed, but I wasn't quite sure how to accomplish such a feat. So after some Google searches I started to put the batch ...
Just to clarify the different tools that you can use to update/recreate the Team Foundation Server warehouse (relational database and OLAP cube). Warehouse Web Service You can browse and invoke it here (always locally from TFS): http://localhost:8080/Wareh... The Run operation will launch processing of the warehouse (you can check the status of the warehouse with the GetWarehouseStatus operation: it goes from ProcessingAdapters, ProcessingOlap and finally Idle). Processing ...
Our shop has been looking for a way to simplify the interaction between our domain layer and data layer. The data layer uses typed datasets for all its operations. When it retrieves data, it populates a dataset; when it stores data, it checks the DataRowState of all rows in the dataset, and calls the appropriate stored procedure to insert, update, or delete the data. The domain layer then uses dataset elements as the in-memory backing store for properties and collections. A collection typically uses ...
Written by: Michael Stephenson (http://geekswithblogs.net/... Problem Definition It is a common design decision on BizTalk projects when you are implementing your solution and you find that you need to store some custom configuration. The challenge is where to store it. For some BizTalk components such as Adapters and Pipelines you can take advantage of the configuration meta data stored in SSO to handle this. This is the proper approach for these components and you have the BizTalk ...
A couple of points worth noting when using UDDI Services in Windows 2003 as a repository, and the ESB Guidance UDDI Resolver: The UDDI Resolver checks Service Providers and Services in a culture-specific manner. In the UDDI Services Web interface, the culture defaults to en-US, whereas the Resolver picks up the current system culture. So if you're running under en-GB it won't find entries set with en-US, or with the root "en", it must be an exact match. When it finds a match, the Resolver caches ...
Although new to all this MOSS stuff I am getting stuck in with the Content Query Web Part (CQWP) and XSL. They are a pretty powerful combination, but pretty soon I could see how this could become slightly wild and considering ListStyles.xsl is an "out of the box" file, getting crazy with custom files could become more of a problem than simply a huge file. Check out these two posts on how to manage custom styles. 1. Liam (Sharepoint MVP here in the UK) posts about editing the ListStyles.xsl, but only ...
After setting up my project in TFS, I wanted to configure the system so that my work items in my project would show only specific users as "Assigned To" choices. The default is to include all users in the TFS Valid Users group. After setting up my user and group security, I exported my Work Item Template using the witexport utility and running the following command: "C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\witexport" /f "C:\WIT\Task.xml" /t MyServer /p MyProject /n task I found the ...
Its interesting when you wonder why you can't restore your backed up sites when trying to restore a site using the stsadm and you keep getting error: Cannot complete action . Please Try again I will start by sending to Keith site which actually explains what orphan sites are and how you can avoid them. Unfortunately in my own case there was nothing to avoid i guess the database just got corrupted What i did was delete a site collection from the sharepoint Central Admin and that was it any time i ...
The web service limitations, along with the dynamic nature of most object graphs make the web service support provided by .NET Remoting inadequate for developing smart clients with the same capabilities as full Remoting clients. Expressions use VB.NET syntax and are technically very similar to Excel formulas. In Java, inner classes now come in two main avours, static (a term I don't particularly like) and non-static, see Object-Relational Mapping in accordance with Formal Specification. Object ...
Richard Seroter published useful utility to store/retrieve BizTalk configuration settings in Enterprise SSO database. I added some more functionality to it. First, I added Export/Import functions allowing to actually save values in the external XML file (Richard's implementation allowed storing only field names, calling for extra work should you delete and restore SSO aplication). I kept file format the same but added values stored as text nodes: <sso> <application name="eCommerce.BizTalk.Con... ...
Written by: Michael Stephenson (http://geekswithblogs.net/... The Scenario This is a common scenario with potential BizTalk solutions. You are implementing a process which needs to be triggered at specific points. The problem you have is that BizTalk doesn’t really do scheduling. There are service window features in BizTalk where you can control when messages can be received or sent, however this depends on a message being already there. What you really want is a trigger to start the ...
There are plenty of ORM Frameworks available to use and I have tried few of them. In this post I will describe my experience with those frameworks. NHibernate: NHibernate was the first ORM framework that I tried. The real power of this framework is that it supports many different kinds of databases. The bad thing which pushed me away was the complicated XML mapping and lazy loading. I was never able to get lazy loading to work properly. I searched on forums and saw many other developers facing the ...
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, ...