chodnik <wxwidg...@o2.pl> wrote on 01/12/2009 03:47:08 AM: <snip/>
> Then I can get psvi info from root in this way: > ((ElementPSVI)document.getDocumentElement()).getElementDeclaration(); > > In the next step i create new node using createElementNS and I add this node > to the root node. I call > document.normalizeDocument(); > to set PSVI in child node but getElementDeclaration returns null all the > same. > I can fix it in this way: > validator.validate(new DOMSource(document), new DOMResult(document)); > When I have this line it seems to work propely. getElementDeclaration is not > null. > The questin is why normalizeDocument does not update psvi info in new nodes? > What should I do to get psvi info without validation, only using > normalizeDocument? PSVI [1] = post-schema-validation infoset. It is the result of schema validation (or more accurately assessment [2]). If you want PSVI from normalizeDocument() then you need to configure the DOMConfiguration so that it performs schema validation. > -- > View this message in context: http://www.nabble. > com/getElementDeclaration-returns-null-tp21410587p21410587.html > Sent from the Xerces - J - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: j-users-unsubscr...@xerces.apache.org > For additional commands, e-mail: j-users-h...@xerces.apache.org Thanks. [1] http://www.w3.org/TR/xmlschema-1/#key-psvi [2] http://www.w3.org/TR/xmlschema-1/#key-va Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: mrgla...@ca.ibm.com E-mail: mrgla...@apache.org