XML schemas have nothing to do with X-Path. It's just a way of describing your
xml data with a rich
and complex grammar.
You can have a schema contrained document (for validation) and access the data
stored in it
through X-Path using xalan or any other parser.
If you need the full implementation of X-Path to browse your xml documents, you
must use
the external xalan library. You parse your documents with xerces (SAX or DOM)
to access
nodes and attributes and you use xalan to apply complex X-Path requests to your
xml
documents (it's 2 different steps).
Some java parsers (dom4j for example) implement DOM parsing and X-Path browsing
in the same library.
So you can create a DOM document from an xml instance and apply any X-Path
request to this document
to retrieve nodes values or anything else.
"Jing Yang"
<[EMAIL PROTECTED] Pour : <[EMAIL PROTECTED]>
ent.com> cc :
Objet : RE: Xerces supports
XPath ?
12/02/2003 03:24
PM
Veuillez
r�pondre �
xerces-j-user
My XML instance document is constrained by W3C schema and XPath.
I hope one processor can perform two tasks.
Does anybody have any clue to do that ?
Jing Yang
> -----Original Message-----
> From: Bob Foster [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, December 02, 2003 8:24 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Xerces supports XPath ?
>
>
> Lingzhi Zhang wrote:
>
> > It is just a minimum xpath parser. For full support to
> XPath 1.0, try
> > Xalan.
>
> By "minimum" do you mean it supports only the XPath syntax allowed by
> XML Schema selections and fields?
>
> Bob
>
>
> ---------------------------------------------------------------------
> 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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]