It seems to me that the following isn't possible with the xerces API, am
I wrong?

I would like, for example, to validate a document like:

  <date>1999-05-31-05:00</date>

against an XML Schema that states that the "date" element should have
type xsd:date.

Validation works fine, but I would like to access the validated data not
as a mere sequence of character, but as a some more structured data. For
example I would like to access the year, the month and so on without
having to reparse data that have already been parsed.

Is it possible? Using a simple SAX handler it seems not.

I know that neither SAX nor DOM APIs permit this kind of stuff, I would
like to know if there is a way to attach some handler/callback to xerces
where schema validation is performed.

I suppose that there is some abstract notation of dates and other schema
simple types somewhere because it's needed to perform the validation!

Thanks

PS
  sorry for the x-post, this should be a xerces-c-user question, but
  there isn't such a list

-- 
Stefano Zacchiroli  --  Master in Computer Science @ Uni. Bologna, Italy
[EMAIL PROTECTED],debian.org,bononia.it}  -  http://www.bononia.it/zack/
"  I know you believe you understood what you think I said, but I am not
sure you realize that what you heard is not what I meant!  " -- G.Romney

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

Reply via email to