You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Rahul Agarwal <re...@yahoo.com> on 2003/06/19 15:51:29 UTC

Property "current-element-node"

Hi,
    I am trying to use the property
"http://apache.org/xml/properties/dom/current-element-node"
but everytime it returns a null node (or gives
SAXException ). I am unable to figure our the problem
in my code(part of which is mentioned below), can
someone help ?


public class Tracer extends DOMParser implements
XMLErrorHandler {

...........
fConfiguration.setErrorHandler(this);
..........

public void error(String domain, String key,
XMLParseException ex)
        throws XNIException {
        		Element node =
(Element)this.getProperty("http://apache.org/xml/properties/dom/current-element-node");
               ..................
               ..................         
                        } //end of error

.............
...........

} end of Tracer


I checked by replacing "this" by "fConfiguration" and
"super" but then also it returns the null node.

Thanks, 
Utsav

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org


Re: Property "current-element-node"

Posted by Rahul Agarwal <re...@yahoo.com>.
Hi Venu,
         Thank you very much for the help.
Rahul


--- "K. Venugopal" <k....@sun.com> wrote:
> Hi Rahul,
> 
> I have modified your program (but not completely).
> Please see if this 
> helps you and refer to samples for more info..
> 
> Regards,
> venu
> 
> Rahul Agarwal wrote:
> 
> >Hi Venu,
> >        Thanks for your reply, but I am still
> unable
> >to resolve the problem. I am attaching my program
> and
> >the XML,DTD files. Please check it. 
> >
> >Thanks,
> >Rahul
> >
> >
> >--- "K. Venugopal" <k....@sun.com> wrote:
> >  
> >
> >>Hi Rahul ,
> >>
> >>Please refer to the attached program .If you are
> >>still facing problem 
> >>post your xml ,xsd and program.
> >>
> >>Regards
> >>venu
> >>
> >>Rahul Agarwal wrote:
> >>
> >>    
> >>
> >>>Hi,
> >>>  Thanks for the reply. But its still not
> working,
> >>>      
> >>>
> >>it
> >>    
> >>
> >>>always returns null.
> >>>
> >>>--- Andy Clark <an...@apache.org> wrote:
> >>> 
> >>>
> >>>      
> >>>
> >>>>Rahul Agarwal wrote:
> >>>>   
> >>>>
> >>>>        
> >>>>
> >>>>>   I am trying to use the property
> >>>>>
> >>>>>     
> >>>>>
> >>>>>          
> >>>>>
>
>>"http://apache.org/xml/properties/dom/current-element-node"
> >>    
> >>
> >>> 
> >>>
> >>>      
> >>>
> >>>>>but everytime it returns a null node (or gives
> >>>>>SAXException ). I am unable to figure our the
> >>>>>     
> >>>>>
> >>>>>          
> >>>>>
> >>>>problem
> >>>>   
> >>>>
> >>>>        
> >>>>
> >>>>>in my code(part of which is mentioned below),
> can
> >>>>>someone help ?
> >>>>>     
> >>>>>
> >>>>>          
> >>>>>
> >>>>Turn off the deferred node expansion feature.
> >>>>        
> >>>>
> >>Check
> >>    
> >>
> >>>>the docs for details.
> >>>>
> >>>>-- 
> >>>>Andy Clark * andyc@apache.org
> >>>>
> >>>>
> >>>>
> >>>>   
> >>>>
> >>>>        
> >>>>
>
>>---------------------------------------------------------------------
> >>    
> >>
> >>> 
> >>>
> >>>      
> >>>
> >>>>To unsubscribe, e-mail:
> >>>>xerces-j-user-unsubscribe@xml.apache.org
> >>>>For additional commands, e-mail:
> >>>>xerces-j-user-help@xml.apache.org
> >>>>
> >>>>   
> >>>>
> >>>>        
> >>>>
> >>>__________________________________
> >>>Do you Yahoo!?
> >>>SBC Yahoo! DSL - Now only $29.95 per month!
> >>>http://sbc.yahoo.com
> >>>
> >>>      
> >>>
>
>>---------------------------------------------------------------------
> >>    
> >>
> >>>To unsubscribe, e-mail:
> >>>      
> >>>
> >>xerces-j-user-unsubscribe@xml.apache.org
> >>    
> >>
> >>>For additional commands, e-mail:
> >>>      
> >>>
> >>xerces-j-user-help@xml.apache.org
> >>    
> >>
> >>> 
> >>>
> >>>      
> >>>
> >>    
> >>
> >
> >  
> >
> >>ATTACHMENT part 2 application/octet-stream
> >>    
> >>
> >name=doctype.jar
> >  
> >
>
>---------------------------------------------------------------------
> >  
> >
> >>To unsubscribe, e-mail:
> >>xerces-j-user-unsubscribe@xml.apache.org
> >>For additional commands, e-mail:
> xerces-j-user-help@xml.apache.org
> >>    
> >>
> >
> >__________________________________
> >Do you Yahoo!?
> >SBC Yahoo! DSL - Now only $29.95 per month!
> >http://sbc.yahoo.com
> >
>
>------------------------------------------------------------------------
> >
> ><?xml version="1.0"?>
> ><!DOCTYPE book SYSTEM "book.dtd">
> >
> ><book>
> >
> ><title> THE COMPLETE REFERENCE TO JAVA2 </title>
> ><author> HERBERT SCHILDT </author>
> >
> ><chapter>
> ><index> ONE    </index>
> ><title>  INTRODUCTION  </title>
> ><para>  blah....blah ......blah  </para>
> ><para>  blah....blah ......blah  </para>
> ><reference> The complete reference to
> XML</reference>
> ><reference> JAVA AND XML </reference>
> ></chapter>
> >
> ><chapter>
> ><author> Somebody </author>
> ><index>    TWO    </index>
> ><title> BASICS OF JAVA </title>
> ><para>  blah....blah ......blah   </para>
> ><para>  blah....blah ......blah    </para>
> ><reference> JAVA AND XML </reference>
> 
=== message truncated ===

