axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dinesh Premalal (JIRA)" <j...@apache.org>
Subject [jira] Closed: (AXIS2C-46) guththila fails if white space at the beginning of the file
Date Tue, 08 Aug 2006 06:51:14 GMT
     [ http://issues.apache.org/jira/browse/AXIS2C-46?page=all ]

Dinesh Premalal closed AXIS2C-46.
---------------------------------

    Fix Version/s: Current (Nightly)
       Resolution: Fixed

Ed has fixed this issue

> 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
>          Issue Type: Bug
>          Components: guththila
>         Environment: windows
>            Reporter: Ed Slattery
>         Assigned To: Dinesh Premalal
>            Priority: Minor
>             Fix For: Current (Nightly)
>
>
> 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

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


Mime
View raw message