Thanks for the link Ben, this is another interesting way to go about it.
I have one problem with it though, it's very ambiguous. There is no 
structure to the data, how do I know where a tag starts or ends? What is 
contained in each?

Sean

Ben Bangert wrote:

>I also don't find STAN syntax to be clean. I see you're point about
>generating XML, vs parsing it which the Amara toolset definitely seems
>better for. I think you missed a tool though that does make creating
>XML very nice using Python operator overloading, jaxml
>(http://www.librelogiciel.com/software/jaxml/action_Presentation).
>
>The largest problem I see with the class based approach is that classes
>really have little to do with this as you're not maintaining state or
>using instance methods. The classes are there solely to try and get the
>syntax a little prettier, which I think jaxml does a great job of doing
>without arbitrary classes that are thrown away purely to make some XML.
>
>Your example with jaxml:
>import jaxml
>doc = jaxml.XML_document()
>doc.people()
>doc.person()
>doc.name("Someone")
>doc.age("20")
>doc.birthday("11-10-70")
>doc.output()
>
>Besides for the use of classes, the main problem I see with using them
>to create XML is when you have deeply nested XML structures and having
>a dozen nested class creations for even slightly larger XML documents
>is going to be nightmarish.
>
>I don't think jaxml is necessarilly the best tool out there, but it
>does make it very quick and easy to throw together XML which is
>apparently your goal. If it's missing something, perhaps that could be
>added to it?
>
>Cheers,
>Ben
>
>  
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to