Re: Appending to an XML document

Subject: Re: Appending to an XML document
From: Phil Lanch <phil@xxxxxxxxxxxxxxx>
Date: Mon, 13 Dec 1999 11:38:41 +0000
Or use a simple wrapper script which, given the logfile name, outputs

<log> ...the contents of the logfile... </log>

and pass that script's output to your XML parser.

Ross Bleakney wrote:
> 
> The advantage of having the document be well-formed XML is that you can then
> run it through just about any third party parser. I agree with Larry; this
> is the root of the problem (or at least my problem since I want to use a
> third party parser).
> 
> -----Original Message-----
> From: uche.ogbuji@xxxxxxxxxxxxxxx [mailto:uche.ogbuji@xxxxxxxxxxxxxxx]
> 
> > The decision to make an XML document contain just a single element is the
> > root of the problem. Perhaps the specification for future versions could
> > accept multiple elements in a single document. This would make
> concatenation
> > simple and has worked well in the lisp world which operates on similar
> > structures (s-expressions) both for representation of program and data.
> 
> While this may be the root of other problems, and I do not claim to vouch
> for
> all such problems, it is _not_ the root of the particular problem in
> question.
>  I see no reason why the log file must be a well-formed XML document.  Can
> you
> tell me what is wrong with just treating it as an external parsed entity?

-- 

cheers

phil

"that monotonous state of the soul halfway between fulfillment
and futility which comes with life in the country" --- Musil


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread