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
"nothing").
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

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



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