Re: [xml] 2 issues

Date view Thread view Subject view Author view

From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Fri Sep 15 2000 - 08:43:24 EDT


On Fri, Sep 15, 2000 at 07:43:50AM +0100, Mike Cunningham wrote:
> Thanks Daniel. Any ideas how I can resolve my 2nd issue?

: Ideally I'd like to stop xmlDocDump (well, xmlDocContentDumpOutput)
: automatically adding the XML version tag to the start of the output. It
: causes an error in the 3rd party component I'm sending the output to. I
: can't change the 3rd party component so I'm kinda stuck.

 Hrumpf ... the declaration is mandatory if one doesn't use UTF8 or
UTF16 encodings. Your 3rd party component is not an XML parser, if it
was sold or labelled as such I suggest you do some legal action ...

 In practice the simplest is to design your own xmlDocDump and
xmlDocContentDumpOutput functions. Copy them in your code, rename them
and remove the beginning of xmlDocContentDumpOutput() until
"if (cur->children != NULL) {" ... Problem is that
xmlNodeDumpOutput() is declared static, but maybe you can still link
with it, if not tell me I will make it public

 But I'm not inclined to put a hack in libxml to support this broken
3rd party component :-)

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@rpmfind.net
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@rpmfind.net


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Fri Sep 15 2000 - 09:43:15 EDT