From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Sun Feb 28 1999 - 17:05:20 EST
> Thanks!
Ok i have commited in CVS the changes needed for allocating/freeing parser
contexts. Since I was busy with sysadmin stuff, I have left a small
memory leak and didn't tested much, feedback welcome.
http://rpmfind.net/veillard/XML/gnome-xml-parserinternals.html#XMLCREATEFILEPARSERCTXT
> > BTW, could you indicate what kind of use you have in mind ? If this
> > turn out to be useful to others I may move it directly in tree.h .
> >
>
> Well, it is sort of ugly. I am writing something for publication, and the
> publisher wants it in some atrocious format that will work with their
> Microsoft software (their setup is ridiculously inefficient and
> wrongheaded). I don't want to write in that format, because I want to be
> able to manipulate the document with automated tools. I couldn't find an
> existing DTD that was really appropriate. So I made up a little standalone
> tag-set which corresponds to the styles they use, and using libxml I load
> in my document and spit it out again in a format they can deal with.
>
> Since the document is large I wanted #include type functionality,
Well that's what entities are for. But I don't yet support external
entities. Things like:
<?xml version="1.0"?>
<!DOCTYPE example [
<!ENTITY title system "title.xml"> ]>
<example>
&title;
</example>
With the current framework, external entity support shouldn't require
more than a couple of hours of work ... I also need to provide a switch for
entities replacement, currently the tree contains an element indicating
the entity reference, that's useful for saving, but not always the expected
behaviour.
> and I thought the easiest way to do that would be with a magic <include>
> tag, since I'm using my own hacky program to generate output anyway.
> Now that I think about it I guess SGML at least had an "official" way to
> do this. Anyway the included file contains an XML fragment.
>
> Yesterday I hacked around it by loading the file into memory, placing
> <dummy> </dummy> around the memory and parsing that, ignoring the top
> node. But it sucks. :-) (The program is basically a single-use hack
> though, so I'm not that concerned about it.)
Ok, understood ...
Daniel
-- [Yes, I have moved back to France !] Daniel.Veillard@w3.org | W3C, INRIA Rhone-Alpes | Today's Bookmarks : Tel : +33 476 615 257 | 655, avenue de l'Europe | Linux, WWW, rpmfind, Fax : +33 476 615 207 | 38330 Montbonnot FRANCE | rpm2html, XML, http://www.w3.org/People/W3Cpeople.html#Veillard | badminton, and Kaffe. ---- Message from the list xml@rufus.w3.org Archived at : http://rufus.w3.org/veillard/XML/messages to unsubscribe: echo "unsubscribe xml" | mail majordomo@rufus.w3.org
This archive was generated by hypermail 2b29 : Wed Aug 02 2000 - 12:29:26 EDT