You are currently viewing the BOOK: Professional JavaScript for Web Developers ISBN: 978-0-7645-7908-0 section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
If you were to do it your way, the same parseError object would be used for every instance of an XML Document, meaning that you would never know which DOM object it referred to.
The parseError object has to be created after the XML DOM object has been created to make sure it refers just to that object.
Nicholas C. Zakas
Author, Professional JavaScript for Web Developers (ISBN 0764579088) http://www.nczonline.net/