Tag | XML Posts

I have been working on a Silverlight Navigation application which uses LINQ to query an XML data source and has been working without a hitch until I added a control to the landing page. All other pages which worked fine were loaded from the navigation service Once I added the control I got a page not found error! (The page is there) and If navigated to, it works as expected. What happens, it that I closed the error Modal dialog and then clicked on another page, then navigate back to the landing page ...
Last few weeks, I have been working on Application Packaging stuff using all the widely used tools like InstallShield, WISE, WiX and Visual Studio Installer. So, I thought it would be good to post about how to Build the Installers developed using these tools with Team Build 2010. This post will focus on how to build the InstallShield generated packages using Team Build 2010. For the release of VS2010, Microsoft has partnered with Flexera who are the makers of InstallShield to create InstallShield ...
SubMain have announced at http://community.submain.co... that the next version of GhostDoc will include a VS2005/VS2008/VS2010 compatible spell checker. This replaces their existing spellchecker (http://submain.com/product... which is being discontinued. If you buy GhostDoc Pro now (I urge you to as it helps tremendously in documenting both C# and VB.NET code) , be sure to include Licence Protection as it means you will get the next version that includes ...
We’ve been trying to get the build server to pick up the Microsoft.Expression.Intera... needed so we can use things like the ExtendedVisualStateManager and the DataStateBehavior. Adding the DataStateBehavior in Blend adds the reference to the project, so it all compiles fine on the local machine. Checking in the code into a CI server throws up some ugliness: d:\Builds\6\Source\MyFile.xaml (290): The tag 'DataStateBehavior' does not exist in XML namespace 'http://schemas.microsoft.c... ...
If we have to get data from the SQL database, the standard way is to use a receive port with SQL adapter. SQL receive adapter is a solicit-response adapter. It periodically polls the SQL database with queries. That’s only way it can work. Sometimes it is undesirable. With new WCF-SQL adapter we can use the lightweight approach but still with the same principle, the WCF-SQL adapter periodically solicits the database with queries to check for the new records. Imagine the situation when the new records ...

There is a new version of GhostDoc at http://submain.com/products/ghostdoc.aspx

If you write C#, you owe it to yourself to get a copy and use it to get started on XML documenting your code.

 

