n->getNodeValue() return always null
------------------------------------

         Key: XERCESC-1461
         URL: http://issues.apache.org/jira/browse/XERCESC-1461
     Project: Xerces-C++
        Type: Bug
  Components: DOM  
    Versions: 2.6.0    
 Environment: gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-110)
    Reporter: enzo arlati


getNodeValue() of a node return always null

I get this error also with the standard sample , DOMCount , included inside the 
xerces-c package.
I made a little change to the source od DOMCount.cpp as show below:
                char *name = XMLString::transcode(n->getNodeName());
                char *value = XMLString::transcode(n->getNodeValue());
                XERCES_STD_QUALIFIER cout 
<<"----------------------------------------------------------"<<XERCES_STD_QUALIFIER
 endl;
                XERCES_STD_QUALIFIER cout <<"Encountered Element : "<< name << 
" = " << value << XERCES_STD_QUALIFIER endl;

                XMLString::release(&name);
                XMLString::release(&value);

So I should expect to see the value assoicate with a node, instead all I get is 
something like this:
----------------------------------------------------------
Encountered Element : person = (null)
        Attributes
        ----------
        id=five.worker
----------------------------------------------------------
Encountered Element : name = (null)
----------------------------------------------------------
Encountered Element : family = (null)
----------------------------------------------------------
Encountered Element : given = (null)
----------------------------------------------------------
Encountered Element : email = (null)
----------------------------------------------------------
Encountered Element : link = (null)
        Attributes
        ----------
        manager=Big.Boss


The source is the standard sample file personale.xml

  <person id="five.worker">
    <name><family>Worker</family> <given>Five</given></name>
    <email>[EMAIL PROTECTED]</email>
    <link manager="Big.Boss"/>

why I can't get the value Worker for trhe element family ?
I miss something or this is a bug ?


Regards, Enzo 


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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

Reply via email to