Can you not generate the files as: <content>This is <keyword>foo</keyword></content>
or even: <content>This is <foo/></content> and apply a suitable XSLT stylesheet? Regards, Dave At 21:24 28/03/2002 +0100, Joachim Seibert wrote: >I got the following task to solve: > >In certain tags of my xml files, I want to replace a keyword "foo" with >some other data (let's say: "bar"). > ><content>This is foo</content> >now becomes: ><content>This is bar</content> > >As background information: >I want to add links for specified keywords out of a database: >"foo" => <link src="http://www.foo.com">foo</link> > >Has anybody done a similar thing? >I think, Apache::Filter is the right way (or is there a better one)!?. >I have to read all requested XML files on my own and change the content >manually. >But using simple regex's for the replacement is not enough, so that can >corrupt my tags. > >Any ideas welcome! > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
