Viewing XML Documents in Source Code

This section provides a tutorial example on how to view XML documents in source code using XML Notepad 2007 default XSLT template.

After created your XML document in the Tree View, you can look at the XML source code using the "XSL Output" function.

1. Run "XML Notepad 2007" again, and open "dictionary.xml" using menu "File" > "Open".

2. Click tab "XSL Output". You see a notice box showing up with these messages:

Your XML document contains no xml-stylesheet processing instruction.
To provide an XSLT transform, add the following to the top of your
file and edit the href attribute accordingly:

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

You can also enter the XSLT file name using the above text box, but
this will not persist with your XML document.

The following HTML is provided by the default XSLT transform which is
designed to pretty print your XML document.

3. Look at the XML source code below the notice box. It is converted from the XML document using a default XSLT (Extensible Stylesheet Language Transformations) template.

XML Notepad 2007 - XSL Output
XML Notepad 2007 - XSL Output

Table of Contents

 About This Book

 Introduction of XML (eXtensible Markup Language)

 XML File Syntax

 XML File Browsers

 XML-JSON Document Conversion

 DOM (Document Object Model) Programming Interface

 SAX (Simple API for XML) Programming Interface

 DTD (Document Type Definition) Introduction

 Syntaxes of DTD Statements

 Validating an XML Document against the Specified DTD Document Type

 XSD (XML Schema Definition) Introduction

 Syntaxes of XSD Statements

 Validating XML Documents Against Specified XML Schemas

 XSL (Extensible Stylesheet Language) Introduction

 Java Implementation of XSLT

 XSLT (XSL Transformations) Introduction

 XPath (XML Path) Language

 XSLT Elements as Programming Statements

 Control and Generate XML Element in the Result

 PHP Extensions for XML Manipulation

 Processing XML with Python Scripts

XML Notepad - XML Editor

 What Is XML Notepad

 Downloading and Installing XML Notepad

 Creating XML Documents in Tree View

Viewing XML Documents in Source Code

 Converting XML in Pretty Print Format

 XSD Validation and Error List

 XSLT Transformation and HTML View

 XML Tools Plugin for Notepad++

 XML Plugin Packages for Atom Editor

 XML 1.1 Changes and Parsing Examples

 Archived Tutorials

 References

 Full Version in PDF/EPUB