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, www.adobe.com Adobe includes great but expensive XML support in FrameMaker.

  • XML Pro, www.vervet.com/ Costly but powerful XML editor.

  • XML Writer, http://xmlwriter.net/ Color syntax highlighting, nice interface.

  • XML Notepad, msdn.microsoft.com/xml/notepad/intro.asp Microsoft's free XML editor, but a little obscure to use.

  • eNotepad, www.edisys.com/Products/eNotepad/enotepad.asp A WordPad replacement that does well with XML and has a good user interface.

  • XML Spy, 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.

graphics/01fig06.gif

Figure 1-7. XML Writer editing XML.

graphics/01fig07.gif

Figure 1-8. XML Notepad editing XML.

graphics/01fig08.gif

Figure 1-9. eNotepad editing XML.

graphics/01fig09.gif

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.



Real World XML
Real World XML (2nd Edition)
ISBN: 0735712867
EAN: 2147483647
Year: 2005
Pages: 440
Authors: Steve Holzner

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net