From: David E. <dm...@dm...> - 2016-01-21 09:44:08
|
(I'm not currently subscribed to emacs-jabber-general - please include me in any replies.) I'm trying to use emacs-jabber to communicate with the Oracle Beehive XMPP server at $dayjob. The server seems to be liberal in sprinkling the XML that it supplies with white space. The XML parser itself is fine with this, but `jabber-xml-skip-tag-forward' couldn't cope. More generally, wouldn't it be useful if the emacs XML library provided a way to consume terms from a buffer in an iterative manner? I tried playing around with: (let ((xml-sub-parser t)) (xml-parse-region (point-min) (point-max))) which is doing the right kind of thing, but really it would be more convenient if we could ask the XML parser to read a single term from a buffer, return the term _and_ remove the term that was consumed from the buffer. The emacs JSON parser supports something like this, I believe (though it has been several years since I last used it). David Edmondson (1): jabber-xml-skip-tag-forward: improve the match regexp jabber-xml.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) -- 2.6.3 |