Re: [PHP] appending to XML file before closing tag

2002-06-26 Thread Erik Price
On Tuesday, June 25, 2002, at 08:42 PM, Brian White wrote: I was actually thinking about this the other day - every now and again I find my self yearning for SGML, where you could have just declared the wrapping element end tag omissable, and then you would never have to worry about it -

Re: [PHP] appending to XML file before closing tag

2002-06-26 Thread Brian White
rantmode Hey - if you read my post a little more carefully you would see that I was bemoaning the effective passing of *SGML*. I was on a nostaligia trip. I am well aware that SGML is a bit of a complicated beheamoth, but it you have a decent SGML parser ( such as Omnimark or SP) you could do

Re: [PHP] appending to XML file before closing tag

2002-06-25 Thread Erik Price
On Tuesday, June 25, 2002, at 09:31 AM, William S. wrote: I know I need to introduce: fread() and fseek(). but not sure how to put it all together. If you know for a fact that the ending tag for each file is consistent and always that same tag, here's an idea. Determine or specify the

Re: [PHP] appending to XML file before closing tag

2002-06-25 Thread William S.
Yes, that worked. Nice and effective solution. Thank you. On Tue, Jun 25, 2002 at 09:51:21AM -0400, Erik Price wrote: snip If you know for a fact that the ending tag for each file is consistent and always that same tag, here's an idea. Determine or specify the length of the ending tag