Subject: RE: [xsl] Create several XML files From: George James <GeorgeJ@xxxxxxxxxxxxxxx> Date: Mon, 22 Nov 2004 20:36:40 -0000 |
Michael > ... 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. Regards George Tools, Training, Technology www.georgejames.com +44-1932-252568 > -----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 > http://www.saxonica.com/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Create several XML files, Michael Kay | Thread | [xsl] storing the result of a trans, Jean-François Lavign |
Re: [xsl] XPath 2.0 fn:tokenize, Kurt Cagle | Date | Re: [xsl] XPath 2.0 fn:tokenize, Naomi Gronson |
Month |