xerces-j-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Glavassevich <mrgla...@ca.ibm.com>
Subject Re: Create dynamicly XML From XSD
Date Mon, 17 Aug 2009 16:15:24 GMT

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.


[1] http://www.w3.org/TR/2004/REC-DOM-Level-3-Val-20040127/

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@ca.ibm.com
E-mail: mrglavas@apache.org

juho <j.houllier@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
> 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
> work when i load XMl files but when i create XML DOM what i need its to
> 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-unsubscribe@xerces.apache.org
> For additional commands, e-mail: j-dev-help@xerces.apache.org
View raw message