472,145 Members | 1,618 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,145 software developers and data experts.

XML-XSD Processing/Creation.

Hi All,

So i'm working with the WITSML standard, which is a pretty
massive standard defined in XML for the transfer of oilfield data.
There are a ton of XSD files for defining and checking all data in the
WITSML format. I'd like to be able to easily create XML based on the
types defined by the WITSML XSD files. Is there any way to create a
basic XML object based on an XSD file and then populate it with data.
Can i create python classes based off the XSD files? What else can I
do with the XSD files? I'm looking for a really simplistic way to work
with WITSML in python.

Regards,
Kenneth Miller

Thanks a ton!
Jan 2 '08 #1
4 3997
-On [20080102 18:21], xkenneth (xk******@gmail.com) wrote:
So i'm working with the WITSML standard, which is a pretty
massive standard defined in XML for the transfer of oilfield data.
I cannot answer (yet) the question of generating XML data from an XSD. But for
writing out XML files I like to use either ElementTree or lxml. Very easy and
straightforward use of XML from Python in my opinion.

--
Jeroen Ruigrok van der Werven <asmodai(-at-)in-nomine.org/ asmodai
イェルーン ラウフãƒ*ック ヴァン デル ウェルヴェン
http://www.in-nomine.org/ | http://www.rangaku.org/
Once sent from the Golden Hall...
Jan 2 '08 #2
xkenneth schrieb:
Hi All,

So i'm working with the WITSML standard, which is a pretty
massive standard defined in XML for the transfer of oilfield data.
There are a ton of XSD files for defining and checking all data in the
WITSML format. I'd like to be able to easily create XML based on the
types defined by the WITSML XSD files. Is there any way to create a
basic XML object based on an XSD file and then populate it with data.
Can i create python classes based off the XSD files? What else can I
do with the XSD files?
This might be worth looking at: http://www.rexx.com/~dkuhlman/#generateDS

cheers
Paul

Jan 2 '08 #3
paul wrote:
>Can i create python classes based off the XSD files? What else can I
do with the XSD files?
This might be worth looking at: http://www.rexx.com/~dkuhlman/#generateDS
If it's really such a complex XML language, the tool above might or might not
be of any help, as it doesn't support the whole XSD standard (and XML Schema
is very complex). It's worth a try, but don't expect too much.

The lxml way of dealing with XML languages is namespace implementation:

http://codespeak.net/lxml/dev/element_classes.html#id1

However, there isn't currently a way to automatically bootstrap an
implementation, especially not in XSD, so it depends on the language how much
work it will be to get this to a usable state.

Stefan
Jan 3 '08 #4
On Jan 3, 1:55 am, Stefan Behnel <stefan.behnel-n05...@web.dewrote:
paul wrote:
Can i create python classes based off the XSD files? What else can I
do with the XSD files?
This might be worth looking at:http://www.rexx.com/~dkuhlman/#generateDS

If it's really such a complex XML language, the tool above might or might not
be of any help, as it doesn't support the whole XSD standard (and XML Schema
is very complex). It's worth a try, but don't expect too much.

The lxml way of dealing with XML languages is namespace implementation:

http://codespeak.net/lxml/dev/element_classes.html#id1

However, there isn't currently a way to automatically bootstrap an
implementation, especially not in XSD, so it depends on the language how much
work it will be to get this to a usable state.

Stefan
Just a bump in an attempt to get some more help.
Jan 3 '08 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Phil Powell | last post: by
8 posts views Thread by Robert J Egan | last post: by
reply views Thread by Stylus Studio | last post: by
5 posts views Thread by Kurt Bauer | last post: by
5 posts views Thread by laks | last post: by
9 posts views Thread by Lie | last post: by
10 posts views Thread by =?Utf-8?B?YzY3NjIyOA==?= | last post: by
reply views Thread by Jacker | last post: by
reply views Thread by Saiars | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.