473,326 Members | 2,813 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 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 8349
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
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...
0
isladogs
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 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.