XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] Concatenating XML files (was Re: [xml-dev] 2007 Predictions)

David Megginson wrote:
> On 12/01/07, Rick Marshall <rjm@zenucom.com> wrote:
> 
>> PS and technically I'd like to see the root element dispensed with so
>> that I can eg store XML fragments as valid XML in lots of files and
>> easily combine them into usable xml (using a high tech tool like cat..)
> 
> 
> Since that may never happen with XML, you might want to hedge your
> bets by learning the advanced echo (1) technology as well:
> 
> $ echo '<foo>' > mydocument.xml
> $ cat fragments/*.xml >> mydocument.xml
> $ echo '</foo>' >> mydocument.xml
> 
> (That's assuming that none of your XML files has an XML declaration.)

and that they have all the same encoding without BOM, and that they are 
really fragments that is to say without a DTD decl

only XML parsers have to process XML as text


Best regards

-- 
Cordialement,

               ///
              (. .)
  --------ooO--(_)--Ooo--------
|      Philippe Poulard       |
  -----------------------------
  http://reflex.gforge.inria.fr/
        Have the RefleX !


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS