Re: [xml] xmlEncodeSpecialChars and carriage reurn / CRLF / 0x0D 0x0A / \r\n / 13, 10

On Thu, Aug 09, 2007 at 02:44:18PM +0400, SABROG wrote:
I found xmlSaveSetEscape function, but he is not work. Some text characters convert to &#XX; presentation, 
but strings with "
" decoded to "\n" again. Xml file not write fully and i see 0x0 character in few 
attributes. I see my debug message "All saved", so this mean, what no errors, but why my escape function 
not work ?

  Hum, I had forgotten about xmlSaveSetEscape(). Yes this should
work assuming you provide a function which does the proper changes.
Since I don't know what 'escape' is in your code there is no way I can
even try to diagnose why.
  I suggest you use a debugger, and put a breakpoint in that function
first to see if it's called, and if yes hat's happening.


Red Hat Virtualization group
Daniel Veillard      | virtualization library
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]