Re: [libxml-devel] Formatting output to nonstandard xml

2007-02-06 Thread Keith Fahlgren
Hey Emmett, dunno if you saw this response (below), but here's the relevant bit: # just make sure you format it on output > format = true > # => true > doc.save('output.xml', format) > # => 352 > > > > > > > > via Document#save http://libxml.rubyforge.or

Re: [libxml-devel] Formatting output to nonstandard xml

2007-02-05 Thread Emmett Shear
On 2/4/07, TRANS <[EMAIL PROTECTED]> wrote: > Would your app choke if you put a " " in there? All I could think of > off the top of my head. > > T. I tried TRANS's hack, and it turns out just setting content = "" forces libxml to output the matching end tag. Unfortunately, the program I have is

Re: [libxml-devel] Formatting output to nonstandard xml

2007-02-04 Thread Keith Fahlgren
Emmett Shear wrote: > I can remove the byte order markers myself pretty easily; is there any > way to force libxml to output empty tags in form? Hi Emmett, I think what you want to manipulate is xmlSaveNoEmptyTags[1] sadly, I don't know enough C and can't find anything similar to try to copy.

Re: [libxml-devel] Formatting output to nonstandard xml

2007-02-04 Thread TRANS
On 2/3/07, Emmett Shear <[EMAIL PROTECTED]> wrote: > I have a program that I am forced to work with that stores its > settings in a very non-compliant XML format. It's UTF-16, but it lacks > the byte markers, and it uses tags of the form instead of > . Libxml has been awesome - it read the file pe