Liamliu,

The thing is that localname is a XMLCh*, not a char*. You can use transcode
to convert between the two.

hth, evert

> -----Original Message-----
> From: liu lang [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, November 15, 2001 10:22 AM
> To: [EMAIL PROTECTED]
> Subject: A small question about startElement event?
>
>
> Hello
> I am chinese C++ programmer. This morning I was downloading XML4C
> from your
> site.
> And I writed a simple processing XML file application at Solaris 2.6.
> I writting my code bellowing:
> ===========================================
> void Handler::startElement (const XMLCh *const uri,const XMLCh *const
>                             localname,const XMLCh *const qname,
>                              const Attributes &attrs)
> {
>     printf("--%s--\n", localname);
> }
> ===========================================
> But I only get following result on console.
>
> %./Reader
> ----
> ----
> ----
> ----
> %
>
> My question is why I can't get String value and print them?
> Thanks for your answer.
> I am watching replying email.
> Liamliu
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to