Sounds like this might be a bug. Can you open a JIRA issue [1] with your
test case?

Thanks.

[1] http://issues.apache.org/jira/browse/XERCESJ

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

chodnik <wxwidg...@o2.pl> wrote on 07/15/2009 01:58:26 PM:

>
> Hi,
> I have some code:
> try {
>          validator
>                .validate(new DOMSource(document), new DOMResult
(document));
>       } catch (SAXException e) {
>          e.printStackTrace();
>       } catch (IOException e) {
>          e.printStackTrace();
>       }
>       ElementPSVI elementPSVI = (ElementPSVI) element;
>       XSElementDeclaration declaration =
elementPSVI.getElementDeclaration();
>
> It works fine but I've found on this forum that I can validate only a
> selected element. I've tryed to change to:
> validator
>                .validate(new DOMSource(element), new DOMResult(element));
> But this time the declaration variable is always null. I don't know why.
> Should I set any parameters to have PSVI?
> Thank for the reply.
> --
> View this message in context: http://www.nabble.com/Validation-a-
> DOM-Element-tp24502937p24502937.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

Reply via email to