emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems with xml-parse-string


From: Lars Magne Ingebrigtsen
Subject: Re: Problems with xml-parse-string
Date: Fri, 24 Sep 2010 17:53:00 +0200
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux)

Chong Yidong <address@hidden> writes:

> Could you elaborate?  I'm looking at sxml's Wikipedia page, which has an
> example where
>
>   <tag attr1="value1"
>        attr2="value2">
>     <nested>Text node</nested>
>     <empty/>
>   </tag>
>
> maps to
>
>   (tag (@ (attr1 "value1")
>           (attr2 "value2"))
>     (nested "Text node")
>     (empty))
>
> This seems pretty regular to me.

The main difference between sxml and xml.el output is that it has the
weird an unnecessary "@" node for the attributes and that it wastes a
cons in the attributes, isn't it?

Other than that it has the same problem that xml.el has, in that text
nodes have to be special-cased, so you can't say assq or use simple
descent without testing.

-- 
(domestic pets only, the antidote for overdose, milk.)
  address@hidden * Lars Magne Ingebrigtsen




reply via email to

[Prev in Thread] Current Thread [Next in Thread]