[Top][All Lists]
[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
- Re: Problems with xml-parse-string, (continued)
- Re: Problems with xml-parse-string, Stefan Monnier, 2010/09/23
- Re: Problems with xml-parse-string, Lars Magne Ingebrigtsen, 2010/09/23
- Re: Problems with xml-parse-string, Chong Yidong, 2010/09/23
- Re: Problems with xml-parse-string, David De La Harpe Golden, 2010/09/23
- Re: Problems with xml-parse-string, David Kastrup, 2010/09/24
- Re: Problems with xml-parse-string, Eli Zaretskii, 2010/09/24
- Re: Problems with xml-parse-string, Wojciech Meyer, 2010/09/24
- Re: Problems with xml-parse-string, Wojciech Meyer, 2010/09/24
- Re: Problems with xml-parse-string, Lars Magne Ingebrigtsen, 2010/09/24
- Re: Problems with xml-parse-string, Chong Yidong, 2010/09/24
- Re: Problems with xml-parse-string,
Lars Magne Ingebrigtsen <=
- Re: Problems with xml-parse-string, Chong Yidong, 2010/09/24
- Re: Problems with xml-parse-string, Lars Magne Ingebrigtsen, 2010/09/24
- Re: Problems with xml-parse-string, Wojciech Meyer, 2010/09/24
- Re: Problems with xml-parse-string, Frank Schmitt, 2010/09/24
- Re: Problems with xml-parse-string, Ted Zlatanov, 2010/09/24
- Re: Problems with xml-parse-string, Wojciech Meyer, 2010/09/24
- Re: Problems with xml-parse-string, Chong Yidong, 2010/09/24
- Re: Problems with xml-parse-string, Chong Yidong, 2010/09/24
- Re: Problems with xml-parse-string, Wojciech Meyer, 2010/09/24
- Re: Problems with xml-parse-string, Lars Magne Ingebrigtsen, 2010/09/24