Any plans of implementing DOM Level 3 Validation at some point? I have a
similar project on the go, and L3V would greatly speed up things.

Cheers,

Uwe


On Thu, Aug 27, 2009 at 3:12 PM, Michael Glavassevich mrglavas-at-ca.ibm.com|
xerces.apache.org| <...> wrote:

> Hi,
>
> Have you looked at the specification that I pointed you to? DOM Level 3
> Validation is an API for guided editing of a DOM. It allows you to ask
> questions like "what would the schema allow me to insert here?". I believe
> that's what you were asking for [1]. Xerces doesn't have support for this.
>
> You can ask Xerces to validate the DOM and annotate it with PSVI, but I'm
> sure you already knew that.
>
> Thanks.
>
> [1] "... when i create XML DOM what i need its to have PSVI from father to
> know what child i can add."
>
> Michael Glavassevich
> XML Parser Development
> IBM Toronto Lab
> E-mail: mrgla...@ca.ibm.com
> E-mail: mrgla...@apache.org
>
> juho <j.houll...@gmail.com> wrote on 08/18/2009 03:43:36 AM:
>
> > Hi,
> >
> > I just want to be sure i understood well, because i saw Xerces have
> version
> > with DOM3 supports, but you say i do not implements DOM3 validation for
> the
> > moment ? is it exact?
> >
> > If it is, i will try to keep my solutions and use JAXP Validation on
> runtime
> > to check if for each Dom modification, document stay valid.
> > My actual development is heavy, because i uqse JDom so i write XML on
> temp
> > file and load it to validate him.
> > Next, if it is valid i wrote him in final, else i inform from erros. But
> i
> > hope i can use Dom Validation in place of File load validation.
> >
> > Thanks for your time.
> >
> >
> >
> > Michael Glavassevich-3 wrote:
> > >
> > > Hello,
> > >
> > > I think what you're asking for is provided by the DOM Level 3
> Validation
> > > [1] spec. Xerces doesn't have such capability built into it. You would
> > > need
> > > to write a lot of code yourself in order to accomplish what you're
> trying
> > > to do.
> > >
> > > 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
> > >
> > > juho <j.houll...@gmail.com> wrote on 08/17/2009 10:33:35 AM:
> > >
> > >>
> > >> Hello,
> > >>
> > >> My problem is i have to create an UI (a JTree) to create/load XML file
> > > from
> > >> XSD.
> > >> On start, the UI should create athe minimlist XML from Mandatory
> elements
> > >> ansd attributes
> > >> and cross(+) in Jtree Model permits to add element or attributes.
> > >>
> > >> I found in first an library to parse XSD, name XSOM, and for each DOM
> > >> element i have an Element wrapper with himself and an element
> descriptor
> > >> with availables sub-elements, attributes ...
> > >>
> > >> After make research to evoluate my product, i learnt about PSVI which
> are
> > >> affected directly to the element.
> > >> But if i understand correctly, they are affected after validation, it
> > > should
> > >> work when i load XMl files but when i create XML DOM what i need its
> to
> > > have
> > >> PSVI from father to know what child i can add.
> > >>
> > >> If i choose to change from XSOM to Xerces it's to use the Validation
> on
> > >> Element to add dynamic errors for users when they add an element or an
> > >> value, if it is valid from XSD.
> > >>
> > >> If someone could give me an idea on how i can do that with Xerces,
> > >> Thanks in advance.
> > >>
> > >> P.S: Sorry for possible syntax errors, i'm french and not really good
> in
> > >> english.
> > >> --
> > >> View this message in context: http://www.nabble.com/Create-
> > >> dynamicly-XML-From-XSD-tp25007854p25007854.html
> > >> Sent from the Xerces - J - Dev mailing list archive at Nabble.com.
> > >>
> > >>
> > >> ---------------------------------------------------------------------
> > >> To unsubscribe, e-mail: j-dev-unsubscr...@xerces.apache.org
> > >> For additional commands, e-mail: j-dev-h...@xerces.apache.org
> > >
> >
> > --
> > View this message in context: http://www.nabble.com/Create-
> > dynamicly-XML-From-XSD-tp25007854p25019996.html
> > Sent from the Xerces - J - Dev mailing list archive at Nabble.com.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: j-dev-unsubscr...@xerces.apache.org
> > For additional commands, e-mail: j-dev-h...@xerces.apache.org
>

Reply via email to