Re: [xml] Tag format

Date view Thread view Subject view Author view

From: Mike Cunningham (mike.cunningham@ait.co.uk)
Date: Wed Jan 26 2000 - 11:28:41 EST


Daniel,

Thanks very much for the prompt reply - it's much appreciated. I've made
the necessary change. Would you consider adding it as a runtime option?

I don't feel particularly able or inclined to make a strong case for it
as it's only really useful for me because the receiver of my XML stream
is too brain-dead to understand the short form and I guess the slight
performance hit would be unwelcome. Can you see any merit in having it
as a standard option? (well, if you don't ask you don't get - right?)

Mike Cunningham
AIT Ltd

Daniel Veillard wrote:
>
> On Wed, Jan 26, 2000 at 12:00:40PM +0000, Mike Cunningham wrote:
> >
> > libxml seems to default to this style of tag:
> >
> > <foo property="whatever"/>
> >
> > I need it to produce the long-form. I.e.
> >
> > <foo> .... </foo>
> >
> > Is there a flag I can set to make it do this? I've only just started
> > using it this morning so apologies in advance if this is a really dumb
> > question.
> >
> > I don't know if it's relevant, but I'm building a document manually and
> > then calling xmlSaveFile.
>
> hum, there is no such flag, althrough this could be easily added .
> The place where the choice is made is in tree.c, function xmlNodeDump
>
> if ((cur->content == NULL) && (cur->childs == NULL)) {
> xmlBufferWriteChar(buf, "/>");
> return;
> }
>
> Daniel
>
> --
> Daniel.Veillard@w3.org | W3C, INRIA Rhone-Alpes | Today's Bookmarks :
> Tel : +33 476 615 257 | 655, avenue de l'Europe | Linux XML libxml WWW
> Fax : +33 476 615 207 | 38330 Montbonnot FRANCE | Gnome rpm2html rpmfind
> http://www.w3.org/People/all#veillard%40w3.org | RPM badminton Kaffe
> ----
> Message from the list xml@xmlsoft.org
> Archived at : http://xmlsoft.org/messages/
> to unsubscribe: echo "unsubscribe xml" | mail majordomo@xmlsoft.org

**************************************************************************
This footnote confirms that attachments in this message have been swept by
Dr Solomons AVTK (version 8.02) for the presence of known computer viruses.

**************************************************************************

----
Message from the list xml@xmlsoft.org
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@xmlsoft.org


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Aug 02 2000 - 12:29:59 EDT