472,371 Members | 1,336 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Any tools for validating xml against schemas?

I'm just starting out in XML for my business, and already I'm given a
large and complicated XML schema. If I write XML files based on the
schema, is there any tool that
1. Tells me if I'm valid according to the schema
and/or
2. Tells me that I'm nesting my tags properly, and in general creating
well formed XML files?
Thanks,
Marvin

Jul 20 '05 #1
6 8278
COHENMARVIN wrote:
I'm just starting out in XML for my business, and already I'm given a
large and complicated XML schema. If I write XML files based on the
schema, is there any tool that
More recent versions of xmllint can validate
against DTD and also against Schema.
1. Tells me if I'm valid according to the schema
It is usually a file which is valid against a
Schema and not the author of the file.
and/or
2. Tells me that I'm nesting my tags properly, and in general creating
well formed XML files?


Well-Formedness is also checked by xmllint.
Jul 20 '05 #2
XMLLint is exactly what I need to validate xml against schemas. The
only problem is, I'm confined to a Windows system, and XMLLint seems to
be a unix program. Is there anything similar to XMLLint that works on
Windows?
Thanks,
Marvin

Jürgen Kahrs wrote:
COHENMARVIN wrote:
I'm just starting out in XML for my business, and already I'm given a large and complicated XML schema. If I write XML files based on the schema, is there any tool that


More recent versions of xmllint can validate
against DTD and also against Schema.
1. Tells me if I'm valid according to the schema


It is usually a file which is valid against a
Schema and not the author of the file.
and/or
2. Tells me that I'm nesting my tags properly, and in general creating well formed XML files?


Well-Formedness is also checked by xmllint.


Jul 20 '05 #3
COHENMARVIN wrote:
XMLLint is exactly what I need to validate xml against schemas. The
only problem is, I'm confined to a Windows system, and XMLLint seems to
be a unix program. Is there anything similar to XMLLint that works on
Windows?


I have never used xmllint on Windows, but with
Google I quickly found these:

ftp://ftp.zlatkovic.com/pub/libxml/
http://www.zlatkovic.com/libxml.en.html
http://www.pinkjuice.com/howto/vimxml/setup.xml#xmllint

Remember that xmllint comes with libxml.
Jul 20 '05 #4
COHENMARVIN wrote:
XMLLint is exactly what I need to validate xml against schemas. The
only problem is, I'm confined to a Windows system, and XMLLint seems to be a unix program. Is there anything similar to XMLLint that works on Windows?
Thanks,
Marvin