> ATTACHMENT part 2 application/octet-stream
name=rahul.jar
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> xerces-j-user-unsubscribe@xml.apache.org
> For additional commands, e-mail:
xerces-j-user-help@xml.apache.org


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org


Re: Property "current-element-node"

Posted by "K. Venugopal" <k....@sun.com>.
Hi Rahul,

I have modified your program (but not completely). Please see if this 
helps you and refer to samples for more info..

Regards,
venu

Rahul Agarwal wrote:

>Hi Venu,
>        Thanks for your reply, but I am still unable
>to resolve the problem. I am attaching my program and
>the XML,DTD files. Please check it. 
>
>Thanks,
>Rahul
>
>
>--- "K. Venugopal" <k....@sun.com> wrote:
>  
>
>>Hi Rahul ,
>>
>>Please refer to the attached program .If you are
>>still facing problem 
>>post your xml ,xsd and program.
>>
>>Regards
>>venu
>>
>>Rahul Agarwal wrote:
>>
>>    
>>
>>>Hi,
>>>  Thanks for the reply. But its still not working,
>>>      
>>>
>>it
>>    
>>
>>>always returns null.
>>>
>>>--- Andy Clark <an...@apache.org> wrote:
>>> 
>>>
>>>      
>>>
>>>>Rahul Agarwal wrote:
>>>>   
>>>>
>>>>        
>>>>
>>>>>   I am trying to use the property
>>>>>
>>>>>     
>>>>>
>>>>>          
>>>>>
>>"http://apache.org/xml/properties/dom/current-element-node"
>>    
>>
>>> 
>>>
>>>      
>>>
>>>>>but everytime it returns a null node (or gives
>>>>>SAXException ). I am unable to figure our the
>>>>>     
>>>>>
>>>>>          
>>>>>
>>>>problem
>>>>   
>>>>
>>>>        
>>>>
>>>>>in my code(part of which is mentioned below), can
>>>>>someone help ?
>>>>>     
>>>>>
>>>>>          
>>>>>
>>>>Turn off the deferred node expansion feature.
>>>>        
>>>>
>>Check
>>    
>>
>>>>the docs for details.
>>>>
>>>>-- 
>>>>Andy Clark * andyc@apache.org
>>>>
>>>>
>>>>
>>>>   
>>>>
>>>>        
>>>>
>>---------------------------------------------------------------------
>>    
>>
>>> 
>>>
>>>      
>>>
>>>>To unsubscribe, e-mail:
>>>>xerces-j-user-unsubscribe@xml.apache.org
>>>>For additional commands, e-mail:
>>>>xerces-j-user-help@xml.apache.org
>>>>
>>>>   
>>>>
>>>>        
>>>>
>>>__________________________________
>>>Do you Yahoo!?
>>>SBC Yahoo! DSL - Now only $29.95 per month!
>>>http://sbc.yahoo.com
>>>
>>>      
>>>
>>---------------------------------------------------------------------
>>    
>>
>>>To unsubscribe, e-mail:
>>>      
>>>
>>xerces-j-user-unsubscribe@xml.apache.org
>>    
>>
>>>For additional commands, e-mail:
>>>      
>>>
>>xerces-j-user-help@xml.apache.org
>>    
>>
>>> 
>>>
>>>      
>>>
>>    
>>
>
>  
>
>>ATTACHMENT part 2 application/octet-stream
>>    
>>
>name=doctype.jar
>  
>
>---------------------------------------------------------------------
>  
>
>>To unsubscribe, e-mail:
>>xerces-j-user-unsubscribe@xml.apache.org
>>For additional commands, e-mail: xerces-j-user-help@xml.apache.org
>>    
>>
>
>__________________________________
>Do you Yahoo!?
>SBC Yahoo! DSL - Now only $29.95 per month!
>http://sbc.yahoo.com
>
>------------------------------------------------------------------------
>
><?xml version="1.0"?>
><!DOCTYPE book SYSTEM "book.dtd">
>
><book>
>
><title> THE COMPLETE REFERENCE TO JAVA2 </title>
><author> HERBERT SCHILDT </author>
>
><chapter>
><index> ONE    </index>
><title>  INTRODUCTION  </title>
><para>  blah....blah ......blah  </para>
><para>  blah....blah ......blah  </para>
><reference> The complete reference to XML</reference>
><reference> JAVA AND XML </reference>
></chapter>
>
><chapter>
><author> Somebody </author>
><index>    TWO    </index>
><title> BASICS OF JAVA </title>
><para>  blah....blah ......blah   </para>
><para>  blah....blah ......blah    </para>
><reference> JAVA AND XML </reference>
></chapter>
>
>
>
></book>
>
>  
>
>------------------------------------------------------------------------
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
>For additional commands, e-mail: xerces-j-user-help@xml.apache.org
>


