- Markup Languages
- What Does XML Look Like?
- What Does XML Look Like in a Browser?
- What's So Great About XML?
- Well-Formed XML Documents
- Valid XML Documents
- Parsing XML Yourself
- XML Resources
- XML Editors
- XML Browsers
- XML Parsers
- XML Validators
- CSS and XSL
- XLinks and XPointers
- URLs Versus URIs
- ASCII, Unicode, and the Universal Character System
- XML Applications
XML Editors
To create the XML documents we'll use in this book, all you need is a text editor of some kind, such as vi, emacs, pico, Macintosh's BBEdit or SimpleText, or Windows Notepad or Windows WordPad. By default, XML documents are supposed to be written in Unicode, although in practice you can write them in ASCIIand nearly all of them are written that way so far. Just make sure that when you write an XML document, you save it in your editor's plain text format.
Using Windows Text Editors
Windows text editors such as WordPad have an annoying habit of appending the extension .txt to a filename if they don't understand the extension you've given the file. That's not a problem with .xml files because WordPad understands the extension .xml. However, if you try to save, for example, an XML-based User Interface Language document with the correct extension, .xul, WordPad will give it the extension .xul.txt. To avoid that, place the name of the file in quotation marks when you save it, as in "scrollbars.xul".
However, it can be a lot easier to use an actual XML editor, which is designed explicitly for the job of handling XML. Here's a list of some programs that let you edit your XML:
Adobe FrameMaker, http://www.adobe.comAdobe includes great but expensive XML support in FrameMaker.
XML Pro, http://www.vervet.com/Costly but powerful XML editor.
XML Writer, http://xmlwriter.net/Color syntax highlighting, nice interface.
XML Notepad, http://msdn.microsoft.com/xml/notepad/intro.aspMicrosoft's free XML editor, but a little obscure to use.
eNotepad, http://www.edisys.com/Products/eNotepad/enotepad.aspA WordPad replacement that does well with XML and has a good user interface.
XML Spy, http://www.xmlspy.com/A good user interface, and easy to use.
You can see XML Spy at work in Figure 1-6, XML Writer in Figure 1-7, XML Notepad in Figure 1-8, and eNotepad in Figure 1-9.
Figure 1-6 XML Spy editing XML.
Figure 1-7 XML Writer editing XML.
Figure 1-8 XML Notepad editing XML.
Figure 1-9 eNotepad editing XML.
Now that we've gotten an overview of creating XML documents, what about XML browsers? The list is more limited, but there are a few out there. See the next topic.