Re: [ssax-sxml] SXML in Emacs
Brought to you by:
oleg
From: Joerg F. W. <Joe...@so...> - 2004-07-16 10:37:01
|
Hi Oliver, Oliver Scholz <alk...@gm...> writes: > I am working on an XML parser framework, much inspired by SSAX, for > GNU Emacs. An important part of this will probably be an XML->SXML > parser. Oh, great! I'd love to use my good old emacs for XML. I have too much XML in that p2p database and just mozilla to edit it. :-/ > For my XML processing tasks I need a data structure that allows to > keep the contents of a text-node in an Emacs buffer, as an alternative > to keeping them only in Lisp strings. The plan is to have a unique ... > Any thoughts? Or is SXML just not the right thing for me? I have no > particular need for it myself, but I fancied that it would be nice for > users to have a somewhat standard s-expression representation. I had a simillar problem with Askemos/BALL. Only that I had reason to stick with a uniqe data type for the element nodes. Eventually that implied for me, that I can't switch to SXML as the internal data structure. But I'd be fancied for standard too. How about either define the standard in terms of predicates (like xml-element?, xml-attribute? and xml-literal?) or implement it as converter from SXML representation to the internal representation. I'm personally in favor for the predicate-approach, since it would save processing. best regards /J=F6rg --=20 The worst of harm may often result from the best of intentions. www.askemos.org |