Please disregard my response.  I was thinking in terms of SAX events, not
DOM operations.

-----Original Message-----
From: Swanson, Brion [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 17, 2002 8:36 AM
To: '[EMAIL PROTECTED]'
Subject: RE: getLocalName() method on Node 


Greetings,

I assume the document your working with does not actually use namespaces
(i.e. there are no prefixes on any elements)?  If that's the case, try
changing your calls to getLocalName() to getQualifiedName() and you should
get back what you're looking for.

I'm not entirely sure why localName is only defined when namespaces are
used, particularly because I believe localName was the argument that used to
have the name of the element back in SAX 1.0, but in any case, qualifiedName
should contain the full element name with or without the use of namespaces.

Cheers!
Brion

-----Original Message-----
From: Gupta, Vikas [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 16, 2002 7:24 PM
To: '[EMAIL PROTECTED]'
Subject: getLocalName() method on Node 


Hi
There is a method getLocalName() on the DOM Node object. It is supposed to
return the local part of the fully qualified node name i.e. the part of the
name to the right of the : in a namespace qualified name. 
Somehow it keeps returning a null to me. I am using xerces via jaxp. Is
there some setting on the jaxp that I need to do before parsing my document?
Any help will be appreciated.

Thx


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to