Re: [xml] 2 issues

Date view Thread view Subject view Author view

From: Mike Cunningham (mike.cunningham@ait.co.uk)
Date: Fri Sep 15 2000 - 09:38:59 EDT


On Fri, 15 Sep 2000, Daniel Veillard wrote:
> 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
>

No, no, I don't expect you to! The author of the component acknowledges that it
is broken but doesn't seem inclined to change it. It was free anyway so I think
legal action is probably a bit harsh!

I'll try what you suggest but, as you mention, I'm going to hit a problem with
xmlNodeDumpOutput (or <something>) being private. I'll write the code and
'prove' it first though.

Thanks again,

Mike Cunningham
AIT Ltd

*******************************************************
Attachments in this message have been swept
by NAI's TVD (version 4.0.4095) for the presence
of known computer viruses.
*********************************************************

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.star.net.uk/stats.asp

----
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 - 10:43:25 EDT