4 ms·
Hi everyone, I am the author. Feel free to ask me anything or come up with suggestions!
by yaronn01 11y ago
Hi everyone, I am the author. Feel free to ask me anything or come up with suggestions!
- raindev 11y agoWhy do you decided to use XML as the basic format?
- yaronn01 11y agoXML is a standard format for markup (e.g. HTML). When XML is used where it shouldn't (object serialization) it adds complexity. Here it signals that creating a report is as simple (or at least as standard) as creating HTML. What other format you had in mind?
- deleted 11y ago[deleted]
- yaronn01 11y agoIMO JSON is less readable for this kind of document. XML is more explicit (at the cost of being chatty) but it's actually good for markup. For example nesting is easier to visually manage with XML due to tooling and explicitness of closing tags. JSON is good for smaller objects you normally use during coding where you do not want the format to get in your way. Here I actually do want a very explicit format as it's the main thing.
- mburns 11y ago>XML is a standard format for markup (e.g. HTML). XHTML is maybe the most hated incarnation of HTML, and is no longer encouraged.
- oneeyedpigeon 11y agoYou can still write xml-compliant HTML; whether it's called XHTML or not is splitting hairs. You still get all the benefits of a very rich toolset for document preparation. I work on a site that makes heavy use of xslt and works with xml-compliant HTML as input/output.
- merlincorey 11y agoMaybe "SGML" would have been a better descriptor?
- themodelplumber 11y agoXML and XHTML are two different things. Related, but different. XHTML is no longer encouraged for website markup, that part is true too. That does not mean that XML is no longer encouraged.
- akkartik 11y agoVery cool! It got me daydreaming about an alternative to html designed from the ground up to minimize webpage bloat and avoid tracking (1x1 pixel gifs, etc.)
- agumonkey 11y agoGreetings, Professor Falken.