Omar Hamed <omhm...@gmail.com> wrote on 11/15/2009 11:08:33 AM:

> Thanks Michael for your prompt response.
> But I want to do this in the runtime not using JAXP.

I have no idea what you mean by that.

> The typical scenario I want to do is to add a new node at the runtime and
> use its type definition as well.
>
> The problem is that the PSVI gets created at the document loading
> time and I can't create a new ElementPSVI and set the type definition.

You need to re-validate the document and you can do that using JAXP. Take a
look at the sample.

> On Sun, Nov 15, 2009 at 5:36 PM, Michael Glavassevich
<mrgla...@ca.ibm.com
> > wrote:
> Hi Omar,
>
> You need to validate the document in order to get PSVI. The
> jaxp.SourceValidator sample [1] included with Xerces shows how you
> can validate a DOM using the JAXP Validation API.
>
> Thanks.
>
> [1] http://xerces.apache.org/xerces2-j/samples-jaxp.html#SourceValidator
>
> Michael Glavassevich
> XML Parser Development
> IBM Toronto Lab
> E-mail: mrgla...@ca.ibm.com
> E-mail: mrgla...@apache.org

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

Reply via email to