Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #9535
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: includes in xml-files? |
| Date | 2011-11-04 15:51 -0700 |
| Organization | Canadian Mind Products |
| Message-ID | <hiq8b7talkbfmqmfn837vrd06trnhkd2dt@4ax.com> (permalink) |
| References | <j8vs8h$bah$1@news.m-online.net> |
On Fri, 04 Nov 2011 06:12:52 +0100, Magnus Warker <magnux@mailinator.com> wrote, quoted or indirectly quoted someone who said : >How can I do that? WhatÄs the syntax for the include directives? I have nested includes in the HTMLMacros processor. You need an Include object that keeps track of the mother file and where you were in it, or simply do it with recursive calls with that info tracked in local variables. What syntax? I have never heard of anything part of the XML protocol. If you want to be able to include in the middle of a field you will need something that won't be confused with data. You could do it with something that looked a bit like real XML e.g. <include "file.txt" /> (which can even appear in the middle of a field or between XML tags. The embedded text need not contain balanced tags. You might want to decorate it a bit to avoid conflicting with real xml e.g. <@include "file.txt" /> You might want to make it look more like real XML, e.g. <include file="file.txt /> or <@include>file.txt</@include> You might to make it look like perfectly legit XML so the XML parser will find and parse the commands for you. Otherwise you will have to look ahead yourself or preprocess the file to create the complet file before feeding it to the XML processor. -- Roedy Green Canadian Mind Products http://mindprod.com Capitalism has spurred the competition that makes CPUs faster and faster each year, but the focus on money makes software manufacturers do some peculiar things like deliberately leaving bugs and deficiencies in the software so they can soak the customers for upgrades later. Whether software is easy to use, or never loses data, when the company has a near monopoly, is almost irrelevant to profits, and therefore ignored. The manufacturer focuses on cheap gimicks like dancing paper clips to dazzle naive first-time buyers. The needs of existing experienced users are almost irrelevant. I see software rental as the best remedy.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar
includes in xml-files? Magnus Warker <magnux@mailinator.com> - 2011-11-04 06:12 +0100
Re: includes in xml-files? Roedy Green <see_website@mindprod.com.invalid> - 2011-11-04 15:51 -0700
Re: includes in xml-files? Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2011-11-04 20:20 -0300
Re: includes in xml-files? Roedy Green <see_website@mindprod.com.invalid> - 2011-11-04 17:46 -0700
Re: includes in xml-files? Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2011-11-04 22:58 -0300
Re: includes in xml-files? Arne Vajhøj <arne@vajhoej.dk> - 2011-11-04 20:14 -0400
Re: includes in xml-files? Arne Vajhøj <arne@vajhoej.dk> - 2011-11-04 21:32 -0400
Re: includes in xml-files? Jeff Higgins <jeff@invalid.invalid> - 2011-11-04 20:41 -0400
Re: includes in xml-files? Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2011-11-04 23:00 -0300
Re: includes in xml-files? Roedy Green <see_website@mindprod.com.invalid> - 2011-11-04 18:20 -0700
csiph-web