(That is bloom as in http://www.wmhelp.com/xmlpad2.htm ;-)
Suddenly, OK, over a number of months, our design environment at work
has sprouted a wealth of XML configuration files, DTD's etc. The time
has come when I need to loose my XML cherry.
So , I guess I need to learn Elementtree.
In supporting our design environment I think I will need
1) An editor that can read in a DTD or XML Schema Definition, (XSD),
as well as an XML file, and help me to write conforming XML.
2) A tool to extract an XSD from XML examples.
Hmm, I'm also thinking about a Python project along the lines of
something that could translate between the world of the Traits package
(http://code.enthought.com/traits/), and XSD/DTD/XML. Has anyone done
this before?
Thanks in advance, Paddy.
I've been trying to get the string formatting operator (%) to work with
more arguments than the format string requires, but I can find no way to
do that. For example:
>>> "%i" % 10
'10'
>>> "i" % 10
Traceback (most recent call last):
File "<stdin>", line 1, in ?
TypeError: not all arguments converted during string formatting
The thing is, I want to get format strings from the user, and I don't
want to require the user to consume all the arguments. docs.python.org
doesn't seem to have any clues on how to achieve this, and I can't think
of what to google for.
Could it be as I fear, that it is impossible?
Fredrik Tolf