xsl-list
[Top] [All Lists]

RE: Create several XML files

2004-11-22 13:36:40
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(_at_)saxonica(_dot_)com]
Sent: 22 November 2004 17:42
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
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/


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--





--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>