<!-- books.xml --><catalog> <book isbn="1-880985-26-8" binding="paperback" ebook="mobi" altformat="pdf" etc="ManyMore"> <title>The Consumer</title> <author>M. Gira</author> </book> <book isbn="0-679775-43-9" binding="paperback" ebook="mobi" altformat="pdf" etc="ManyMore"> <title>The Wind-Up Bird Chronicle</title> <author>Haruki Murakami</author> </book> <!-- imagine more entries here... --></catalog>Is there an advantage to using xslt compared to converting it to something like json?
Sayth
To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy+unsubscribe@googlegroups.com <mailto:sqlalchemy+unsub...@googlegroups.com>.
To post to this group, send email to sqlal...@googlegroups.com <mailto:sqlalchemy@googlegroups.com>.
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.
The last time I had to domething like this, I converted all xml attributes to tags using an XSLT sheet and then used lxml to populate a sqla object.
You can also do it manually as in the link but use lxml etree which might make the code a bit easier to read. IMO sax is a bit more performant than etree but can get a bit confusing.
HTH
AM
--
You received this message because you are subscribed to a topic in the Google Groups "sqlalchemy" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sqlalchemy/zpjw1nOkRWg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sqlalchemy+unsubscribe@googlegroups.com.
To post to this group, send email to sqlal...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy+...@googlegroups.com.
The part I am not understanding though is what does SqlAlchemy want my data to look like to be an acceptable format.
I know how to create my models and db in SqlAlchemy and though I am a beginner at etree can use it but can't find examples to see what my end goal should look like.
Sayth
To unsubscribe from this group and all its topics, send an email to sqlalchemy+...@googlegroups.com.