* Josh Babcock -- Monday 04 December 2006 14:35: > <PropertyList> > <merge> > <filename>foo.xml</filename> > </merge> > <!-- followed by any number of additional merge or append elements --> > </PropertyList>
In this case a simple <merge>foo.xml</merge> would do. But introducing a global keyword that is executed at XML load time is a bit problematic. It should probably be different from other tags ... <_MERGE_> or something.Yes, ugly. :-/ The advantage is that it can be placed everywhere in a file. > Also keep in mind that the xml parser will not accept the following > <PropertyList include="foo" include="bar"> The question here is: is this valid XML? Or should the last attribute always override all former of the same name? Would be cleaner than the previous method, but less flexible: one could only prepend the loaded contents. > PS, Melchior just suggested an <import> element which would include a > file's contents at that particular spot. This alone would probably be a > suitable solution. I guess the imported file would not have to contain a > valid <PropertyList>, just a block of xml to be spliced into the file. Of course it would have to contain the <PropertyList> tags. But the rest could be read in as is. m. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel