473,657 Members | 2,571 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

validating parser

Is there a Python module which will do XSD validation?

Thanks,
Robert
--
Robert Schweikert MAY THE SOURCE BE WITH YOU
(ro************ ***@mathworks.c om) LINUX
Sep 20 '07 #1
2 1468
On 9/20/07, Robert Schweikert <ro************ ***@mathworks.c omwrote:
Is there a Python module which will do XSD validation?
http://mail.python.org/pipermail/xml...ne/011527.html
Sep 20 '07 #2
David wrote:
On 9/20/07, Robert Schweikert <ro************ ***@mathworks.c omwrote:
>Is there a Python module which will do XSD validation?

http://mail.python.org/pipermail/xml...ne/011527.html
.... of which lxml (i.e. libxml2) is definitely the most standards compliant
(and feature rich anyway).

Stefan
Sep 21 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
6779
by: jmb | last post by:
Can anyone help me out. I have a set of xml documents and a dtd which is not refered to in the xml documents themselves. I've written the code to check that the xml is well formatted using org.apache.xerces.parsers.DOMParser and i've created my own entityResolver(). When i try and assign the DTD to the parser using the entityResolver the parser does not throw any error indicating that the xml is invalid.
2
2491
by: Benjamin Niemann | last post by:
Hi, does anyone know of a validating SGML parser in python (like xmlproc.xmlval does for XML)? Goal is to validation HTML against the DTD, similar to validator.w3.org, not all SGML obscurities are required. If real SGML validation is no option, I could probably rewrite the HTML to make it XML conformant and feed it into xmlval - but then I'll have to find a way to map line/column numbers from error messages to positions in the...
2
2402
by: Cees Wesseling | last post by:
Hi, it seems that xmlproc, the default Validating parser, in my setup does not call back to setDocumentLocator. Is there anyway to get a locator in my handler? Below you find an example and its output. Regards, Cees # base imports
0
1664
by: Yona | last post by:
Im trying to validate an xml file using the xercesDomParser, but it seems like it doesnt validate the xml file. I get an error only if the schema isnt valid. the code is: DOMTreeErrorReporter *errReporter = new DOMTreeErrorReporter(); parser->setErrorHandler(errReporter); parser->setDoSchema(TRUE); parser->setDoNamespaces(TRUE);
2
3946
by: Cigdem | last post by:
Hello, I am trying to parse the XML files that the user selects(XML files are on anoher OS400 system called "wkdis3"). But i am permenantly getting that error: Directory0: \\wkdis3\ROOT\home Canonicalpath-Directory4: \\wkdis3\ROOT\home\bwe\ You selected the file named AAA.XML getXmlAlgorithmDocument(): IOException Not logged in
0
1302
by: jean-gert nesselbosch | last post by:
hello everybody, does anybody know of standardization efforts concerning the output of w3cSchema/relaxNG-validating parsers ? I use libxml2 for validation-purposes (w3c-Schema and relaxNG) and have the impression that (a) the output in case the xml-document is not valid, is not very verbose (b) the structure of the returned message (in case of the xml-document
3
6048
by: Shailendra Batham | last post by:
hi guys I need your suggestions / opinion for doing this the right way. I have a XML and a Schema for the same What I want is when its validated against the schema, it should give custom errors saying what happened and where...... is it possible to do that ? for eg. if the Attribute is missing or invalid in the following element <Watch ID="999d999">
2
2125
by: srujana | last post by:
Hi I am validating an xml document against schema . when i am passing the xml file location as an input to the parse method String XmlDocumentUrl="E:/books.xml"; parser.parse(XmlDocumentUrl); it is working fine.
1
2772
by: dees | last post by:
Hi All, i m using the following code for validation but it terminates with this message--- "terminate called after throwing an instance of 'xercesc_2_7::DOMException' Aborted" #include <xercesc/util/PlatformUtils.hpp> #include <xercesc/parsers/AbstractDOMParser.hpp> #include <xercesc/dom/DOMImplementation.hpp> #include <xercesc/dom/DOMImplementationLS.hpp> #include <xercesc/dom/DOMImplementationRegistry.hpp>
2
2276
by: tarunprabhu | last post by:
Hi, I am using Xerces 2.8. When I try to validate a file which is in the same folder as the xsd, it works fine. But if I try to validate an XML file which is in some other folder, it gives me a whole load of "unknown element" errors for every element in my XML file. This is the code that I am using: XMLPlatformUtils::Initialize();
0
8392
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8305
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8823
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8503
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8605
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7321
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1607
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.