Hi,
        Xerces does not need to store the data in a more structured 
fashion. Pathan 2 (an implementation of XPath2 - 
software.decisionsoft.com) does need to do this. You could take a look an 
see if it will do what you need.

Gareth



On Thu, 18 Sep 2003, Stefano Zacchiroli wrote:

> 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
> 
> 

-- 
Gareth Reakes, Head of Product Development  +44-1865-203192
DecisionSoft Limited                        http://www.decisionsoft.com
XML Development and Services




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

Reply via email to