Skip to content

Support for inline XML DTD #450

Description

@kddnewton

I got this report on prettier/plugin-xml.

<!-- demo.xml -->
 <!DOCTYPE example [
  <!ELEMENT example (item)*>
  <!ELEMENT item (name, price)>
  <!ELEMENT name (#PCDATA)>
  <!ELEMENT price (#PCDATA)>
]>
<example>
  <item>
    <name>Item 1</name>
    <price>$10.00</price>
  </item>
  <item>
    <name>Item 2</name>
    <price>$20.00</price>
  </item>
</example>

Honestly I would be totally fine with a temporary measure that just didn't crash on these kinds of inputs and skipped to the next balanced >. Then I could just copy the source text and not worry about formatting it.

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