Re: [xml] RTF? I will, just give me a hint.



Let's see.  You want an API to save to memory.  I would start by going to
the libxml2 project page, searching for "save memory" and select "Only the
APIs" as a search option.


                                                                                                              
                         
                      "Kurt Schwind"                                                                          
                         
                      <kurt schwind arc        To:       xml gnome org                                        
                         
                      h.com>                   cc:                                                            
                         
                      Sent by:                 Subject:  [xml] RTF?  I will, just give me a hint.             
                         
                      xml-admin gnome o                                                                       
                         
                      rg                                                                                      
                         
                                                                                                              
                         
                                                                                                              
                         
                      01/16/2004 02:18                                                                        
                         
                      PM                                                                                      
                         
                                                                                                              
                         
                                                                                                              
                         





Been using the libxml2 library for about a week.  I've ported from a
home-brew xml library that was done in-house to using this one.  Love it
so far.  And I've created trees, and I can dump things to files (which
has helped in debugging).  But I'm missing something simple.

I want to dump the contents of an xmlDoc to a char array.

char buffer[A_BAZZILLION];
xmlDocPtr xdoc;

memset(buffer, 0x0, sizeof(buffer));
....


How do I dump the contents of xdoc into buffer?  (Assume that I've
created the XML tree etc... already.  I need it in the buffer because my
current library does that and it's handed around in that fashion.

TIA,

--
Kurt Schwind <kurt schwind arch com>
Arch Wireless

_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xml gnome org
http://mail.gnome.org/mailman/listinfo/xml










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