If there's a DOCTYPE in the document, then `root` is `undefined`. i.e. if this is the second line in the XML file: ``` <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> ``` then the output is: ``` { declaration: { attributes: { version: '1.0', encoding: 'UTF-8' } }, root: undefined } ``` and if the DOCTYPE line is removed, the output is i.e.: ``` { declaration: { attributes: { version: '1.0', encoding: 'UTF-8' } }, root: { name: 'plist', attributes: { version: '1.0' }, children: [ [Object] ], content: '' } } ```
If there's a DOCTYPE in the document, then
rootisundefined.i.e. if this is the second line in the XML file:
then the output is:
and if the DOCTYPE line is removed, the output is i.e.: