[Expat-discuss] Expat-discuss Digest, Vol 69, Issue 6

Sergio Alexandre sabf at terra.com.br
Fri Dec 9 03:47:41 CET 2005


Hi Mark!

the error messages are:

Info :Building...
Info :Compiling C:\expat\sample\elements.c
Warn :  elements.c(17,2):Parameter 'atts' is never used
Warn :  elements.c(23,2):Parameter 'name' is never used
Info :Linking C:\expat\sample\elements.exe
Error:  Error: Unresolved external '_XML_ParserCreate' referenced from 
C:\EXPAT\SAMPLE\ELEMENTS.OBJ
Error:  Error: Unresolved external '_XML_SetUserData' referenced from 
C:\EXPAT\SAMPLE\ELEMENTS.OBJ
Error:  Error: Unresolved external '_XML_SetElementHandler' referenced from 
C:\EXPAT\SAMPLE\ELEMENTS.OBJ
Error:  Error: Unresolved external '_XML_Parse' referenced from 
C:\EXPAT\SAMPLE\ELEMENTS.OBJ
Error:  Error: Unresolved external '_XML_GetCurrentLineNumber' referenced 
from C:\EXPAT\SAMPLE\ELEMENTS.OBJ
Error:  Error: Unresolved external '_XML_GetErrorCode' referenced from 
C:\EXPAT\SAMPLE\ELEMENTS.OBJ
Error:  Error: Unresolved external '_XML_ErrorString' referenced from 
C:\EXPAT\SAMPLE\ELEMENTS.OBJ
Error:  Error: Unresolved external '_XML_ParserFree' referenced from 
C:\EXPAT\SAMPLE\ELEMENTS.OBJ

thank you for your help!
only remember: Borland C++ 5.0.2 and Windows XP.
Sergio Alexandre

----- Original Message ----- 
From: <expat-discuss-request at libexpat.org>
To: <expat-discuss at libexpat.org>
Sent: Wednesday, December 07, 2005 8:00 AM
Subject: Expat-discuss Digest, Vol 69, Issue 6