You could try XmlStarlet (http://xmlstar.sourceforge.net/)

It is free and based on same libxml2 library as
xmllint and has windows binaries.

The XmlStarlet toolkit's feature set includes options to:

* Check or validate XML files (simple well-formedness check, DTD,
XSD, RelaxNG)
* Calculate values of XPath expressions on XML files (such as
running sums, etc)
* Search XML files for matches to given XPath expressions
* Apply XSLT stylesheets to XML documents (including EXSLT support,
and passing parameters to stylesheets)
* Query XML documents (ex. query for value of some elements of
attributes, sorting, etc)
* Modify or edit XML documents (ex. delete some elements)
* Format or "beautify" XML documents (as changing indentation, etc)
* Fetch XML documents using http:// or ftp:// URLs
* Browse tree structure of XML documents (in similar way to 'ls'
command for directories)
* Include one XML document into another using XInclude
* XML c14n canonicalization
* Escape/unescape special XML characters in input text
* Print directory as XML document
* Convert XML into PYX format (based on ESIS - ISO 8879), and vice
versa
--MG

Jul 20 '05 #5
COHENMARVIN wrote:
XMLLint is exactly what I need to validate xml against schemas. The
only problem is, I'm confined to a Windows system, and XMLLint seems to be a unix program. Is there anything similar to XMLLint that works on Windows?
Thanks,
Marvin

You could try XmlStarlet (http://xmlstar.sourceforge.net/)

It is free and based on same libxml2 library as
xmllint and has windows binaries.

The XmlStarlet toolkit's feature set includes options to:

* Check or validate XML files (simple well-formedness check, DTD,
XSD, RelaxNG)
* Calculate values of XPath expressions on XML files (such as
running sums, etc)
* Search XML files for matches to given XPath expressions
* Apply XSLT stylesheets to XML documents (including EXSLT support,
and passing parameters to stylesheets)
* Query XML documents (ex. query for value of some elements of
attributes, sorting, etc)
* Modify or edit XML documents (ex. delete some elements)
* Format or "beautify" XML documents (as changing indentation, etc)
* Fetch XML documents using http:// or ftp:// URLs
* Browse tree structure of XML documents (in similar way to 'ls'
command for directories)
* Include one XML document into another using XInclude
* XML c14n canonicalization
* Escape/unescape special XML characters in input text
* Print directory as XML document
* Convert XML into PYX format (based on ESIS - ISO 8879), and vice
versa
--MG

Jul 20 '05 #6
COHENMARVIN wrote:
XMLLint is exactly what I need to validate xml against schemas. The
only problem is, I'm confined to a Windows system, and XMLLint seems to be a unix program. Is there anything similar to XMLLint that works on Windows?
Thanks,
Marvin

You could try XmlStarlet (http://xmlstar.sourceforge.net/)

It is free and based on same libxml2 library as
xmllint and has windows binaries.

The XmlStarlet toolkit's feature set includes options to:

* Check or validate XML files (simple well-formedness check, DTD,
XSD, RelaxNG)
* Calculate values of XPath expressions on XML files (such as
running sums, etc)
* Search XML files for matches to given XPath expressions
* Apply XSLT stylesheets to XML documents (including EXSLT support,
and passing parameters to stylesheets)
* Query XML documents (ex. query for value of some elements of
attributes, sorting, etc)
* Modify or edit XML documents (ex. delete some elements)
* Format or "beautify" XML documents (as changing indentation, etc)
* Fetch XML documents using http:// or ftp:// URLs
* Browse tree structure of XML documents (in similar way to 'ls'
command for directories)
* Include one XML document into another using XInclude
* XML c14n canonicalization
* Escape/unescape special XML characters in input text
* Print directory as XML document
* Convert XML into PYX format (based on ESIS - ISO 8879), and vice
versa
--MG

Jul 20 '05 #7

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

Similar topics

2
by: Mike:o | last post by:
I need to validate XML documents (orders) against their schema before processing. The PurchaseOrder schema that we use references 3 other schemas using the <imports ...> element. Here is the...
6
by: Iain | last post by:
I've got a system which takes an XML file, translates it into an update gram and then loads it into my database with SQLXML3 (all in dot net). But it's fragile. And the SQLXML 3 error reporting...
1
by: Ryan | last post by:
I have a very complex XDR schema that uses namespaces: xmlns="urn:schemas-microsoft-com:xml-data" xmlns:b="urn:schemas-microsoft-com:BizTalkServer" xmlns:d="urn:schemas-microsoft-com:datatypes"...
1
by: Brendon | last post by:
I have 2 Xsd's The one contains basic type definitions <?xml version="1.0" encoding="utf-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"...
0
by: RJN | last post by:
Hi My web service receives an object of type say MyObject. I want to serialize this object,and then validate the xml against the main xsd. When validation happens, it should also validate...
0
by: RJN | last post by:
hi My web service receives an object of type say MyObject. I want to serialize this object,and then validate the xml against the main xsd. When validation happens, it should also validate...
2
by: josh | last post by:
Hi, I am trying to validate cXML documents against cXML.dtd using the XmlValidatingReader. If I set the XMLValidatingReader's ValidatingType to ValidationType.DTD, I get the following...
7
by: =?Utf-8?B?Q29kZVJhem9y?= | last post by:
I wrote a method to validate and xml file against a schema. If the file does not conform to the schema, it throws an error. It works fine except for one curious thing. If I try to validate an...
4
by: agda.karlberg | last post by:
Hello, I need to remove the DTD reference from an xml document, the reason for this is that we want to validate against a schema instead (which we have locally). It takes up to a minute to fetch...
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
1
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web server and have made sure to enable curl. I get a...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
1
by: Johno34 | last post by:
I have this click event on my form. It speaks to a Datasheet Subform Private Sub Command260_Click() Dim r As DAO.Recordset Set r = Form_frmABCD.Form.RecordsetClone r.MoveFirst Do If...

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.