Re: [XML-SIG] XML appropiate for config files of a xml pro
Thu, 9 Nov 2000 15:07:25 -0000
OK, I take your point that there's concern over using XML. I use a
tuple-like format where readability is an issue, especialy for output during
...::shrug:: its a little easier to read than XML and easy to parse into
For attributes and content I use...
(elementName @attr val @attr2 val2
I think ESIS (or is it ISIS? cant remember the name) is a similar format,
and I think there's some code for it among the Python SAX stuff. Have a dig
around, or somebody might know and pipe up.
If readability is key, then you'll just have to come up with your own
readable format and parse it...
I personally think that dictionaries look great too for simple named node
stuff, but tastes vary.
I've python code working with this sort of format somewhere, but not sure
where. Or I've C# code at hand, reading and writing to this format alongside
an XML reader and writer. As I said I use it a lot during development when
XML starts to hurt the eyes. Let me know if you want it.
But we're now way off topic =)
From: Stephan Tolksdorf [mailto:email@example.com]
Sent: 9 November 2000 14:39
Subject: Re: [XML-SIG] XML appropiate for config files of a xml
Thanks for the many answers.
Nicolas Chauvat wrote:
> Why don't you just use 4xslt, the XSL processor that comes with PyXML and
> is maintained by 4Suite?
Mainly because my processor is a kind of programming exercise.
Secondly I think there could be a right to exist for a processor that
operates on a lower level than XSL and is easier to learn, at least
for my needs.
Guy Murphy wrote:
> One might consider...
> <element xml="example">
> <start><tag name="p" /><tag name="p" /><tag name="b" /></start>
> <content />
> <end><tag name="p" /><tag name="p" /><tag name="b" /></end>
This isn't really more easy to read or edit...
> Why for the example you give do you not simply....
> <template:element name="example">
> <b><template:content /></b>
This is an interesting approach but not suitable for my case as the
content of <start></start> is not supposed to be correct xml in all
cases. Internally it is interpreted and processed as pure text.
Maybe I'll just use Python dictionaries but don't think it would be
the ideal solution...
XML-SIG maillist - XML-SIG@python.org