> Send Expat-discuss mailing list submissions to
> expat-discuss at libexpat.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://mail.libexpat.org/mailman/listinfo/expat-discuss
> or, via email, send a message with subject or body 'help' to
> expat-discuss-request at libexpat.org
>
> You can reach the person managing the list at
> expat-discuss-owner at libexpat.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Expat-discuss digest..."
>
>
> Today's Topics:
>
>   1. expat parser parsing utf incorrectly (Aman Teja)
>   2. Using libexpat in multi-threaded environment (Kailas Ramasamy)
>   3. Re: Using libexpat in multi-threaded environment (Nick MacDonald)
>   4. (no subject) (Yashpal Chawhan)
>   5. (no subject) (animesh.saxena at wipro.com)
>   6. Re: (no subject) (Marco Forberg)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 06 Dec 2005 18:17:35 +0530
> From: "Aman Teja" <aman at amsoft.net>
> Subject: [Expat-discuss] expat parser parsing utf incorrectly
> To: <expat-discuss at libexpat.org>
> Message-ID: <01ad01c5fa63$3d8638c0$e714640a at amsoft.co.in>
> Content-Type: text/plain; charset="iso-8859-1"
>
> On feeding the expat parser with the following XML, it is returning me
> incorrect output:
>
> """<?xml version='1.0' encoding='UTF-8'?>
>
>    <methodCall>
>
>    <methodName>jaman.video.addReview</methodName>
>
>    <params>
>
>    <param>
>
>    <value><struct>
>
>    <member><name>sessionID</name>
>
>    <value><string> abc</string></value>
>
>    </member>
>
>    <member><name>videoID</name>
>
>    <value><string>1003</string></value>
>
>    </member>
>
>    <member><name>summary</name>
>
>    <value><string>&#195;&#160;</string></value>
>
>    </member>
>
>    </struct></value>
>
>    </param>
>
>    </params>
>
>    </methodCall> """
>
>
>
> I expect the parser to understand that &#195;&#160; is the UTF
> representation for ? and treat it as 1 letter. Instead it is interpreting 
> it
> as 2 strings : u'\xc3'
>
> And u'\xa0' which is not correct.
>
>
>
> Is that a bug ? Any ideas?
>
>
>
> =Aman
>
>
>
> ------------------------------
>
> Message: 2
> Date: Tue, 6 Dec 2005 19:21:49 -0800
> From: Kailas Ramasamy <kailasr at gmail.com>
> Subject: [Expat-discuss] Using libexpat in multi-threaded environment
> To: expat-discuss at libexpat.org
> Message-ID:
> <ecd0bee40512061921y59bd68e5t7504ee3db3127053 at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi,
> The start element, end element and character data callback functions seem
> to return no context information. When one of these callback functions is
> invoked (by the libexpat) how do I associate this to a thread.
>
> Appreciate your suggestions.
>
> Thanks
> Kailas
>
>
> ------------------------------
>
> Message: 3
> Date: Wed, 7 Dec 2005 00:13:23 -0500
> From: Nick MacDonald <nickmacd at gmail.com>
> Subject: Re: [Expat-discuss] Using libexpat in multi-threaded
> environment
> To: Kailas Ramasamy <kailasr at gmail.com>
> Cc: expat-discuss at libexpat.org
> Message-ID:
> <bdcd32c90512062113h5b865ff8g2cf1c808844faf4 at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Use the user data field--store your state there.  Set its value at the 
> start
> of parsing and it will be passed back to each call back.
>
> On 12/6/05, Kailas Ramasamy <kailasr at gmail.com> wrote:
>>
>> Hi,
>> The start element, end element and character data callback functions seem
>> to return no context information. When one of these callback functions is
>> invoked (by the libexpat) how do I associate this to a thread.
>>
>> Appreciate your suggestions.
>>
>> Thanks
>> Kailas
>> _______________________________________________
>> Expat-discuss mailing list
>> Expat-discuss at libexpat.org
>> http://mail.libexpat.org/mailman/listinfo/expat-discuss
>>
>
>
>
> --
> Nick MacDonald
> NickMacD at gmail.com
>
>
> ------------------------------
>
> Message: 4
> Date: Wed, 7 Dec 2005 10:57:25 +0530
> From: "Yashpal Chawhan" <yashpal.chawhan at iopsis.com>
> Subject: [Expat-discuss] (no subject)
> To: <expat-discuss at libexpat.org>
> Message-ID:
> <1FC33DEC726E9743928B57AAA9447D5E6E600A at leo.projects.iopsis.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hello,
>
> How do i retrieve the value of attribute value for the attribute name.
>
> Yashpal A Chawhan
>
> Software Engineer
> Iopsis Software Pvt. Ltd.
>
>
>
>
>
>
> ------------------------------
>
> Message: 5
> Date: Wed, 7 Dec 2005 11:04:40 +0530
> From: <animesh.saxena at wipro.com>
> Subject: [Expat-discuss] (no subject)
> To: <expat-discuss at libexpat.org>
> Message-ID:
> <0966EC230D8BDA4EB06F57075C4DBF8F015F0353 at blr-k1-msg.wipro.com>
> Content-Type: text/plain; charset="us-ascii"
>
>
> Hi All,
>
> The EXPAT XML Parser seems to have "&" as one of the delimiters. The
> string that is expected by my application may have an "&" as a part of
> it. As a result, the EXPAT parser throws an error indicating a parsing
> failure. Is there any way to make the EXPAT parser ignore the "&" for
> that particular string?
> Appreciate all your help.
>
> Animesh Saxena
>
> Project Engineer
> Wipro Technologies
> Koramangala 2,
> Bangalore. India
> Mobile:09986431749
> animesh.saxena at wipro.com
>
>
> DONT GO WHERE THE PATH LEADS.. GO INSTEAD WHERE THERE IS NO PATH AND
> LEAVE A TRAIL....
>
>
>
>
>
> Confidentiality Notice
>
> The information contained in this electronic message and any attachments 
> to this message are intended
> for the exclusive use of the addressee(s) and may contain confidential or 
> privileged information. If
> you are not the intended recipient, please notify the sender at Wipro or 
> Mailadmin at wipro.com immediately
> and destroy all copies of this message and any attachments.
>
> ------------------------------
>
> Message: 6
> Date: Wed, 07 Dec 2005 09:54:01 +0100
> From: "Marco Forberg" <marco.forberg at gmx.net>
> Subject: Re: [Expat-discuss] (no subject)
> To: expat-discuss at libexpat.org
> Message-ID: <op.s1eocbwe3odusb at master-yoda>
> Content-Type: text/plain; format=flowed; delsp=yes;
> charset=iso-8859-15
>
> Hi,
>
> i assume you want to retrieve the attributes from the atts argument in
> your StartElementHandler
>
>
> typedef void
> (*XML_StartElementHandler)(void *userData,
>                            const XML_Char *name,
>                            const XML_Char **atts);
>
> Name and value are stored in the in the atts array like this
>
> atts = [name, value, name, value, name, value, ..., NULL]
>
> The NULL replaces the name beyond the end of the attribute list so you
> know there are no more attributes for this tag.
>
>
> Am 07.12.2005, 06:27 Uhr, schrieb Yashpal Chawhan
> <yashpal.chawhan at iopsis.com>:
>
>> Hello,
>>
>> How do i retrieve the value of attribute value for the attribute name.
>>
>> Yashpal A Chawhan
>>
>> Software Engineer
>> Iopsis Software Pvt. Ltd.
>>
>>
>>
>>
>> _______________________________________________
>> Expat-discuss mailing list
>> Expat-discuss at libexpat.org
>> http://mail.libexpat.org/mailman/listinfo/expat-discuss
>>
>
>
>
>
> ------------------------------
>
> _______________________________________________
> Expat-discuss mailing list
> Expat-discuss at libexpat.org
> http://mail.libexpat.org/mailman/listinfo/expat-discuss
>
>
> End of Expat-discuss Digest, Vol 69, Issue 6
> ********************************************
>
> Esta mensagem foi verificada pelo E-mail Protegido Terra.
> Scan engine: McAfee VirusScan / Atualizado em 06/12/2005 / Versão: 
> 4.4.00/4644
> Proteja o seu e-mail Terra: http://mail.terra.com.br/
>
>
>
> -- 
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.362 / Virus Database: 267.13.12/192 - Release Date: 5/12/2005
>
> 



More information about the Expat-discuss mailing list