473,396 Members | 1,815 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,396 software developers and data experts.

disregarding xsi:noNamespaceSchemaLocation?

Hello guys,

I was wondering if it was possible to disregard the
xsi:noNamespaceSchemaLocation. For validation it's obviously easier to
have it point to say a local directory but the final
xsi:noNamespaceSchemaLocation has to point to a specific location that
is not local. I was wondering if it was possible to make sure that the
xsi:noNamespaceSchemaLocation points to the non local location, force
the parser to disregard the xsi:noNamespaceSchemaLocation and force it
to validate against a specific XSD in a location of our choice to
avoid having to tinker with the SchemaLocation XML attribute just for
the validation.

I'm using Saxon8

Any thoughts?

Regards
Jean-Francois Michaud
Jun 27 '08 #1
2 2452
Jean-François Michaud wrote:
I was wondering if it was possible to disregard the
xsi:noNamespaceSchemaLocation. For validation it's obviously easier to
have it point to say a local directory but the final
xsi:noNamespaceSchemaLocation has to point to a specific location that
is not local. I was wondering if it was possible to make sure that the
xsi:noNamespaceSchemaLocation points to the non local location, force
the parser to disregard the xsi:noNamespaceSchemaLocation and force it
to validate against a specific XSD in a location of our choice to
avoid having to tinker with the SchemaLocation XML attribute just for
the validation.

I'm using Saxon8
You might want to ask on the Saxon mailing list.
For the current release Saxon 9 the documentation is online here
<URL:http://www.saxonica.com/documentation/schema-processing/commandline.html>
and suggests that you can set the -xsd:file;file option the specify
schema documents to be used for validation.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Jun 27 '08 #2
On Apr 14, 10:30 am, Martin Honnen <mahotr...@yahoo.dewrote:
Jean-François Michaud wrote:
I was wondering if it was possible to disregard the
xsi:noNamespaceSchemaLocation. For validation it's obviously easier to
have it point to say a local directory but the final
xsi:noNamespaceSchemaLocation has to point to a specific location that
is not local. I was wondering if it was possible to make sure that the
xsi:noNamespaceSchemaLocation points to the non local location, force
the parser to disregard the xsi:noNamespaceSchemaLocation and force it
to validate against a specific XSD in a location of our choice to
avoid having to tinker with the SchemaLocation XML attribute just for
the validation.
I'm using Saxon8

You might want to ask on the Saxon mailing list.
For the current release Saxon 9 the documentation is online here
<URL:http://www.saxonica.com/documentation/schema-processing/commandline.html>
and suggests that you can set the -xsd:file;file option the specify
schema documents to be used for validation.
Super! Thanks for the input ;-).

Regards
Jean-Francois Michaud
Jun 27 '08 #3

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

Similar topics

0
by: Lindy | last post by:
I'm using VB .Net and am new to XML. I need to create an XML file with the following lines: <?xml version="1.0" encoding="UTF-8" ?> - <HC_DATA...
0
by: Lindy | last post by:
I'm using VB .Net and am new to XML. I need to create an XML file with the following lines: <?xml version="1.0" encoding="UTF-8" ?> - <HC_DATA...
1
by: Tjerk Wolterink | last post by:
Who can learn me the difference between the these two attributes: xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation and xsi:noNamespaceSchemaLocation
0
by: jr | last post by:
Hello, I have got a schema file "myschema.xsd" from my customer for which I must create xml files. I used xsd.exe to create a class for the schema. I fill an object for that class with data...
1
by: Balaji V | last post by:
Hi, I am creating C# calsses to seralize and deserialize based on xsd. When defining the classes to do seralization i need to specify the schema for the reference. Typically my class...
1
by: AP | last post by:
Hi, I'm getting the following error trying to validate an xml document against a schema: The 'xsi:noNameSpaceSchemaLocation' attribute is not declared My xml file looks like this: <?xml...
3
by: Mark Jerde | last post by:
I've been looking through MSDN, books and googling for a couple hours but haven't found the solution yet. I'm using CSharp in VS .NET 2003. I'm trying to use XmlDocument to save XML files that...
1
by: Craig | last post by:
Hi there, I'm generating an XML script using ElementTree which has the following attributes in the root element: <CANmessages xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"...
3
by: Samuel | last post by:
I use the following code to create the XML from a class object Dim serialize As New System.Xml.Serialization.XmlSerializer(GetType(XYZObject)) serialize.Serialize(obWtiter, obObject) But I...
0
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
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...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...

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.