Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DTD and/or XML Schema (XSD) file for Nini? [Priority: very, very low] #9

Open
GwynethLlewelyn opened this issue Aug 19, 2023 · 2 comments

Comments

@GwynethLlewelyn
Copy link

GwynethLlewelyn commented Aug 19, 2023

Hi there!

I have absolutely no idea if this library is still being maintained or not, so bear with me...

I've stumbled across Nini inside the source code of an 'old' project, OpenSimulator — started around 2007 and with continued ongoing development to this day — where most (if not all) configuration files are, in a way or another, formatted using Nini's XML, since that's the ubiquitously used library in many of its subsystems and tools, very likely because, well, there was nothing else available back then 😅

In order to parse all those XML configuration files, I'd love to know if there was ever an officially developed DTD, or, even better, a XML Schema, which could be used for validation purposes. I'm aware that the format is reasonably simple and straightforward (therefore it should be even easier to parse with a DTD/XSD!); nevertheless, going through the source code here, I couldn't find a reference to any such file.

I'm just asking!... obviously, I can try to write my own DTD from scratch (and with a little patience, even the XSD...), but, of course, if there were an official source for such a document, it could be simply placed as a link to be fetched during validation...

Thanks in advance for any insights! And remember: this is a very low priority 'request', I'm not expecting an answer 'soon'.

@bmatzelle
Copy link
Owner

The XML format is so simple (key/value pair) that I didn't even consider creating a DTD for it.

@GwynethLlewelyn
Copy link
Author

GwynethLlewelyn commented Aug 31, 2023

Oh I totally agree with the format's simplicity :) To be honest, it's mostly to satisfy my code editor, which complains about the lack of schemata and/or DTDs :)

And, of course, if it already existed, I didn't need to do any work in producing it — so, before wasting time, I thought to ask first ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants