Likewise, each of the child elements matches the name of one of the fields within the table. ) Notice that the name of the elements matches the name of the table for the movie database (found in the Movie.XML file). Often, you'll find that the file extension matches the customized use of the file, rather than the actual content.When in doubt, try to open a file that looks like it contains XML data to see if XML Notepad will make it easier to understand.įigure 7-1 shows the content of amovie database example I created by exporting the MovieGuide database ExistingMovies table to the Movie.XML (You'll find several XML files to view in the \Chapter 07\Sample XML Data folder of the source code, available from the Downloads section on the Apress site at. TIP Not all XML files have an XML file extension.We've already seen one case in the book where a CONFIG file was actually an XML file in disguise. All you need is a filename (and path) or a URL to get started. Use the File >Open command to display an Open dialog box that allows you to open XML files from a local drive or from aWeb site. When you start XML Notepad, you'll see a blank project. We'll use this tool in several sections of the book to read XML data, so you'll want to download a copy. The following sections provide a brief overview of this tool. In addition, although the Web site doesn't mention it, this version works fine with both Windows 2000 and Windows XP. The current version, 1.5, is in beta as of this writing. ( ) This utility is free for the price of a download and does a reasonable job of reading most XML files. Microsoft has remedied this problem a little with the introduction of XML Notepad The only problem is that some of these tools cost quite a bit for the occasional user. That's why you should have a tool for reading XML in your developer toolkit. Reading simple files is almost trivial, but once the data gets nested a few layers deep, reading it can become tiresome. XML is almost, but not quite, readable by the average human.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |