Hello Ajay,?

You're not missing anything. There's no support for
"http://apache.org/xml/properties/dom/current-element-node"; in the
SchemaFactory and no alternate method for obtaining a DOM node from it. DOM
is an intermediate representation that we use while building the Schema but
that detail is kept completely internal today.

Thanks.

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

ajay bhadauria <abhadau...@yahoo.com> wrote on 07/19/2009 06:00:40 PM:

> Hi,
>
> I am using newInstance method to get the SchemaFactory object as below
>
> schemafactory = SchemaFactory.newInstance
("http://www.w3.org/2001/XMLSchema";);
>
> and then with this factory (schemafactory), I am getting Schema
> object with newSchema method of SchemaFactory class.
>
> I also registered schemafactory with ErrorHandler. So while  parsing
> schema, errorHandler does throw error but when I am trying to get
> current-element-node with below call
>   node = (Node) sf.getProperty( "http://apache.
> org/xml/properties/dom/current-element-node");
>
> it throws below exception
> org.xml.sax.SAXNotRecognizedException: Property 'http://apache.
> org/xml/properties/dom/current-element-node' is not recognized.
>
> Could you please help me what I am missing here ?
>
> Thanks
> Ajay
>
> ---------------------------------------------------------------------
> 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