Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #52040

Re: Working with XML/XSD

Date 2013-08-06 16:33 +0300
From Burak Arslan <burak.arslan@arskom.com.tr>
Subject Re: Working with XML/XSD
References <CAObAkcbHxO6sQ33ACNXWSA82=sTc1HTKwMn88tw1Vk19AEsa5w@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.252.1375795994.1251.python-list@python.org> (permalink)

Show all headers | View raw


On 08/06/13 01:56, David Barroso wrote:
> Hello,
> I was wondering if someone could point me in the right direction. I
> would like to develop some scripts to manage Cisco routers and
> switches using XML. However, I am not sure where to start. Does
> someone have some experience working with XML, Schemas and things like
> that? Which libraries do you use? Do you know of any good tutorial?
>

Hi,

I develop Spyne (http://spyne.io), it does let you define Xml Schema
types, generate the Schema documents, (and in the upcoming release,
parse them) and also does both serialization and deserialization of
python objects from and to xml according to definitions in the xml
schema. It also does RPC :)

In case you don't want to use a framework, use lxml, it's a very good
xml manipulation library based on libxml2/libxslt. You can use
lxml.objectify for xml serialization as well.

Best,
Burak

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Working with XML/XSD Burak Arslan <burak.arslan@arskom.com.tr> - 2013-08-06 16:33 +0300

csiph-web