Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


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

Chapter 9. Writing XML > Using DOM to Create Documents

Using DOM to Create Documents

As you have seen, it is very easy to create or modify XML documents with DOM. The parser creates a Document object and you can use it to add (or modify) objects to the document tree.

The main advantage to using DOM is the same reason you use a parser in the first place: It shields the application from the XML syntax.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint