Return-Path: Delivered-To: apmail-xerces-j-dev-archive@www.apache.org Received: (qmail 64924 invoked from network); 18 Aug 2009 07:43:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Aug 2009 07:43:47 -0000 Received: (qmail 79145 invoked by uid 500); 18 Aug 2009 07:44:06 -0000 Delivered-To: apmail-xerces-j-dev-archive@xerces.apache.org Received: (qmail 79104 invoked by uid 500); 18 Aug 2009 07:44:06 -0000 Mailing-List: contact j-dev-help@xerces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: j-dev@xerces.apache.org Delivered-To: mailing list j-dev@xerces.apache.org Received: (qmail 79096 invoked by uid 99); 18 Aug 2009 07:44:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Aug 2009 07:44:06 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Aug 2009 07:43:57 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1MdJM0-0002RT-8I for j-dev@xerces.apache.org; Tue, 18 Aug 2009 00:43:36 -0700 Message-ID: <25019996.post@talk.nabble.com> Date: Tue, 18 Aug 2009 00:43:36 -0700 (PDT) From: juho To: j-dev@xerces.apache.org Subject: Re: Create dynamicly XML From XSD In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: j.houllier@gmail.com References: <25007854.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org 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: mrglavas@ca.ibm.com > E-mail: mrglavas@apache.org > > juho 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-unsubscribe@xerces.apache.org >> For additional commands, e-mail: j-dev-help@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-unsubscribe@xerces.apache.org For additional commands, e-mail: j-dev-help@xerces.apache.org