Skip to content
May 15, 2007 / Bob Black

Editing XML and XSL

Editing XML/XSL is easy. For simple documents, anyway. But what about ginormous XML files with wild and crazy structures?

Try the latest incarnation of Microsoft’s XML notepad, available for download completely free: Download XML Notepad 2007. XML Notepad provides handy-dandy tree view editing of XML documents (even big ‘uns), with built-in XSL preview so you can see what everything looks like after an XSL transform.

But alas, the XSL preview doesn’t automatically reload the XSL document for you. Which is a real pain if you like to switch back and forth between edit and preview mode to see what the output looks like after each subtle change.

It turns out there is an easy way to view previews. Just stick an xml-stylesheet node at the top of your XML document, like so…

<?xml-stylesheet type="text/xsl" href="Stylesheet.xsl"?>

…and load the XML file in IE. Then you can hit F5 all day long, and IE will appropriately refresh the XSL output.


One Comment

Leave a Comment
  1. marcus / Feb 2 2009 9:29 pm

    hbvSsq sk6skN2aP6Vvq18MdGcl

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: