python and parsing an xml file

Stefan Behnel stefan_ml at behnel.de
Wed Feb 23 01:48:20 EST 2011


John Nagle, 22.02.2011 23:56:
> On 2/21/2011 2:08 PM, Matt Funk wrote:
>> On 2/21/2011 11:22 AM, Terry Reedy wrote:
>>> On 2/21/2011 12:30 PM, Matt Funk wrote:
>>>> Hi,
>>>> I was wondering if someone had some advice:
>>>> I want to create a set of xml input files to my code that look as
>>>> follows:
>>>
>>> Why?
>> mmmh. not sure how to answer this question exactly. I guess it's a
>> design decision. I am not saying that it is best one, but it seemed
>> suitable to me. I am certainly open to suggestions. But here are some
>> requirements:
>> 1) My boss needs to be able to read the input and make sense out of it.
>> XML seems fairly self explanatory, at least when you choose suitable
>> names for the properties/tags etc ...
>
> For that, you can provide an XSL stylesheet for the XML file which
> will cause it to be displayed in a browser in a nice format.

Or rather CSS, which you will likely need anyway, even if you decide to use 
an XSLT before hand. CSS is for layout (headings, tables, positioning 
etc.), XSLT is only needed when you require major structural changes or 
format conversions, which likely won't be necessary here.

Stefan




More information about the Python-list mailing list