Re: Property "current-element-node"

Posted by Rahul Agarwal <re...@yahoo.com>.
Hi Venu,
        Thanks for your reply, but I am still unable
to resolve the problem. I am attaching my program and
the XML,DTD files. Please check it. 

Thanks,
Rahul


--- "K. Venugopal" <k....@sun.com> wrote:
> Hi Rahul ,
> 
> Please refer to the attached program .If you are
> still facing problem 
> post your xml ,xsd and program.
> 
> Regards
> venu
> 
> Rahul Agarwal wrote:
> 
> >Hi,
> >   Thanks for the reply. But its still not working,
> it
> >always returns null.
> >
> >--- Andy Clark <an...@apache.org> wrote:
> >  
> >
> >>Rahul Agarwal wrote:
> >>    
> >>
> >>>    I am trying to use the property
> >>>
> >>>      
> >>>
>
>"http://apache.org/xml/properties/dom/current-element-node"
> >  
> >
> >>>but everytime it returns a null node (or gives
> >>>SAXException ). I am unable to figure our the
> >>>      
> >>>
> >>problem
> >>    
> >>
> >>>in my code(part of which is mentioned below), can
> >>>someone help ?
> >>>      
> >>>
> >>Turn off the deferred node expansion feature.
> Check
> >>the docs for details.
> >>
> >>-- 
> >>Andy Clark * andyc@apache.org
> >>
> >>
> >>
> >>    
> >>
>
>---------------------------------------------------------------------
> >  
> >
> >>To unsubscribe, e-mail:
> >>xerces-j-user-unsubscribe@xml.apache.org
> >>For additional commands, e-mail:
> >>xerces-j-user-help@xml.apache.org
> >>
> >>    
> >>
> >
> >
> >__________________________________
> >Do you Yahoo!?
> >SBC Yahoo! DSL - Now only $29.95 per month!
> >http://sbc.yahoo.com
> >
>
>---------------------------------------------------------------------
> >To unsubscribe, e-mail:
> xerces-j-user-unsubscribe@xml.apache.org
> >For additional commands, e-mail:
> xerces-j-user-help@xml.apache.org
> >
> >  
> >
> 
> 

