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 yasar tekin <ya...@yahoo.com> on 2004/05/11 15:43:37 UTC

attr.getNodeValue() == "AT_NAME" does not work

hi

<AttrDef AttrDef.Type="AT_NAME"> 
	<AttrValue LocaleId="1055">yasar</AttrValue> 
</AttrDef>

this is the xml file part � want to get. � wrote

if ((attr.getNodeName() == "AttrDef.Type") &&
(attr.getNodeValue() == "AT_NAME")) {

but (attr.getNodeValue() == "AT_NAME") part does not
work. what is my problem. thanks for your help...


	
		
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 

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


RE: attr.getNodeValue() == "AT_NAME" does not work

Posted by "Oleg S. Estekhin" <ol...@yandex.ru>.
Hi

First of all try "AT_NAME".equals(attr.getNodeValue()) instead of "=="
operation.

> -----Original Message-----
> From: yasar tekin [mailto:yasar_tekin@yahoo.com]
> Sent: Tuesday, May 11, 2004 5:44 PM
> To: xerces
> Subject: attr.getNodeValue() == "AT_NAME" does not work
>
>
> hi
>
> <AttrDef AttrDef.Type="AT_NAME">
> 	<AttrValue LocaleId="1055">yasar</AttrValue>
> </AttrDef>
>
> this is the xml file part } want to get. } wrote
>
> if ((attr.getNodeName() == "AttrDef.Type") &&
> (attr.getNodeValue() == "AT_NAME")) {
>
> but (attr.getNodeValue() == "AT_NAME") part does not
> work. what is my problem. thanks for your help...
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Win a $20,000 Career Makeover at Yahoo! HotJobs
> http://hotjobs.sweepstakes.yahoo.com/careermakeover
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-user-help@xml.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