Repeating sequence groups can often be seen in real life XML documents. It happens when certain sequence of elements repeats in the instance document. Here’s fairly abstract example of schema definition that contains sequence group: <xs:schemaxmlns:b="http:... xmlns:xs="http://www.w3.org... xmlns="NS-Schema1" targetNamespace="NS-Schema1" > <xs:elementname="Repeati... <xs:complexType> <xs:sequencemaxOccurs="1... ...
XML has been a pervasive tool in software development for over a decade. It provides a way to communicate data in a manner that is simple to understand and free of platform dependencies. Also pervasive in software development is what I consider to be the anti-pattern of using string manipulation to create XML. This usually starts with a “quick and dirty” approach because you need an XML document and looks like (for all of the examples here, we’ll assume we’re writing the body of a method intended ...
Introduction The way I previously created messages to send to the GovTalk service I used the XMLDocument to create the request. While this worked it left a number of problems; not least that for every message a special function would need to created. This is OK for the short term but the biggest cost in any software project is maintenance and this would be a headache to maintain. So the following is a somewhat better way of achieving the same thing. For the purposes of this article I am going to ...
In this Issue: Sacha Barber, David Anson, Jesse Liberty, Shawn Wildermuth, Jeff Blankenburg(-2-), Martin Krüger, Ryan Alford(-2-), Michael Crump, Peter Kuhn(-2-). Above the Fold: Silverlight: "Part 4 of 4 : Tips/Tricks for Silverlight Developers" Michael Crump WP7: "Navigating with the WebBrowser Control on WP7" Shawn Wildermuth Shoutouts: John Papa posted that the open call is up for MIX11 presenters: Your Chance to Speak at MIX11 From SilverlightCream.com: Aspect Examples (INotifyPropertyChanged ...
Visiting the MSDN SQL Server Integration Services Forum oftentimes I could see that people would pop up asking this question: “why I am not able to load an element from an XML file that contains zeros so the leading/trailing zeros would remain intact?”. I started to suspect that such a trivial and often-required operation perhaps is being misunderstood by the developer community. I would also like to add that the whole state of affairs surrounding the XML today is probably also going to be increasingly ...
source: http://geekswithblogs.net/c... Update (10/06/2011): I no longer recommend the approach below. It is too much of an administrative nightmare to create a wsdl for each possible service method call. See new advise here: http://geekswithblogs.net/c... Question How do you make it easy for client systems to consume the generic WCF services exposed by the ESB Toolkit using messages that conform to agreed schemas\contracts? Usually the developer ...
In this Issue: John Papa, Tim Heuer, Jeff Blankenburg(-2-, -3-), Jesse Liberty, Jay Kimble, Wei-Meng Lee, Paul Sheriff, Mike Snow(-2-, -3-), Samuel Jack, James Ashley, and Peter Kuhn. Above the Fold: Silverlight: "Animation Texture Creator" Peter Kuhn WP7: "dows Phone from Scratch #13 — Custom Behaviors Part II: ActionTrigger" Jesse Liberty Shoutouts: Awesome blog post by Jesse Liberty about writing in general: Ten Requirements For Tutorials, Videos, Demos and White Papers That Don’t Suck From SilverlightCream.com: ...
The code samples in Microsoft All-In-One Code Framework are updated on 2010-12-13. Download address: http://1code.codeplex.com/r... Updated code sample index categorized by technologies: http://1code.codeplex.com/w... (it also allows you to download individual code samples instead of the entire All-In-One Code Framework sample package.) If it’s the first time that you hear about Microsoft All-In-One Code Framework, ...
What is Localization/Multilingual and Globalization? The term "Localization" defined as "Process of translating resources for a specific culture/languages", where "Globalization" defined "Process of designing applications that can adapt to different cultures/languages". When we publish a site for different regions then it'll be great if the site content is displayed in that regional language. SharePoint provides Language Packs which can be downloaded and installed from Microsoft Site. but the limitation ...
After a great presentation by Jason Sheehan at MDC about RestSharp, I decided to implement it. RestSharp is a .Net framework for consuming restful data sources via either Json or XML. My first step was to put together a Restful data source for RestSharp to consume. Staying entirely withing .Net, I decided to use Microsoft's oData implementation, built on System.Data.Services.DataSe... Natively, these support Json, or atom+pub xml. (XML with a few bells and whistles added on) There are three main ...
I simply DO NOT understand how Microsoft can be this far along with a tool like WCF and it STILL tout it as being an "Enterprise" tool. For example... The following is a simple xsd schema with a VERY simple data contract that any enterprise would expect an "enterprise system" to be able to handle: <?xml version="1.0" encoding="utf-8"?> <xs:schema id="Sample" targetNamespace="http://tem... elementFormDefault="qualified" xmlns="http://tempuri.org/S... xmlns:mstns="http://tempuri... ...
In this Issue: András Velvárt, Kunal Chowdhury(-2-), AvraShow, Gill Cleeren, Ian T. Lackey, Richard Waddell, Joe McBride, Michael Crump, Xpert360, keyboardP, and Pete Vickers(-2-). Above the Fold: Silverlight: "Grouping Records in Silverlight DataGrid using PagedCollectionView" Kunal Chowdhury WP7: "Phone 7 Back Button and the ListPicker control" Ian T. Lackey Shoutouts: Colin Eberhardt has some Silverlight 5 Adoption Predictions you may want to check out. Michael Crump has a post up showing lots ...
Android applications can maintain their own internal preferences (and allow them to be modified by users) with very little coding. In fact, you don't even need to write an code to explicitly save these preferences, it's all handled automatically! Create a new Android project, with an intial activity title Main. Create two more activities: ShowPrefs, which extends Activity Set Prefs, which extends PreferenceActivity Add these two to your AndroidManifest.xml file: <activity android:name=".SetPrefs">... ...
In honor of Phil Factor's recent post on SQL Smells, I thought I would post some blogs SQL smells and why some of them are bad as well as when they may be OK. Let's start with the top of the list that Phil has compiled. Use of deprecated syntax such as *= (Dave Howard) There are two problems here. First this is not in compliance with the SQL 92 standard. We should strive our code to be standards compliant whenever there is a standard available. Now this sounds like a cop out along the lines of "Because ...
There is an annoying bug in salesforce winter 11 release MyProfilePageController.cls System.QueryException: List has no rows for assignment to SObject Class.MyProfilePageControll... line 78, column 35 External entry point This is also the method for deleting Apex Classes and Triggers from Salesforce Production (Note : You cannot delete an apex class or Trigger from Salesforce Production through changesets. Only way is to use Force.com IDE) 1. Install and Open Force.com IDE (don't install ...
All-In-One Office Development Code Samples Introduction Download Office development code samples Request Office development code samples Introduction The All-In-One Office development code samples demonstrate the typical programming topics about Microsoft Office. These topics are either frequently asked in MSDN forums and Microsoft Support, or are requested by many developers via our code sample request function. We want to alleviate the frustration felt by developers when they are developing Office ...
I have been working with infopath 2007 to build an application for SharePoint. I put together a dashboard that pushes and pulls data from lists within SharePoint. With Visual Studio Tools for Applications you can write code that will accompany the form for extra functionality. Part of the code is that you can reference the "Microsoft.SharePoint.dll" to have access to the SharePoint object model and ultimately the data in SharePoint. Part of the architecture decisions I made quite early was to implement ...
Let’s face it: not everybody can afford a full-blown Surface unit in his or her house. But most of us can afford a windows 7 touch enabled computer. The prices for these kind of devices have dropped a lot since the introduction of Windows 7. Companies such as Dell, HP and others offer notebooks as well as desktop systems that can handle multi-touch for a reasonable price. And with touch you’re halfway there. What you don’t have is the object recognition of the Surface. And the rigidity of the Surface ...
During hierarchy changes, MDS provides some basic rules for validating hierarchy members against some logic that is defined in the model within the MDS interface or through the Services interface. Behind the scenes, MDS is generating all sorts of T-SQL to ultimately enforce these rules. There is the ability to extend these rules with your own custom implementation if the configuration driven rules don’t suffice – either a SharePoint workflow or through custom CLR code packaged as an assembly. For ...
A few months back I sat down on a conference call with Dave Bost and Clark Sell to record an episode of Thirsty Developer. I had suggested that we could talk about Office Open XML and how it can be used to automate the generation of documents. Now for a number of reasons this episode will never see the light of day (at least not as we originally recorded it). But the reason that sticks in my mind is that the story wasn’t there. As technologists we spend a lot of time learning tools, languages and ...
UPDATE: with the release of NuGet 1.0 RTM, this script has some breaking changes. For an updated version, see this post by Jon Galloway: Downloading a local NuGet repository with PowerShell. NuGet is simply awesome. Despite its relative infancy, it has already established itself as the standard for .NET package management. You can easily add packages from the public feed or even from a local directory on your machine. Phil Haack already has an excellent post describing how you set up a local feed. ...
Sample download In Part 1 and Part 2 of the series, we gave an introduction of writing Windows Shell extension in .NET Framework 4, and demonstrated a "skeleton" Context Menu Handler, and a "skeleton" Infotip Handler. - Context Menu Handler - Infotip Handler You are looking at the third part of the series. It introduces writing Windows Shell Thumbnail Handler with .NET Framework 4. CSShellExtThumbnailHandler: Shell thumbnail handler (C#) VBShellExtThumbnailHandler: Shell thumbnail handler (VB.NET) ...
The code samples in Microsoft All-In-One Code Framework are updated on 2010-10-10. Download address: http://1code.codeplex.com/r... If it’s the first time that you hear about Microsoft All-In-One Code Framework, please watch the introduction video on YouTube http://www.youtube.com/watc... or read the introduction on our homepage http://1code.codeplex.com/, and this Port25 article http://port25.technet.com/a... ...
Over the last 3 years, Microsoft has slowly but surely been embracing REST as a programming model for the web in WCF. .NET 3.5 SP1 introduced some REST constructs allowing us to invoke WCF services with HTTP GET/POST/PUT/DELETE verbs in conjunction with UriTemplates. The REST Starter Kit (RSK) was then introduced on CodePlex and this provided many great features including an HTML help page, request interceptors, an HTTP client library, and more. Then WCF 4 was released and some of the features in ...
In this Issue: Michael Washington, Sigurd Snørteland, Mark Monster, David Anson, Jesse Liberty(-2-), Mike Taulty(-2-), Brad Tutterow(-2-, -3-, -4-). Above the Fold: Silverlight: "Silverlight Attendance Demo using Sterling Silverlight Database" Michael Washington WP7: "How I made the ‘myChannel9' wp7 app (source code included) – Part 1" Sigurd Snørteland From SilverlightCream.com: Silverlight Attendance Demo using Sterling Silverlight Database Michael Washington has a great tutorial up on Code Project ...
The async one was very easy to do. However, in the process automation task I was given, there was a need to execute SQL Job and waiting for the execution result. I couldn't find anything on the web to do what I wanted, so I make the following stored procedure. In addition, this stored procedure is quasi-synchronous. I start the job and then check the status. You can change the timing of the status check, but for the example below, it is "synchronous within 30 seconds." I wish there is a better way ...
Recently I had problems creating a web reference for a web reference written in J***. VS2010 simply would not create the web reference. Normal 0 false false false EN-GB 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:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.000... ...
Let’s say you added a table to the database created in the previous post, with a foreign key relationship to the original table, like this: The idea here is that you can have multiple rows in NestedData for each single row in TestData. If you create a stored procedure (call it Get_NestedData) with the following select statement: select TestData.TestDataId, StringColumn, IntColumn, Notes from TestData left outer join NestedData on TestData.TestDataId = NestedData.TestDataId where TestDataId = @TestDataId ...
This is a basic tutorial for using a stored procedure via a WCF-SQL adapter in BizTalk. It's similar to the examples given in the SDK, but eliminates all the extra garbage of creating custom C# assemblies, enabling the SQL FILESTREAM, etc. You'll need to make sure both the LOB SDK and the Adapter Pack are installed before beginning. First, create a test database call WCFSQLTest, then create a table and a stored proc, using the following scripts: CREATE TABLE [dbo].[TestData]( [TestDataId] [int] IDENTITY(1,1) ...
If you want to see the RAW xml returned by the Refinement Panel web part then replace the existing XSL with the following (do remember to backup the original): <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.or... <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/> <xsl:template match="/"> <xmp><xsl:copy-of select="*"/></xmp> </xsl:template> </xsl:stylesheet> Technorati ...
Its all about creating a dynamic menu control in WPF. The source for this menu control is xml file. This sample is also an good example of adding controls dynamically and assigning animations to them dynamically. sample xml file is given below. <MenuList> <Menu id="2" image="images/Firefox-48x48... name="browser"> <SubMenu image="images/Firefox-48x48... file="firefox.exe">Firef... <SubMenu image="images/Internet-Expl... file="IExplore.exe">IE&l... ...
Today, I added a new extensibility feature to LINQ to Twitter, called Raw Queries. The Twitter API has historically changed suddenly and without warning, leaving 3rd party libraries, such as LINQ to Twitter deficient in full support. On occasion, LINQ to Twitter encounters bugs that leave users without a means for accomplishing specific tasks. Therefore, we need work arounds to allow users to quickly adapt to changes and new features. Raw queries include two points of extensibility: the ability to ...
Lets put together a Ribbon Project which demonstrates my last post. Create an empty SharePoint Project, here named testRibbonCommunications: Add New Item Choose Application Page (I named this TestRibbon.aspx) Add the following code in a PageComponent.js file to your layouts folder and change the namespace to fit your project (testRibbonCommunications) just do a find / replace: /// <reference name="MicrosoftAjax.js" /> /// <reference path="file://C:/Program Files/Common Files/Microsoft Shared/Web ...
Serialization and De-serialization is very important concept in .Net world. I won't go in-depth of what each of them means. In short, Serialization means converting your .Net object into some preservable format like xml string. De-serialization is the exact opposite of this and it means converting your string into C# object. In this article, I will show you a very simple working example of Serialization. Suppose you want to Serializa an object obj of type obj_Type Step 1: Include System.Xml.Serialization ...
I am using the mouse with my left hand but I am not swapping the mouse buttons. (Old habit from the times I was using public workstations at the university. I was too lazy to play with the system setup every time, so that I just moved the mouse from the right to the left side.) I am also using multiple pointing devices with my notebook. (a gaming mouse with multiple buttons at home, a simpler one at work, and also from time to time the touchpad ). Normally I would setup the mouse button layout in ...
My last project had me do some SharePoint 2010 Ribbon customizations. I though I would blog about some of the things I learned! There are many ways to create a Ribbon component. You could use a custom action to a tab to an existing Ribbon or in the case that I will be discussing/demonstrating is creating a complete new tab for a SharePoint Application page. The steps developer should take : Work through the Hand-On Lab provided by Microsoft on Customizing the Ribbon. This is part of The SharePoint ...
Here’s how to automatically check-in to FourSquare from C#. Yes, I did cheat with this for about a week. Apparently people were wondering how I was checkin in and defending my mayorships while I was out of the country. Haha. Anyway, here you go: static void Checkin(string venueid, double latitude, double longitude) { string result = HttpPost("http://api.foursq... "vid=" + venueid + "&private=0&geolat=" + Scatter(latitude) + "&geolong=" + Scatter(longitude), "myuser", ...
I’ve seen a lot of post describing how to customize a Silverlight Listbox during design time, but sometimes we want the user to have the ability to switch “themes” while the application is running. I originally started working on this for a project that would switch themes during different times of the day and decided to share here. Go ahead and fire up Blend 4 and select Silverlight Application + Website. Give it a name and hit OK. We are going to create sample data first. This will give us a Listbox ...
Features A SharePoint feature is a collection of SharePoint elements that can help to accomplish a particular functionality. Features reduce the complexity involved in making simple site customizations, and are robust when upgrades are applied to a deployment.Definition of a site or a template can be easily transformed by simply toggling a particular Feature on or off in the user interface. For example :- Publishing features of MOSS provide all the required functionality like publishing layouts, ...
Any ramblings and blog posts associated with the UNISA ICT 2622 tag should be considered study notes for my lectures… Objectives of Chapter 17 Explain the foundations for the adaptive development methodologies List and describe the features of the Unified Process system development methodology List and describe the features of Agile Modelling Compare and contrast the features of Extreme Programming and Scrum development Explain the importance of Model-Driven Architecture on enterprise-level development ...
Here is a simple way to combine values into one field using T-SQL. This method is particularly handy when you don’t know ahead of time how many values will be returned. This simple example would return a student’s name and list of professors (separated by commas). SELECT stu.FullName, (SELECT prof.FullName + ', ' FROM tblProfessors prof INNER JOIN tblStuProf stuprof ON prof.ProfID = stuprof.ProfID WHERE stuprof.StuID = 1234 FOR XML PATH('')) AS Professors from tblStudents stu where stu.StuID = 1234 ...
In this Issue: cherylws, Wolf Schmidt, Einar Ingebrigtsen, priozersk, James Ashley, Paul Patterson, Sharker Khaleed Mahmud, Beth Massi, Dave Relyea(-2-), and Mike Taulty(-2-, -3-). Above the Fold: Silverlight: "Just another ViewModelBase class" James Ashley WP7: "Panorama Tricks – How to eliminate blending seams in the background " Dave Relyea Lightswitch: "New LightSwitch “How Do I” Videos Released" Beth Massi From SilverlightCream.com: Content or Resource Files?…Another way to load a static XML ...
Any ramblings and blog posts associated with the UNISA ICT 2622 tag should be considered study notes for my lectures... Objectives of Chapter 15 Discuss examples of system interfaces found in information systems Define system inputs and outputs based on the requirements of the application program Design printed and on-screen reports appropriate for recipients Explain the importance of integrity controls Identify required integrity controls for inputs, outputs, data, and processing Discuss issues ...
Model Functionality · Support for Enums for property types from lookup tables · Allow default date = DateTime.Now - The only way to set a default date in the entity data model is to put a hard date in there, a string. If you have a known default date (e.g. 1900-01-01) this is fine. But often we want NOW to be the default and there's no way to indicate that in the model. · Support for System.IO.Stream instead of Byte[] for varbinary type of fields · Support GUID as Entity Key -http://leedumond.com/blog/... ...