Jean-Michel Richer created XERCESC-1985:
-------------------------------------------

             Summary: I get empty strings from the startElements
                 Key: XERCESC-1985
                 URL: https://issues.apache.org/jira/browse/XERCESC-1985
             Project: Xerces-C++
          Issue Type: Bug
          Components: Validating Parser (XML Schema)
    Affects Versions: 3.1.1
         Environment: Linux Ubuntu 12.04
            Reporter: Jean-Michel Richer
            Priority: Minor


I have installed xerces 3.1.1 and xalan 1.11. I have developped a simple 
Handler (inherited from DefaultHandler) but when I parse an xml file I don't 
get the tag which should be reported by the startElement function. Here is the 
code :

void XMLIOHandler::startElement(const   XMLCh* const    uri,
                const   XMLCh* const    localname,
                const   XMLCh* const    qname,
                const   Attributes&     attrs) {
        char *element_ptr = NULL;

        element_ptr = XMLString::transcode(localname);
        first_element = element_ptr;
        cerr << first_element << endl;
        XMLString::release(&element_ptr);
}

it always display an empty string. I really don't know how to solve this. I am 
doing something wrong ?
Best regards,
JM

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.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