emacs-devel
[Top][All Lists]
Advanced

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

Problems with xml-parse-string


From: Leo
Subject: Problems with xml-parse-string
Date: Tue, 14 Sep 2010 19:11:43 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (Mac OS X 10.6.4)

Hello,

xml-parse-string is already defined in xml.el. How about rename these
two primitives to parse-html-string and parse-xml-string?

xml.el and the primitive xml-parse-string do not return the same
structure. But I don't know which one is better.

I use the primitive in a function like this

(defun test ()
  (xml-parse-string (buffer-substring (point) (point-max))))

Somehow it can return the symbol `buffer-substring' or 'edebug-after',
after alternating C-u C-M-x and C-M-x that function. Unfortunately I
can't find a way to reliably reproduce it. Any wild guess where the
problem might be? Passing an empty string (xml-parse-string "") returns
#<objfwd to nil>, is this normal?

Leo




reply via email to

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