> ATTACHMENT part 2 application/octet-stream
name=doctype.jar
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> xerces-j-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-user-help@xml.apache.org

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

Re: Property "current-element-node"

Posted by "K. Venugopal" <k....@sun.com>.
Hi Rahul ,

Please refer to the attached program .If you are still facing problem 
post your xml ,xsd and program.

Regards
venu

Rahul Agarwal wrote:

>Hi,
>   Thanks for the reply. But its still not working, it
>always returns null.
>
>--- Andy Clark <an...@apache.org> wrote:
>  
>
>>Rahul Agarwal wrote:
>>    
>>
>>>    I am trying to use the property
>>>
>>>      
>>>
>"http://apache.org/xml/properties/dom/current-element-node"
>  
>
>>>but everytime it returns a null node (or gives
>>>SAXException ). I am unable to figure our the
>>>      
>>>
>>problem
>>    
>>
>>>in my code(part of which is mentioned below), can
>>>someone help ?
>>>      
>>>
>>Turn off the deferred node expansion feature. Check
>>the docs for details.
>>
>>-- 
>>Andy Clark * andyc@apache.org
>>
>>
>>
>>    
>>
>---------------------------------------------------------------------
>  
>
>>To unsubscribe, e-mail:
>>xerces-j-user-unsubscribe@xml.apache.org
>>For additional commands, e-mail:
>>xerces-j-user-help@xml.apache.org
>>
>>    
>>
>
>
>__________________________________
>Do you Yahoo!?
>SBC Yahoo! DSL - Now only $29.95 per month!
>http://sbc.yahoo.com
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
>For additional commands, e-mail: xerces-j-user-help@xml.apache.org
>
>  
>


Re: Property "current-element-node"

Posted by Rahul Agarwal <re...@yahoo.com>.
Hi,
   Thanks for the reply. But its still not working, it
always returns null.

--- Andy Clark <an...@apache.org> wrote:
> Rahul Agarwal wrote:
> >     I am trying to use the property
> >
>
"http://apache.org/xml/properties/dom/current-element-node"
> > but everytime it returns a null node (or gives
> > SAXException ). I am unable to figure our the
> problem
> > in my code(part of which is mentioned below), can
> > someone help ?
> 
> Turn off the deferred node expansion feature. Check
> the docs for details.
> 
> -- 
> Andy Clark * andyc@apache.org
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> xerces-j-user-unsubscribe@xml.apache.org
> For additional commands, e-mail:
> xerces-j-user-help@xml.apache.org
> 


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org


Re: Property "current-element-node"

Posted by Andy Clark <an...@apache.org>.
Rahul Agarwal wrote:
>     I am trying to use the property
> "http://apache.org/xml/properties/dom/current-element-node"
> but everytime it returns a null node (or gives
> SAXException ). I am unable to figure our the problem
> in my code(part of which is mentioned below), can
> someone help ?

Turn off the deferred node expansion feature. Check
the docs for details.

-- 
Andy Clark * andyc@apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org