You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xerces.apache.org by Emre Turkay <em...@vanderbilt.edu> on 2005/05/30 00:33:44 UTC
domcount with a simple schema
Hi,
I've written a test schema file:
<?xml version='1.0' encoding='ISO-8859-1'?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
When I run domcount with this file, I get errors shown below:
----------------------------------------------
./domcount -v=always -n -s -f test.xsd
Error at file [skipped]/test.xsd, line 1, char 59
Message: Unknown element 'xsd:schema'
Error at file [skipped]/test.xsd, line 1, char 59
Message: Attribute '{http://www.w3.org/2000/xmlns/}xsd' is not
declared for element 'xsd:schema'
Errors occured, no output available.
----------------------------------------------
When I don't use the -v flag, it works fine. Did I get the meaning of -v
flag wrong?
Thanks,
emre
Re: domcount with a simple schema
Posted by Emre Turkay <em...@vanderbilt.edu>.
Hi Axel,
Thanks, that's exactly the information I was looking for. Furthermore,
is there an easier way to parse an XML schema using Xerces. Yes, I can
do it just like any other XML document, however I think that Xerces
source code itself may has the same functionality implemented. My
question is maybe it is published as an external project, or there may
be a way for reuse?
Thanks,
emre
Axel Weiß wrote:
>Emre Turkay wrote:
>
>
>>Hi,
>>
>>I've written a test schema file:
>>
>><?xml version='1.0' encoding='ISO-8859-1'?>
>><xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
>>
>>When I run domcount with this file, I get errors shown below:
>>----------------------------------------------
>>./domcount -v=always -n -s -f test.xsd
>>
>>
>
>Hi Emre,
>
>maybe this blog entry will answer your question:
>http://blog.parthenoncomputing.com/xerces/archives/2005/04/can_i_validate.html
>
>Cheers,
> Axel
>
>
>
>>Error at file [skipped]/test.xsd, line 1, char 59
>> Message: Unknown element 'xsd:schema'
>>
>>Error at file [skipped]/test.xsd, line 1, char 59
>> Message: Attribute '{http://www.w3.org/2000/xmlns/}xsd' is not
>>declared for element 'xsd:schema'
>>
>>Errors occured, no output available.
>>----------------------------------------------
>>When I don't use the -v flag, it works fine. Did I get the meaning of
>>-v flag wrong?
>>
>>Thanks,
>>
>>emre
>>
>>
>
>
>
Re: domcount with a simple schema
Posted by Axel Weiß <aw...@informatik.hu-berlin.de>.
Emre Turkay wrote:
> Hi,
>
> I've written a test schema file:
>
> <?xml version='1.0' encoding='ISO-8859-1'?>
> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
>
> When I run domcount with this file, I get errors shown below:
> ----------------------------------------------
> ./domcount -v=always -n -s -f test.xsd
Hi Emre,
maybe this blog entry will answer your question:
http://blog.parthenoncomputing.com/xerces/archives/2005/04/can_i_validate.html
Cheers,
Axel
> Error at file [skipped]/test.xsd, line 1, char 59
> Message: Unknown element 'xsd:schema'
>
> Error at file [skipped]/test.xsd, line 1, char 59
> Message: Attribute '{http://www.w3.org/2000/xmlns/}xsd' is not
> declared for element 'xsd:schema'
>
> Errors occured, no output available.
> ----------------------------------------------
> When I don't use the -v flag, it works fine. Did I get the meaning of
> -v flag wrong?
>
> Thanks,
>
> emre
--
Humboldt-Universität zu Berlin
Institut für Informatik
Signalverarbeitung und Mustererkennung
Dipl.-Inf. Axel Weiß
Rudower Chaussee 25
12489 Berlin-Adlershof
+49-30-2093-3050
** www.freesp.de **