Hello Esther,

A good few of the samples distributed with Xerces-C can do this for you.
The DOMCount sample, for instance, will do this; if you do this command
from the samples/data directory

      DOMCounter -n -s -f personal-schema.xml

then personal-schema.xml will indeed be validated according to its schema
(you can verify this by introducing errors into the file).  To see how it's
done, you can just look at DOMCount's source--and ignore the bits that
count up elements for you).

Hope that helps
Neil
Neil Graham
XML Parser Development
IBM Toronto Lab
Phone:  905-413-3519, T/L 969-3519
E-mail:  [EMAIL PROTECTED]




|---------+---------------------------------->
|         |           Esther Parrilla Endrino|
|         |           <esther.parrilla@deimos|
|         |           -space.com>            |
|         |                                  |
|         |           02/19/2003 01:59 PM    |
|         |           Please respond to      |
|         |           xerces-c-dev           |
|         |                                  |
|---------+---------------------------------->
  
>---------------------------------------------------------------------------------------------------------------------------------------------|
  |                                                                                    
                                                         |
  |       To:       [EMAIL PROTECTED]                                        
                                                         |
  |       cc:                                                                          
                                                         |
  |       Subject:  Simple example                                                     
                                                         |
  |                                                                                    
                                                         |
  |                                                                                    
                                                         |
  
>---------------------------------------------------------------------------------------------------------------------------------------------|



Hello all,

Can anybody tell me where to find a very simple example of how to
validate an XML against its schema?
I have made this in Java but in C++ I do not find a clear example that
runs ok... :(

Thanks in advance,

e~

--

Esther Parrilla Endrino
Ground Segment Systems Division
DEIMOS SPACE S.L.
e-mail: [EMAIL PROTECTED]
tel:               00 34 91 806 34 57

~ Code matters more than comercials ~

--



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





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

Reply via email to