I do not believe that the schema specifies a namespace at this time.
However, the instance documents don't specify one, either. So, I would think
there wouldn't be namespace problems because both the schema and the
instance are using the default namespace. Right?

As for the instance document, the root element (AuditMessage) starts with

<AuditMessage
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>......</AuditMessage>

If I need to add something to specify a namespace, I don't know what it
might be, because the schema's xsd:schema element looks like this

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema";
elementFormDefault="qualified" attributeFormDefault="unqualified"> 

which does not specify a specific namespace.

*sigh* It all looks good to me, but I haven't mucked around with namespaces
before, so I don't know.

dan

-----Original Message-----
From: Rachael Ludwick-Sandefer [mailto:[EMAIL PROTECTED]
Sent: Monday, June 30, 2003 11:16 AM
To: [EMAIL PROTECTED]
Subject: RE: Can't seem to validate against an external grammar


You might try a target namespace in the xsd and make sure that matches up
with the xmlns attribute on instance document root elements. You don't need
to specify the schema location in instance documents, but you do need to
specify the namespace the document is in. Then, to get the loaded schema
file to be applied to the instance, the system needs to know that the schema
targets a certain namespace by the targetNamespace attribute on the
xs:schema element.

Somebody correct me if I'm wrong....

Rachael

> -----Original Message-----
> From: Hannum Daniel [mailto:[EMAIL PROTECTED]
> Sent: Monday, June 30, 2003 11:05 AM
> To: '[EMAIL PROTECTED]'
> Subject: Can't seem to validate against an external grammar
> 
> 
> 
> Hi, all
> 
> I'm trying to validate an XML document against an external 
> schema. That is,
> the document itself does not contain a link to the schema; 
> there is a local
> file containing the schema and I will validate every XML file 
> against that.

<snip>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-------------------------------------------------------------------------------
This message and any included attachments are from Siemens Medical Solutions 
USA, Inc. and are intended only for the addressee(s).  
The information contained herein may include trade secrets or privileged or 
otherwise confidential information.  Unauthorized review, forwarding, printing, 
copying, distributing, or using such information is strictly prohibited and may 
be unlawful.  If you received this message in error, or have reason to believe 
you are not authorized to receive it, please promptly delete this message and 
notify the sender by e-mail with a copy to [EMAIL PROTECTED]  Thank you

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to