You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sqlal...@googlegroups.com
Hi
Looking for some guidance using SQLAlchemy. In particular using SQLAlchemy to parse an XML file to the database.
I have read the docs in SQLAlchemy on creating database and classes and tables and then started reading http://docs.sqlalchemy.org/en/rel_0_9/orm/index.html?highlight=xml However i want to understand the end process of importing the XML in and considerations and restrictions of this. Finding a lot of my search results are returning 'persisting xml' tutorials and examples, or very basic examples of typed in database entries (album, artist examples etc)
Can anyone help advise how I would go about this? Any tutorials or information appreciated. Have read tutorials on lxml and elementree as well but again I don't understand if SQLAlchemy needs me to parse via this first if so what is important to understand, or has SQLA another mechanism for handinling importing XML nodes to classes?
Thank you
Sayth
Simon King
unread,
Oct 31, 2013, 8:35:27 AM10/31/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sqlal...@googlegroups.com
SQLAlchemy itself doesn't really have any relationship at all with
XML, but in the source distribution, there are some examples of how
you might import data from an XML file into a database. See:
Which approach you follow really depends on how you are going to be
working with the data.
Hope that helps,
Simon
Sayth Renshaw
unread,
Oct 31, 2013, 4:17:01 PM10/31/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sqlal...@googlegroups.com
On Thursday, October 31, 2013, Simon King wrote:
--
Thanks Simon will have a look at these after work, I appreciate you taking the time to respond.
Sayth
Burak Arslan
unread,
Oct 31, 2013, 4:44:22 PM10/31/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sqlal...@googlegroups.com
On 10/31/13 13:20, Sayth Renshaw wrote:
> Hi
>
> Looking for some guidance using SQLAlchemy. In particular using
> SQLAlchemy to parse an XML file to the database.
Do you want to map an xml schema to a database schema, or you just are
looking for advice on how to put the xml blob on a database?