Hi Stefano,

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.

Currently it is not possible to access actual values via any of the API.
Normally, you can access extra XML Schema information via PSVI API (e.g.
normalized value, element type, etc.) [1]**. The PSVI can be accessed
via DOM/SAX in Xerces. 

We are thinking to add getActualValue() on the ItemPSVI that would
return an object representing actual value. However, currently actual
values have Xerces internal representation (in
org.apache.xerces.impl.dv.xs classes). Would it be useful to you if we
exposed those values? What kind of information would you like to
retrieve from these internal representations, e.i. what kind of methods
would you like to see?

[1] 
http://xml.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/impl/xs/psvi/package-summary.html
http://xml.apache.org/xerces2-j/javadocs/xni/org/apache/xerces/xni/psvi/package-summary.html
** Note: PSVI interfaces might move to another package in the next
release.

Thank you,
-- 
Elena Litani / IBM Toronto

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

Reply via email to