[EMAIL PROTECTED] wrote:
> I use Python/XML packages are xml.dom.minidom and xml.dom.ext (second
> just for PrettyPrint)
You don't need xml.dom.ext for prettyprint. You can use
doc.toprettyxml()
I gather you want to tweak the prettyprinter to not add the newline
before the comment. The only way
I use Python/XML packages are xml.dom.minidom and xml.dom.ext (second
just for PrettyPrint)
--
http://mail.python.org/mailman/listinfo/python-list
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Thank you! I think description as an attribute is readable. But now I'm
> thinking about the order of attributes cause I noticed that for
> instance X="0" Y="0" Z="0" set in this order by my script is printed
> like X="0" Z="0" Y="0" therefore it co
Thank you! I think description as an attribute is readable. But now I'm
thinking about the order of attributes cause I noticed that for
instance X="0" Y="0" Z="0" set in this order by my script is printed
like X="0" Z="0" Y="0" therefore it could be messy - I wouldn't like
the description to be som
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Thank you for a possible solution, but it's not what I'm looking for,
> cause something like would look quite similar... for
> big elements like robot it would be ok to use comment as a child of
> element - but imagine I'd like to comment transform
Thank you for a possible solution, but it's not what I'm looking for,
cause something like would look quite similar... for
big elements like robot it would be ok to use comment as a child of
element - but imagine I'd like to comment transformation:
I wouldn't like to make this
element parent of
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> which is already not very readable - but it becomes even worse along
> with increasing number of comments
How about:
armar3
:
:
XML editor + xpath makes this way more easier to use by humans compared to
normal comments. Also, if yo
I currently use xml.dom.minidom and ext to create a dom-tree which I
would write to an xml-file.
My intention is to create something like this:
but I didn't find any possibility either to put comment directly behind
a tag nor did I found how to put a new line like in example betw