Skip to content
This repository was archived by the owner on Oct 5, 2023. It is now read-only.

Chokes on DOCTYPE #23

Description

@spikebrehm

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: '' } }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions