[XSL-LIST Mailing List Archive Home]
RE: [xsl] Create several XML files
Subject: RE: [xsl] Create several XML files|
From: George James <GeorgeJ@xxxxxxxxxxxxxxx>
Date: Mon, 22 Nov 2004 20:36:40 -0000
> ... but you'll need some software
> that extracts them ...
That is a non-trivial problem. Given that a CDATA section within an XML
file could contain whatever string is used to delimit the two files (in this
case a blank line and a pi), the only sure-fire way to split up two
concatenated xml files would be to parse the first one as an XML file.
So while you say that you can't expect an XML parser to do this, you can't
expect to be able to do it with something that *isn't* an XML parser either!
It would seem the best advice is not to concatenate XML files in the first
place, although this may be outside the control of the op.
Tools, Training, Technology
> -----Original Message-----
> From: Michael Kay [mailto:mike@xxxxxxxxxxxx]
> Sent: 22 November 2004 17:42
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: RE: [xsl] Create several XML files
> > I have a xml file (Response.xml) and it has several
> > xml documents into it, like this:
> There's no absolute reason why you can't store several XML
> documents in a single file, but you'll need some software
> that extracts them and presents them to the XML parser one at
> a time, and I'm not aware of any off-the-shelf software that
> does that. Certainly you can't expect an XML parser to do it.
> And of course you can't transform a document until you can parse it.
> Michael Kay