Re: [xml] xmlValidNormalizeAttributeValue trouble

On Mon, Sep 29, 2003 at 07:20:42PM +0200, Petr Novak wrote:
Hi all,
I have trouble with xmlValidNormalizeAttributeValue. It returns me always
NULL (in older version of libxml2 it return something different, but it is
I take a look at libxml2 valid source code and it looks, that this function
works only if namespace is defined. Is it true? I don't find anybody about 
this in API documentation.

  namespace ?

I thing that now may be "New_Value" in newValue variable, but there is NULL.
What is wrong?

  You didn't read the doc

 * returns a new normalized string if normalization is needed, NULL otherwise
 *      the caller must free the returned value.

 "if normalization is needed" ... your value is already normalized !


Daniel Veillard      | Red Hat Network
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]