You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Xènia Albà Cantero <xe...@hotmail.com> on 2006/01/17 17:48:05 UTC
Validation problems
Hi,
I'm trying to validate an xml document against a set of schemas with
xerces-j 2.6.2 and I have some problems:
- I execute java -cp %XERCESPATH% dom.Counter -s -v -f -n schema/*.xml
where xerces path is
XERCESPATH=xerces-2_6_2\xercesImpl.jar;xerces-2_6_2\xercesSamples.jar;xerces-2_6_2\xml-apis.jar;xerces-2_6_2\resolver.jar;
and I get the following error
[Error] part_privada1.xml:14:59: cvc-elt.1: Cannot find the declaration
of element 'PMeta'.
xml and xsd are all in schema/ folder.
My xml document start with
<PMeta xmlns="http://www.ebu.ch/P_META"
xmlns:erd="http://www.ebu.ch/P_META/ExternalReferenceData"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.ebu.ch/P_META P_META1_2.xsd">
..and my XSD with...
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema targetNamespace="http://www.ebu.ch/P_META"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:erd="http://www.ebu.ch/P_META/ExternalReferenceData"
xmlns="http://www.ebu.ch/P_META" elementFormDefault="qualified">
<xsd:import namespace="http://www.ebu.ch/P_META/ExternalReferenceData"
schemaLocation="ExternalReferenceData.xsd"/>
Do you see any mistake ? Can you help ?
Thanks in advance !
Xenia
---------------------------------------------------------------------
To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-users-help@xerces.apache.org