You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Rajesh Chilambi <rc...@bnx.com> on 2004/03/31 02:01:47 UTC

getelementsbyid

Hi All,
  I am trying to call getelementsbyid on a domdocument and it seems to fail everytime returning a null domelement*.  This is the id i am looking for wsu:Id="SecurityToken-7cf44243-52d7-4763-9c71-101218f5c193" and there is an element like this <wsse:SecurityTokenReference><wsse:Reference URI="#SecurityToken-7cf44243-52d7-4763-9c71-101218f5c193" /></wsse:SecurityTokenReference>

Thanx in advance
Rajesh

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


Re: getelementsbyid

Posted by Joanne Bogart <jr...@slac.stanford.edu>.
Rajesh Chilambi wrote:

>Hi All,
>  I am trying to call getelementsbyid on a domdocument and it seems to fail everytime returning a null domelement*.  This is the id i am looking for wsu:Id="SecurityToken-7cf44243-52d7-4763-9c71-101218f5c193" 
>
>and there is an element like this 
>
><wsse:SecurityTokenReference><wsse:Reference URI="#SecurityToken-7cf44243-52d7-4763-9c71-101218f5c193" /></wsse:SecurityTokenReference>
>  
>
>Thanx in advance
>Rajesh
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
>For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
>  
>
Has the URI attribute been declared to have type ID in  your dtd or XML 
Schema?

Joanne


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


Re: getelementsbyid

Posted by Alberto Massari <am...@progress.com>.
At 19.01 30/03/2004 -0500, Rajesh Chilambi wrote:
>Hi All,
>   I am trying to call getelementsbyid on a domdocument and it seems to 
> fail everytime returning a null domelement*.  This is the id i am looking 
> for wsu:Id="SecurityToken-7cf44243-52d7-4763-9c71-101218f5c193" and there 
> is an element like this <wsse:SecurityTokenReference><wsse:Reference 
> URI="#SecurityToken-7cf44243-52d7-4763-9c71-101218f5c193" 
> /></wsse:SecurityTokenReference>

Just to check: you say that the URI attribute should be considered a 
reference to the element having wsu:Id as an ID, but I see they have 
different values (the value for URI starts with a # character that is not 
in the ID definition). Is this just a typo?

Alberto 



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