I'd like to use XSV for validating an XML file in Python.
I am working on Linux Debian platform.
I'm not sure how to install XSV and how to configure it. My goal is to
be able to import the XSV library in Python and be able to use it's
functions.
XSV v2.10 for Debian available here: ftp://ftp.cogsci.ed.ac.uk/pub/XSV/XSV_2.10-1_all.deb
How do i do that? 6 2725 bm*****@gmail.com wrote:
I'd like to use XSV for validating an XML file in Python.
I am working on Linux Debian platform.
I'm not sure how to install XSV and how to configure it. My goal is to
be able to import the XSV library in Python and be able to use it's
functions.
You can use "dpkg" to install the .deb. Read "man dpkg".
BTW: any reason you need to use XSV? There are some other libraries out there
that can validate XML based on XML Schema and RelaxNG, e.g. lxml. They are
much more powerful than XSV.
Stefan
No particular reason for XSV
I just want to validate XML files against an XML schema through Python.
If you can suggest any other package for debian, I'll be glad to try
it.
Michel
Stefan Behnel wrote:
bm*****@gmail.com wrote:
I'd like to use XSV for validating an XML file in Python.
I am working on Linux Debian platform.
I'm not sure how to install XSV and how to configure it. My goal is to
be able to import the XSV library in Python and be able to use it's
functions.
You can use "dpkg" to install the .deb. Read "man dpkg".
BTW: any reason you need to use XSV? There are some other libraries out there
that can validate XML based on XML Schema and RelaxNG, e.g. lxml. They are
much more powerful than XSV.
Stefan
bm*****@gmail.com wrote:
Stefan Behnel wrote:
>BTW: any reason you need to use XSV? There are some other libraries out there that can validate XML based on XML Schema and RelaxNG, e.g. lxml. They are much more powerful than XSV.
No particular reason for XSV
I just want to validate XML files against an XML schema through Python.
If you can suggest any other package for debian, I'll be glad to try
it.
Well, as I said: http://packages.debian.org/unstable/python/python-lxml http://codespeak.net/lxml/
Just try "apg-get install python-lxml".
Stefan
I've read a bit about lxml, didn't found anything related to validating
XML schema...
Maybe you can give more details on how to install lxml and use it in
Python to validate XML files against an XML Schema
I'm going to ask the server administrator to install lxml, so I can't
play around a lot with the system trying stuff.
It would be nice if you can tell me:
- What files to download, where to download them from
- How to install it and configure it
- How to import the functions in Python
Thanks again
Michel
Stefan Behnel wrote:
bm*****@gmail.com wrote:
Stefan Behnel wrote:
BTW: any reason you need to use XSV? There are some other libraries out there
that can validate XML based on XML Schema and RelaxNG, e.g. lxml. They are
much more powerful than XSV.
No particular reason for XSV
I just want to validate XML files against an XML schema through Python.
If you can suggest any other package for debian, I'll be glad to try
it.
Well, as I said:
http://packages.debian.org/unstable/python/python-lxml http://codespeak.net/lxml/
Just try "apg-get install python-lxml".
Stefan
bm*****@gmail.com wrote:
Stefan Behnel wrote:
>>bm*****@gmail.com wrote: Stefan Behnel wrote: BTW: any reason you need to use XSV? There are some other libraries out there that can validate XML based on XML Schema and RelaxNG, e.g. lxml. They are much more powerful than XSV. No particular reason for XSV I just want to validate XML files against an XML schema through Python. If you can suggest any other package for debian, I'll be glad to try it.
Well, as I said:
http://packages.debian.org/unstable/python/python-lxml http://codespeak.net/lxml/
Just try "apg-get install python-lxml".
I've read a bit about lxml, didn't found anything related to validating
XML schema...
Maybe you can give more details on how to install lxml and use it in
Python to validate XML files against an XML Schema
I'm going to ask the server administrator to install lxml, so I can't
play around a lot with the system trying stuff.
It would be nice if you can tell me:
- What files to download, where to download them from
- How to install it and configure it
- How to import the functions in Python
Being able to read can simplify a lot of things these days.
See above to find out how to install lxml on Debian. See the page mentioned
above to find out how to use lxml. I mean this page: http://codespeak.net/lxml/
in particular this section: http://codespeak.net/lxml/#documentation
or simply search that page for things like "XML Schema" or "API documentation".
Hope that gets you on the right track,
Stefan
This works for me.
You were very helpful, thank you!
Michel
Stefan Behnel wrote:
bm*****@gmail.com wrote:
Stefan Behnel wrote:
>bm*****@gmail.com wrote: Stefan Behnel wrote: BTW: any reason you need to use XSV? There are some other libraries out there that can validate XML based on XML Schema and RelaxNG, e.g. lxml. They are much more powerful than XSV. No particular reason for XSV I just want to validate XML files against an XML schema through Python. If you can suggest any other package for debian, I'll be glad to try it.
Well, as I said:
http://packages.debian.org/unstable/python/python-lxml http://codespeak.net/lxml/
Just try "apg-get install python-lxml".
I've read a bit about lxml, didn't found anything related to validating
XML schema...
Maybe you can give more details on how to install lxml and use it in
Python to validate XML files against an XML Schema
I'm going to ask the server administrator to install lxml, so I can't
play around a lot with the system trying stuff.
It would be nice if you can tell me:
- What files to download, where to download them from
- How to install it and configure it
- How to import the functions in Python
Being able to read can simplify a lot of things these days.
See above to find out how to install lxml on Debian. See the page mentioned
above to find out how to use lxml. I mean this page:
http://codespeak.net/lxml/
in particular this section:
http://codespeak.net/lxml/#documentation
or simply search that page for things like "XML Schema" or "API documentation".
Hope that gets you on the right track,
Stefan
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Will Stuyvesant |
last post by:
Can you give a commandline example how to do XML Validation (checking
against a DTD) with Python? Not with 4Suite or other 3rd party
libraries, just the Python standard distribution. I have...
|
by: Herman Geldenhuys |
last post by:
Oops! Sorry guys, wrong list...
Apologies.
----- Original Message -----
From: Herman Geldenhuys
To: python-list@python.org
Sent: Wednesday, January 28, 2004 4:54 PM
Subject: Security...
|
by: Paul Rubin |
last post by:
I frequently find myself writing stuff like
# compute frob function, x has to be nonnegative
x = read_input_data()
assert x >= 0, x # mis-use of "assert" statement
frob = sqrt(x)...
|
by: Edward Diener |
last post by:
Try as I might I can not find a routine in os.path which validates whether
or not a path is syntactically valid, either as a directory or as a file.
This is surprising since, although I know this...
|
by: David S. |
last post by:
I am looking for a way to implement the same simple validation on many
instance attributes and I thought descriptors
(http://users.rcn.com/python/download/Descriptor.htm) looked like the
right...
|
by: wumingshi |
last post by:
Hi,
When validating an XML instance, sometimes the schema is not enough to
expression the validation rules. Additional validation rules may be
expressed in an application-specific way. For...
|
by: mmm |
last post by:
I found Python code to validate a XML document basd on DTD file
layout. The code uses the 'xmlproc' package and these module loading
steps
from xml.parsers.xmlproc import xmlproc
from...
|
by: Nikolaus Rath |
last post by:
Hello,
I need to synchronize the access to a couple of hundred-thousand
files. It seems to me that creating one lock object for each of the
files is a waste of resources, but I cannot use a...
|
by: Edwin.Madari |
last post by:
can you edit the xml and add the dtd/scheama ?
..Edwin
-----Original Message-----
From: python-list-bounces+edwin.madari=verizonwireless.com@python.org
On Behalf Of Ben Finney
Sent:...
|
by: Bryan |
last post by:
I want my business objects to be able to do this:
class Person(base):
def __init__(self):
self.name = None
@base.validator
def validate_name(self):
if not self.name: return
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
| |