Re: Expat-discuss Digest, Vol 69, Issue 6

"Sergio Alexandre" <[email protected]>
Newsgroups gmane.text.xml.expat.general
Message-ID <003a01c5fc6a$ed6f3b70$d1d3fea9@sempron2200>
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: <[email protected]>
To: <[email protected]>
Sent: Wednesday, December 07, 2005 8:00 AM
Subject: Expat-discuss Digest, Vol 69, Issue 6


> Send Expat-discuss mailing list submissions to
> [email protected]
>
> 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
> [email protected]
>
> You can reach the person managing the list at
> [email protected]
>
> 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) ([email protected])
>   6. Re: (no subject) (Marco Forberg)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 06 Dec 2005 18:17:35 +0530
> From: "Aman Teja" <[email protected]>
> Subject: [Expat-discuss] expat parser parsing utf incorrectly
> To: <[email protected]>
> Message-ID: <[email protected]>
> 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 <[email protected]>
> Subject: [Expat-discuss] Using libexpat in multi-threaded environment
> To: [email protected]
> Message-ID:
> <[email protected]>
> 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 <[email protected]>
> Subject: Re: [Expat-discuss] Using libexpat in multi-threaded
> environment
> To: Kailas Ramasamy <[email protected]>
> Cc: [email protected]
> Message-ID:
> <[email protected]>
> 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 <[email protected]> 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
>> [email protected]
>> http://mail.libexpat.org/mailman/listinfo/expat-discuss
>>
>
>
>
> --
> Nick MacDonald
> [email protected]
>
>
> ------------------------------
>
> Message: 4
> Date: Wed, 7 Dec 2005 10:57:25 +0530
> From: "Yashpal Chawhan" <[email protected]>
> Subject: [Expat-discuss] (no subject)
> To: <[email protected]>
> Message-ID:
> <[email protected]>
> 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: <[email protected]>
> Subject: [Expat-discuss] (no subject)
> To: <[email protected]>
> Message-ID:
> <[email protected]>
> 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
> [email protected]
>
>
> 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 
> [email protected] 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" <[email protected]>
> Subject: Re: [Expat-discuss] (no subject)
> To: [email protected]
> Message-ID: <op.s1eocbwe3odusb@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
> <[email protected]>:
>
>> 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
>> [email protected]
>> http://mail.libexpat.org/mailman/listinfo/expat-discuss
>>
>
>
>
>
> ------------------------------
>
> _______________________________________________
> Expat-discuss mailing list
> [email protected]
> 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
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.