Re: libxml2 guru(s) please respond.

From: Tomas Frydrych <tf_at_o-hand.com>
Date: Thu Jul 13 2006 - 09:09:16 CEST

What does a sample awml snippet look like ? (Just curious why there are
tabs in the attribute.).

Tomas

Martin Sevior wrote:
> Hi Folks,
> I've found a bug in AbiCollab code to do with TAB's.
>
> Basically libxml2 is converting tab's to spaces in this function.
>
> szValue = (char *)xmlTextReaderGetAttribute(reader, (const xmlChar
> *)"value");
>
> This retrieve escapeXML'd text from the xmlparser. The text from the
> originating abiword is created with this code:
>
> UT_UTF8String sText;
> sText.appendUCS4(pChars,iLen);
> sText = sText.escapeXML();
>
> The escapeXML() method just converts <, >, ", and & and leaves TAB's
> intact.
>
> However upon being received the TAB's are converted to spaces via:
> szValue = (char *)xmlTextReaderGetAttribute(reader, (const xmlChar
> *)"value");
>
>
> So what should we do to fix this?
>
> Thanks!
>
> Martin
>
>
>
Received on Thu Jul 13 09:27:11 2006

This archive was generated by hypermail 2.1.8 : Thu Jul 13 2006 - 09:27:11 CEST