Open dtolnay opened 5 years ago
AFAIK, only xmlparser does support DTD, but only ENTITY
. I can add other objects if someone wants to implement this.
I think following the pattern used in the graphql-client
would be great for this. Not so sure about the inline stuff. That'd be a very hairy macro implementation…
Yes, please!
I can’t make any promises, but it’s just possible I’ll have some cycles I could devote to some of this (testing and whatnot if nothing else!) starting in the next few weeks.
I would like to be able to write:
or possibly inline:
and have this expand to the right data structures to represent data of this form. In this case simply:
Then also generate a parser using any one of the XML libraries listed here to deserialize the data structure from XML. Possibly like:
DTD references: https://en.wikipedia.org/wiki/Document_type_definition https://www.w3schools.com/xml/xml_dtd_intro.asp