There are other APIs which are better suited for schema directed editing, for example DOM Level 3 Validation [1]. You won't find this capability in Xerces though.
Thanks. [1] http://www.w3.org/TR/2004/REC-DOM-Level-3-Val-20040127/ Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: mrgla...@ca.ibm.com E-mail: mrgla...@apache.org Mukul Gandhi <muk...@apache.org> wrote on 10/20/2010 11:46:03 PM: > Hi Don, > Xerces provides an API library and a set of tools for XML schema > validation. It is not a GUI layer component, which is there in Eclipse > IDE for example. > > XML schema editing support you're looking for, is available to large > extent in Eclipse Source Editing (WTP SE) project for example (ref, > http://www.eclipse.org/webtools/sse [1]). > > I believe, WTP SE uses Xerces for underlying XML schema support, and > it has some of it's own API implementations. > > Eclipse SE [1] is an open source project, and you may want to look at > that if you're interested. > > On Thu, Oct 21, 2010 at 3:20 AM, Don Smith <dsm...@locke-smith.com> wrote: > > I need to implement an XML editor that validates against XML Schema. I want > > to provide the users XML code completion based on the Schema (likeevery XML > > editor) so they don't have to know the Schema themselves. Can someone point > > me to the classes to use in Xerces for reading the Schema and determining > > the valid elements from an arbitrary context in the document, or perhaps an > > example of doing this with Xerces? > > > > Thanks, > > > > Don > > > > -- > Regards, > Mukul Gandhi > > --------------------------------------------------------------------- > To unsubscribe, e-mail: j-users-unsubscr...@xerces.apache.org > For additional commands, e-mail: j-users-h...@xerces.apache.org