Focus on Microsoft Technologies - Tutorials, Articles, Code Samples.

Sunday, March 29, 2009

Microsoft XML Notepad 2007 Tutorial

This article introduces a new version of XML Notepad. The tool was first introduced in 1998 but has been unavailable for several years.

For those who know the original version, the interface should look familiar: a tree view on the left synchronized with a node text view on the right and handy nudge toolbar buttons for quick movement of nodes up and down the tree (see Figure 1). Because it's been so long since the first version, I've had to leverage the cool stuff in System.Xml and add some bells and whistles that the original version didn't have:

  • Incremental search (CTRL+I) in both tree and text views, so that as you type it navigates to the most matched node.
  • Cut/copy/paste with full namespace support in a simple interoperable XML format.
  • Drag/drop support for easy manipulation of the tree, even across different instances of XML Notepad and from the file system.
  • Infinite undo/redo for all edit operations.
  • In-place, pop-up, multi-line editing of large text node values and IntelliSense based on expected elements and attributes.
  • Configurable fonts and colors via the options dialog.
  • Full find/replace dialog with support for regex and XPath expressions.
  • Good performance on large XML documents (loading a 3 MB document in about one second).
  • Instant XML schema validation while you edit with errors and warnings shown in the task list window.
  • Support for custom editors for date, dateTime, time, and color datatypes.
  • HTML viewer for displaying XSLT transformation results.
  • Built-in XML Diff tool.
  • This version l... more

Post a Comment