473,665 Members | 2,820 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

disregarding xsi:noNamespace SchemaLocation?

Hello guys,

I was wondering if it was possible to disregard the
xsi:noNamespace SchemaLocation. For validation it's obviously easier to
have it point to say a local directory but the final
xsi:noNamespace SchemaLocation has to point to a specific location that
is not local. I was wondering if it was possible to make sure that the
xsi:noNamespace SchemaLocation points to the non local location, force
the parser to disregard the xsi:noNamespace SchemaLocation 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 2467
Jean-François Michaud wrote:
I was wondering if it was possible to disregard the
xsi:noNamespace SchemaLocation. For validation it's obviously easier to
have it point to say a local directory but the final
xsi:noNamespace SchemaLocation has to point to a specific location that
is not local. I was wondering if it was possible to make sure that the
xsi:noNamespace SchemaLocation points to the non local location, force
the parser to disregard the xsi:noNamespace SchemaLocation 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.co m/documentation/schema-processing/commandline.htm l>
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...@yaho o.dewrote:
Jean-François Michaud wrote:
I was wondering if it was possible to disregard the
xsi:noNamespace SchemaLocation. For validation it's obviously easier to
have it point to say a local directory but the final
xsi:noNamespace SchemaLocation has to point to a specific location that
is not local. I was wondering if it was possible to make sure that the
xsi:noNamespace SchemaLocation points to the non local location, force
the parser to disregard the xsi:noNamespace SchemaLocation 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.co m/documentation/schema-processing/commandline.htm l>
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
1795
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 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://.../asc.xsd"> other stuff... </HC_DATA>
0
1495
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 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://.../asc.xsd"> other stuff... </HC_DATA>
1
2316
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
4539
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 and serialize it. My customer gave me an example xml file, how it should look like, and it begins with <?xml version="1.0" encoding="UTF-8"?>
1
7808
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 definition looks like this : public class MyClass
1
7784
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 version="1.0" encoding="utf-8"?> <TitleNotification xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" d1p1:noNameSpaceSchemaLocation="http://www.pdr.com&#xA;https://extw3c.pdr.co...
3
6744
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 are valid to a schema I've developed. I want the root element to look like this: <TestCase xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="TestCaseSchema_03.xsd"> I've tried several variations of...
1
7783
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" xsi:noNamespaceSchemaLocation="code/can.xsd"> My python script I have written is:
3
5406
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 need the following ' xsi:noNamespaceSchemaLocation="obj-envelope.xsd"' to be included in the in the main opening tag
0
8438
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
8348
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
8863
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...
0
8779
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7376
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...
1
6187
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5660
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
2765
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
2004
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.