Re: [xml] Tag format

Date view Thread view Subject view Author view

From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Wed Jan 26 2000 - 08:24:04 EST


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


Date view Thread view Subject view Author view

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