DTD elements are not formatted
See original GitHub issueFollowing up on #90, given:
<?xml version="1.0"?>
<!DOCTYPE note [
<!ELEMENT note (to,from,heading,body)>
<!ELEMENT to (#PCDATA)>
<!ELEMENT from (#PCDATA)>
<!ELEMENT heading (#PCDATA)>
<!ELEMENT body (#PCDATA)>
]>
<note>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend</body>
</note>
Formatting the document ignores the DOCTYPE content.
Issue Analytics
- State:
- Created 5 years ago
- Comments:13 (13 by maintainers)
Top Results From Across the Web
What is the right formatting of DTD when an Element can both ...
What is the right formatting of DTD when an Element can both contain PCDATA and an ... It is not uncommon to see...
Read more >DTD Formats
The Client Message Box Request DTD describes the format of the XML document that is used to prompt: (a) a user to respond...
Read more >Using XML to format definitions - IBM
The contents of all your tags within the document, including tag names and elements, are not case sensitive. The Document Type Definition (DTD)...
Read more >XML Document Type Definition (DTD) - Library of Congress
An XML Document Type Definition is a formal expression (in XML) of the structural constraints for a class of XML documents. The DTD...
Read more >XML DTD - W3Schools
DTD stands for Document Type Definition. A DTD defines the structure and the legal elements and attributes of an XML document. Valid XML...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@NikolasKomonen I think you can work on this formatting issue now. Now you have 3 new structures:
That you can see in the outline. Now you can use it for format. Don’t hesitate to update it to improve it according your need for format.
For my issue with XML completion based on DTD, I don’t need this feature. Me I need to get public, system uri. In otherwords, implement:
My first goal is to support external DTD. I will see after how to support internal DTD (DTD declared in the XML)