Are there any simple XML editors/libraries/whatever that will play nicely with a fb program?
I've no idea why small config files use XML, its an unnecessary overhead in every aspect, I need to make some small changes, changing numeric values.
I have a feeling I may have overlooked some existing facilities or does everybody write their own each time?
XML Editor?
Re: XML Editor?
Yeah, XML is a nasty file format, it's far more complicated than it looks and full-featured libraries are large. Whatever xml files you're dealing with probably don't use all those features though, so a small library could be used.
Paul Doe has one for reading XML written in FB as part of fb-framework, but he changed the github repo to private (I don't know why), so you'd have to ask him. I'm sure there are others available written in FB.
FB comes with a mxml.bi header for the Mini-XML library. I've never used it.
If you are willing to use the standard libxml2 (libxml2.a if you want it) it's actually not all that hard to use and FB includes headers (25x larger than mxml.bi!!). A not-great real-world example of reading xml.
At least xml is pretty easy to write, if you don't care about preserving the original formatting.
Paul Doe has one for reading XML written in FB as part of fb-framework, but he changed the github repo to private (I don't know why), so you'd have to ask him. I'm sure there are others available written in FB.
FB comes with a mxml.bi header for the Mini-XML library. I've never used it.
If you are willing to use the standard libxml2 (libxml2.a if you want it) it's actually not all that hard to use and FB includes headers (25x larger than mxml.bi!!). A not-great real-world example of reading xml.
At least xml is pretty easy to write, if you don't care about preserving the original formatting.
Re: XML Editor?
Thanks, that gives me some stuff to look at. I fully concur with your first sentence. I don't understand why it is so popular for tiny config files, often there is absolutely no need for a tree structure and yet they have two layers that are nothing more than redundant titles.TeeEmCee wrote: ↑Oct 13, 2023 4:20 Yeah, XML is a nasty file format, it's far more complicated than it looks and full-featured libraries are large. Whatever xml files you're dealing with probably don't use all those features though, so a small library could be used.
Paul Doe has one for reading XML written in FB as part of fb-framework, but he changed the github repo to private (I don't know why), so you'd have to ask him. I'm sure there are others available written in FB.
FB comes with a mxml.bi header for the Mini-XML library. I've never used it.
If you are willing to use the standard libxml2 (libxml2.a if you want it) it's actually not all that hard to use and FB includes headers (25x larger than mxml.bi!!). A not-great real-world example of reading xml.
At least xml is pretty easy to write, if you don't care about preserving the original formatting.
I thought I was missing out on a really easy editor.