How get elements values ?
I'm stuck on a Node that is nodeType = 1, meaning it's a Element type, 
so if a try getNodeValue I get null, but if   I try getNodeName I get 
the right one. What i'm doing wrong?

Sample code:

my $xmlDocument->getDocument();
my $nodeList = $xmlDocument->getElementsByTagName("some_element");
my $node = $nodeList->item(0);
print $node->getNodeName(); print "this is my element name\n";
print $node->getNodeValue();print "this should by the value of it\n";


Marco.

-- 
#Marco Aur�lio Valtas Cunha
#Laborat�rio de Bioinform�tica
#Hemocentro de Ribeir�o Preto
#Faculdade de Medicina de Ribeir�o Preto
#Universidade de S�o Paulo
#Tel 55 16 3963-9300 R: 9603
#homepage http://bit.fmrp.usp.br
#e-mail: [EMAIL PROTECTED]



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

Reply via email to