From wldxgzw at yahoo.com Fri May 6 10:53:46 2005
From: wldxgzw at yahoo.com (zhiwei guo)
Date: Fri, 6 May 2005 16:53:46 +0800 (CST)
Subject: [Expat-discuss] problem with ampersand '&' in char_hndl(void* data,
const char* txt, int txtlen)
Message-ID: <20050506085346.60547.qmail@web31111.mail.mud.yahoo.com>
Hello!
I use the parser to read character data between an element, e.g.
http://www.mtv3.com/service1&id=18
when use
fwrite(txt, txtlen, sizeof(char), stdout);
what will see is : http://www.mtv3.com/service1
the value after '&' cannot be shown.
I also try
fwrite(txt, txtlen, 2, stdout)
'&' will show like this:
&
how can I get the string with ampersand '&'(not &)?
Thanks!
---------------------------------
Do You Yahoo!?
注册世界一流品质的雅虎免费电邮
From ceo at absoft-net.com Sat May 7 11:21:29 2005
From: ceo at absoft-net.com (Golibasku)
Date: Sat, 7 May 2005 17:21:29 +0800
Subject: [Expat-discuss] Multithread problem.
References: <17da01c47f6d$184319b0$0100a8c0@alexcd9t4f0rbw><001301c47fc0$12d3b810$0100a8c0@alexcd9t4f0rbw><200408111244.38209.fdrake@acm.org>
<002301c47fc4$2e812670$0100a8c0@alexcd9t4f0rbw>
Message-ID: <005101c552e6$29ebeb90$0100a8c0@alexcd9t4f0rbw>
Hi,
I have the following problem. When expat work in multi-thread application,
it will crash. I know that there may be some bug in my application. But
anyone know whether the following scenario is ok ?
I have one thread which will parse an XML file by using XML_Parse(...)
when the XML_Parse is working, another thread will parse another XML file by
using XML_Parse(...)
There are 2 instance of XML_Parser which are created by XML_Create(). But
the handler is the same.
From groleo at gmail.com Sun May 8 08:40:26 2005
From: groleo at gmail.com (Groleo Marius)
Date: Sun, 8 May 2005 06:40:26 +0000
Subject: [Expat-discuss] Multithread problem.
In-Reply-To: <005101c552e6$29ebeb90$0100a8c0@alexcd9t4f0rbw>
References: <17da01c47f6d$184319b0$0100a8c0@alexcd9t4f0rbw>
<001301c47fc0$12d3b810$0100a8c0@alexcd9t4f0rbw>
<200408111244.38209.fdrake@acm.org>
<002301c47fc4$2e812670$0100a8c0@alexcd9t4f0rbw>
<005101c552e6$29ebeb90$0100a8c0@alexcd9t4f0rbw>
Message-ID:
On 5/7/05, Golibasku wrote:
> Hi,
>
> I have the following problem. When expat work in multi-thread application,
> it will crash. I know that there may be some bug in my application. But
> anyone know whether the following scenario is ok ?
>
> I have one thread which will parse an XML file by using XML_Parse(...)
> when the XML_Parse is working, another thread will parse another XML file by
> using XML_Parse(...)
>
> There are 2 instance of XML_Parser which are created by XML_Create(). But
> the handler is the same.
>
You have to check if the handlers are thread-safe.
After that, you should create a new parser instance per thread.
>
> _______________________________________________
> Expat-discuss mailing list
> Expat-discuss at libexpat.org
> http://mail.libexpat.org/mailman/listinfo/expat-discuss
>
>
>
--
Regards, Groleo!
# touch universe
# chmod +rwx universe
# ./universe
From catabales at hotmail.com Mon May 9 21:42:58 2005
From: catabales at hotmail.com (Carlos Atabales)
Date: Mon, 09 May 2005 19:42:58 +0000
Subject: [Expat-discuss] Multithread problem.
In-Reply-To:
Message-ID:
do you call XML_SetElementHandler(this_instance->parser ,start ,end) before
a call XML_Parse(this_instance->parser,...) instance ?
>From: Groleo Marius
>Reply-To: Groleo Marius
>To: Golibasku
>CC: expat-discuss at libexpat.org
>Subject: Re: [Expat-discuss] Multithread problem.
>Date: Sun, 8 May 2005 06:40:26 +0000
>
>On 5/7/05, Golibasku wrote:
> > Hi,
> >
> > I have the following problem. When expat work in multi-thread
>application,
> > it will crash. I know that there may be some bug in my application. But
> > anyone know whether the following scenario is ok ?
> >
> > I have one thread which will parse an XML file by using XML_Parse(...)
> > when the XML_Parse is working, another thread will parse another XML
>file by
> > using XML_Parse(...)
> >
> > There are 2 instance of XML_Parser which are created by XML_Create().
>But
> > the handler is the same.
> >
>
>You have to check if the handlers are thread-safe.
>After that, you should create a new parser instance per thread.
> >
> > _______________________________________________
> > Expat-discuss mailing list
> > Expat-discuss at libexpat.org
> > http://mail.libexpat.org/mailman/listinfo/expat-discuss
> >
> >
> >
>
>
>--
>Regards, Groleo!
>
># touch universe
># chmod +rwx universe
># ./universe
>_______________________________________________
>Expat-discuss mailing list
>Expat-discuss at libexpat.org
>http://mail.libexpat.org/mailman/listinfo/expat-discuss
_________________________________________________________________
MSN Amor: busca tu ? naranja http://latam.msn.com/amor/