473,486 Members | 2,162 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

registering new XSR object

Xh
Hi all,

I have problem with registering multi XML Schemas

Based on:
http://publib.boulder.ibm.com/infoce...c/r0022716.htm

My commands are:

REGISTER XMLSCHEMA 'http://test/patient'
FROM 'file:///H:/ibm/workspace/TestEngine/patient.xsd'
AS Administrator.PATIENT

the above runs without error

I can see (in Control Center) new registered XSR with non-complete
(temporary) status

then I add the address schema with this command

ADD XMLSCHEMA DOCUMENT TO Administrator.PATIENT
ADD 'http://test/address'
FROM 'file:///H:/ibm/workspace/TestEngine/address.xsd'
COMPLETE

this returns an error: SQL20329N

cannot find "NAMESPACE" declared as "tnsa"

my XSD files are valid, the same error I receive when deploying XSD
with DB2 Developer
Workbench

and now how my XSD files look like:
patient.xsd:

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://test/patient" xmlns:tns="http://test/patient"
xmlns:tnsa="http://test/address">
<xs:import namespace="tnsa" schemaLocation="address.xsd"/>
<xs:element name="patient" type="tns:patientType"/>
<!-- and so on.... -->
</xs:schema>

my address.xsd:

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://test/address" xmlns:tns="http://test/address">
<xs:element name="postalCode" type="tns:postalCodeType"/>
<!-- and so on.... -->
</xs:schema>
I'd appreciate any help on working multi XML Schemas out.

thanks in advance

best regards
Łukasz

Mar 20 '07 #1
1 2094
Xh
Hi,

Maybe someone will need this.

I found the solution, based on: http://www.xfront.com/ZeroOneOrManyNamespaces.html

(the Heterogeneous Namespace Design section)

the truth is that DB2 Developer Workbench can not validate XSD files
because external namespaces are not imported

but it works ;)

I can register them without any errors

best regards
Łukasz

Mar 21 '07 #2

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

Similar topics

1
1990
by: Prashanti | last post by:
Hi , I have built a windows application in c sharp which using the methods of COM Object. The application is working fine. Now need to make this application a package to deploy at client...
6
1967
by: Daniel Bass | last post by:
The scenario: ------------- I've created a simple COM object according to a tutorial I found: http://www.csharphelp.com/archives/archive281.html It automatically creates a Type Library...
6
4127
by: ian | last post by:
Hi All I have a DLL (nahd.dll) that has been supplied to me will a PBX phone system. According to the documentation it is to allow developers to write there own applications to monitor the...
2
1976
by: glenn | last post by:
I have written a COM Server in C# and its working perfectly. I am not ready to deploy to client computers to begin the real testing and am now wondering how to perform. The part that confuses me...
3
1106
by: CharlesA | last post by:
This is not really a problem I'm having it's more of a general question if you had an html page with embedded javascript script and you sent it to the browser if the script wasn't buggy, it...
13
3023
by: noone | last post by:
consider the following problem: You have a C style library and API that uses callbacks to implement functionality. Examples of this are X11 API, OpenGL/GLUT...The List goes on. The power of...
7
1598
by: Chris Jewell | last post by:
Hi, I'm wondering what the best way of registering a data storage class with a data handler class is. At the moment I have two classes: class EpiCovars // Storage class { ....
1
2172
by: shivkumar2004 | last post by:
Hi!, I am developing a chat system using vb.net in vs 2005. I am getting the following error while registering the events. error details: System.InvalidOperationException was unhandled...
2
2205
by: linuxfedora | last post by:
I have written a C# program which has an activeX control (abc.ocx) in Visual Studio 2005, and used the setup and deployment project to create an setup.exe and setup.msi that act as an installer. ...
0
2087
by: Tim Spens | last post by:
--- On Fri, 6/27/08, Tim Spens <t_spens@yahoo.comwrote: I think I know where the problem is but I'm unsure how to fix it. When I call Register_Handler(...) from python via...
0
7126
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,...
1
6842
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...
0
7330
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...
0
5434
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 projectplanning, coding, testing,...
1
4865
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...
0
4559
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...
0
3070
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3070
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
598
muto222
php
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.