XML Sample Code
-
The AJAX "Top 5" security tips
by Moe Tarhini
There is no doubt that AJAX and AJAX-style technologies are the way forward for web design. Developers can create true "applications" on the web like never before - however care needs to be taken with AJAX, in order to keep web sites secure.
-
Developing your first Visual WebGui application
by Guy Peled
An introduction to Visual WebGui through a sample application.
-
Url Rewriting with Regex for ASP.NET 2.0
by Xavier Larrea
A new feature in ASP.NET 2.0 is it's built-in url rewriting support. When i looked into this new feature I found that it lacked regular expressions support, which is really the point of an Url Mapper. So, this code demonstrates how to create a Url Rewriting Module with Regex support in ASP.NET.
-
Applying XSL transformations to XML in .NET
by Krishnan
A simple demonstration of how to apply an XSL transformation to an XML file and save the output using .NET
-
Inserting images into Word documents using XML
by Jonathan Greensted
I've seen many, many requests on the Microsoft newsgroups asking how you can insert a picture into a Word document without saving it to the file system first. This example application described in this blog illustrates both methods for inserting a picture firstly using the Word object model (InlineShapes.AddPicture) and secondly using Word's XML support (InsertXML).
-
Forms Authentication Against An XML File
by Orcs Web
The code demonstrates how to validate a username and password against an XML file.
-
Customize XML Serialization using IXmlSerializable
by James Crowley
Learn how to implement the IXmlSerializable in order to customize serialization of your objects - for instance, serializing a NameValueCollection.
-
RSS Feed Helper Class
by James Crowley
A simple helper class to make generating an RSS feed a piece of cake - its the one we use on Developer Fusion too!
-
XML/XSD Schema Validator
by joe miguel
To teach how to write XML and Schemas (or DTD's). Some of the schemas language can be difficult to understand. I needed an easy (and free) way to know if my work was correct, if not then exactly what was wrong with it. As implied above, this example will also show you how to use schemas in your own programs.
-
How to create PDF files from ASP.NET pages
by Edward Tanguay
How to create PDF files from ASP.NET pages with Crystal Reports without using Visual Studio.NET
-
How to create XML files
by Edward Tanguay
How to generate XML files in PHP using its new_child function.
-
XBrowse
by J P
XBrowse is a small application that allows the user to view and edit XML files as well as extract XSD schema files from the XML document. It is overall a pretty simple program that is based off of a code snippet in the VS.Net IDE.
-
XML Node Insert
by Paul Parks
Someone recently asked on the Undernet #C# channel for help with inserting a block of XML into an existing XML document. After perusing a couple of MSDN articles here's what I came up with.
-
How to write to an XML file
by Edward Tanguay
Writing to XML files is quite easy in ASP.NET as there are so many objects prepared for you -- you just need the syntax on how to use them. This code shows you how to write a simple member XML file.
-
How to validate an XML file with an XSD file
by Edward Tanguay
Demonstrates an ASP.NET Web Form which tells you if your file is not well-formed and then if it is not valid it lists out the specific reason (like in XMLSpy), quite helpful to find an error in a large XML file as it returns the line number on which the error occurred as well as the tag name.
-
Serialize and deserialize objects to an XML file
by Edward Tanguay
This code shows the simplest way to automatically convert the information in an object to an XML file and back into an object. This is useful if you need to make information available web-server like on your server for other applications to pick it up.
-
Combining Javascript and DOM
by David Nishimoto
David Nishimoto demonstrates accessing the Document Object Model available in IE 5 from your javascript code
-
Retrieving Remote Image Properties in ASP
by LawrenceF
This code will allow the programmer to retrieve the width, height, and depth of a jpg and gif that are remotely hosted.
-
A simple way to read an XML file in Java
by Kiran Pai
This is the simplest way to read data from an XML file into a Java program. I have also included some basic error checking, so you can directly cut-paste this code with a few changes ofcourse.
-
Data-shaped SQL clauses
by ElementK Journals
How to build a data-shaped SQL clause for VB