• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 4. File and Registry Access > Reading and Writing XML and HTML

Reading and Writing XML and HTML

The Extensible Markup Language (XML) is an important new tool for storing complex information in a way that's both easy to read for humans and easy to parse by computer. XML is becoming a popular form for storing information and for interchanging information between computers. XML is used by Windows as a packaging format for scripts (which I'll discuss in Chapter 9, “Creating Your Own Scriptable Objects,” and Chapter 10, “Deploying Scripts for Computer and Network Management”) and is becoming very important as a tool for storing configuration information. In fact, Microsoft's latest .NET programming platform encourages programmers to start using text-based INI files again, rather than the Windows Registry, and many programmers are discovering that XML is the best format for human-readable information storage. Therefore, you may find it useful to be able to read and write data in XML format in your scripts.

Remember also that HTML can be viewed as an application of XML—the syntax is the same—so all of the following discussion on reading and writing XML applies to HTML as well.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint