First, all the attributes except for namespace declarations must be collected. April 2000 2.3.5. A Document node may have PI nodes before and after the root Element node. Comment nodes and DocumentType nodes, if any, are ignored. The definition described above can be efficiently implemented with any XML processor that is conformant to either DOM and SAX specification.
Reference implementations are available on request.
Maruyama, et al. Maruyama, et al. All Rights Reserved. However, this document itself may not be modified in any way, such as by removing the copyright notice or references to the Internet Society or other Internet organizations, except as needed for the purpose of developing Internet standards in which case the procedures for copyrights defined in the Internet Standards process must be followed, or as required to translate it into languages other than English. The limited permissions granted above are perpetual and will not be revoked by the Internet Society or its successors or assigns.