axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ed Slattery (JIRA)" <j...@apache.org>
Subject [jira] Created: (AXIS2C-46) guththila fails if white space at the beginning of the file
Date Mon, 30 Jan 2006 14:25:35 GMT
guththila fails if white space at the beginning of the file
-----------------------------------------------------------

         Key: AXIS2C-46
         URL: http://issues.apache.org/jira/browse/AXIS2C-46
     Project: Axis2-C
        Type: Bug
 Environment: windows
    Reporter: Ed Slattery
    Priority: Minor


I think the parser should allow whitespace before the first "<"...


int
guththila_xml_pull_parser_tokenize (guththila_environment_t * environment,
                                    guththila_xml_pull_parser_t * parser)
{
    do
    {
        int c;
        c = guththila_xml_pull_parser_next_char (environment, parser, -1);
        if (c == -1)
            return -1;

        switch (parser->status)
        {
        case S_1:
            /*+*/while (isspace(c))
            /*+*/{
            /*+*/   c = guththila_xml_pull_parser_next_char (environment, parser, -1);
            /*+*/   if (c == -1)
            /*+*/       return -1;
            /*+*/}

            if ('<' == c)
                parser->status = S_2;
            else
                parser->status = S_0;
            break;

-- 
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


Mime
View raw message