summaryrefslogtreecommitdiff
path: root/lisp/xml.el
Commit message (Collapse)AuthorAgeFilesLines
* * xml.el (xml-parse-tag, xml-parse-string, xml-parse-attlist)Chong Yidong2007-03-171-27/+31
| | | | | | | | (xml-parse-dtd, xml-parse-elem-type, xml-substitute-special): Return to use of the -no-properties variants. There was consensus on emacs-devel that the speed of these variants was prefered since we are usually parsing files (from the internet or on disk) instead of XML created in Emacs.
* Add 2007 to copyright years.Glenn Morris2007-01-211-1/+1
|
* (xml-parse-file): Clean up, and use with-temp-buffer.Richard M. Stallman2006-07-241-16/+13
|
* Update years in copyright notice; nfc.Thien-Thi Nguyen2006-02-061-1/+1
|
* use provided patchMark A. Hershberger2006-02-021-10/+10
|
* fixing bug reportMark A. Hershberger2006-02-021-66/+66
|
* xml.el fixesMark A. Hershberger2005-11-031-5/+6
|
* (xml-att-def-re): Add defvar.Richard M. Stallman2005-08-091-0/+1
|
* Update years in copyright notice; nfc.Thien-Thi Nguyen2005-08-061-1/+2
|
* Update FSF's address.Lute Kamstra2005-07-041-2/+2
|
* eliminate use of inefficient match-dataMark A. Hershberger2005-06-101-12/+48
|
* 2005-05-26 Mark A. Hershberger <mah@everybody.org>Mark A. Hershberger2005-05-261-2/+6
| | | | | * xml.el (xml-substitute-special): Don't die for undefined xml entities.
* (xml-name-re, xml-entity-value-re): Add defvars.Richard M. Stallman2004-12-131-0/+2
|
* Skip parameter entity declarations.Mark A. Hershberger2004-12-021-1/+17
|
* Change existence of &; to not-well-formed.Mark A. Hershberger2004-12-021-4/+3
|
* Ensure that validity messages only show when xml-validating-parser is set.Mark A. Hershberger2004-12-021-3/+5
|
* 2004-11-30 Mark A. Hershberger <mah@everybody.org>Mark A. Hershberger2004-12-011-3/+7
| | | | | | | | * xml.el (xml-substitute-special): Fix validity error messages to actually show the unexpandable entity. Added validity error if & isn't followed by an entity. (xml-parse-tag): Concatnate any string following the a <![CDATA[]]> section to the parsed CDATA.
* 2004-10-07 Mark A. Hershberger <mah@everybody.org>Mark A. Hershberger2004-10-071-8/+3
| | | | | * xml.el (xml-substitute-special): Limit handling of external entities.
* (xml-parse-dtd): Fix `error' call.John Paul Wallington2004-10-061-2/+2
|
* fix to for xml-substitute-special to produce a single string insteadMark A. Hershberger2004-10-061-8/+12
| | | | of several if a substitution is made.
* 2004-07-09 Mark A. Hershberger <mah@everybody.org>Mark A. Hershberger2004-07-091-127/+273
| | | | | | | | | | | | | | | | | | | * xml.el (xml-maybe-do-ns, xml-parse-tag): Produce elements in the form (("ns" . "element") (attr-list) children) instead of ((:ns . "element") (attr-list) children) in order to reduce the number of symbols used. (xml-skip-dtd): Change to use xml-parse-dtd but set xml-validating-parsing to nil. (xml-parse-dtd): Parse entity deleclarations in DOCTYPEs. (xml-substitute-entity): Remove in favor of new entity substitution. (xml-substitute-special): Rewrite in to substitute complex entities from DOCTYPE declarations. (xml-parse-fragment): Parse fragments from entity deleclarations. (xml-parse-region, xml-parse-tag, xml-parse-attlist) (xml-parse-dtd, xml-substitute-special): Make validity checks conditioned on xml-validating-parser. Add "Not Well Formed" to error messages about well-formedness.
* Arch-tags shouldn't be outline headers.Stefan Monnier2004-05-021-1/+1
|
* (xml-debug-print-internal): Don't add newline andAlex Schroeder2004-04-301-16/+26
| | | | | | | indentation to text nodes and write empty elements as empty tags instead of opening and closing tags. (xml-debug-print): Take optional indent-string argument. (xml-print): Alias for xml-debug-print.
* Doc fixes.Stefan Monnier2004-04-161-13/+25
| | | | (xml-get-children): Only looks at sub-tags and ignore strings.
* (xml-parse-tag): Avoid overwriting node-name.Stefan Monnier2004-04-161-3/+1
|
* (xml-maybe-do-ns): New function to handle namespaceStefan Monnier2004-04-141-90/+57
| | | | | | | | parsing of both attribute and element names. (xml-ns-parse-ns-attrs, xml-ns-expand-el, xml-ns-expand-attr) (xml-intern-attrlist): Remove in favor of xml-maybe-do-ns. (xml-parse-tag): Update assumed namespaces. Clean up namespace parsing. (xml-parse-attlist): Make it do its own namespace parsing.
* (xml-get-attribute-or-nil): Simplify.Stefan Monnier2004-03-021-5/+2
|
* (xml-get-attribute-or-nil): Doc fix.Eli Zaretskii2003-12-291-1/+1
|
* Fix previous change. Remove redundant trailing whitespace.Eli Zaretskii2003-12-291-10/+7
|
* (xml-get-attribute-or-nil): New function, likeEli Zaretskii2003-12-291-4/+13
| | | | | | xml-get-attribute, but returns nil if the attribute was not found. (xml-get-attribute): Converted to defsubst, uses xml-get-attribute-or-nil.
* (xml-parse-dtd): Fix misplaced paren.Andreas Schwab2003-11-071-2/+2
|
* Allow comments following the top-level element.Eli Zaretskii2003-11-011-59/+94
| | | | | | Separate out namespace parsing into special functions. Change namespace parsing to return ('ns-uri . "local-name") instead of '{ns-uri}local-name.
* Add arch taglinesMiles Bader2003-09-011-0/+1
|
* (xml-parse-tag): Namespace support.Juanma Barranquero2003-07-141-54/+106
| | | | | (xml-parse-file): Namespace suport. (xml-parse-region): Namespace suport.
* Record new maintainer.Richard M. Stallman2003-06-301-1/+1
|
* (xml-parse-tag): Return (foo nil) rather than (foo nil "")Stefan Monnier2003-05-301-3/+1
| | | | for <foo/>, to make it behave like <foo></foo>.
* (xml-name-regexp): Wrap in `eval-and-compile'.John Paul Wallington2003-05-191-1/+2
|
* Doc fixes.Dave Love2003-05-191-242/+288
| | | | | | | | | | | | | | | | | | | | | | | | (xml-parse-file, xml-parse-region): Autoload. (xml-syntax-table, xml-name-regexp): New. (xml-parse-region): Narrow to region, set syntax-table and case-fold-search. Reject fewer valid documents. (xml-parse-tag): Remove arg END. Callers changed. (xml-parse-tag): Use skip-syntax-forward. Use PARSE-DTD arg properly. Don't use buffer-substring-no-properties. Don't bind case-fold-search. Fix syntax for empty elements. Hoist consing of end-of-tag regexp out of loop. (xml-parse-attlist): Remove arg. Callers changed. Use skip-syntax-forward, replace-regexp-in-string, forward-sexp. Allow non-ASCII names. (xml-skip-dtd): Remove arg. Callers changed. Change matching code. (xml-parse-dtd): Grok external DTDs. Allow non-ASCII. Don't use match-string-no-properties. (xml-ucs-to-string): Deleted. (xml-substitute-entity): New. (xml-substitute-special): Use it. (xml-debug-print-internal): Simplify insertions. (xml-parse-file): Avoid finding file in xml-mode.
* (xml-parse-attlist): typo in attribute parsing.Juanma Barranquero2003-03-201-2/+2
|
* (xml-ucs-to-string): New function to convert Unicode codepoints to strings.Juanma Barranquero2003-03-161-38/+84
| | | | | | | | Uses decode-char (mule.el) if available. (xml-parse-tag, xml-parse-attlist, xml-skip-dtd, xml-parse-dtd, xml-parse-elem-type): Use ' \t\n\r' instead of '[:space:]'. (xml-parse-attlist): Added attribute normalization. (xml-parse-tag): Replace "\r\n" and "\r" with "\n".
* (xml-skip-dtd): Fix parsing of DOCTYPE.Juanma Barranquero2003-03-111-0/+1
|
* (xml-parse-elem-type): Fix use of character constant.Juanma Barranquero2003-02-141-1/+1
|
* (xml-parse-tag, xml-parse-attlist, xml-skip-dtd, xml-parse-dtd,Juanma Barranquero2003-01-101-20/+20
| | | | xml-parse-elem-type): Be more flexible in recognizing empty elements.
* Comment change.Richard M. Stallman2003-01-061-1/+1
|
* (xml-substitute-special): Move "&amp;" -> "&" last.Thien-Thi Nguyen2003-01-041-13/+14
|
* (xml-parse-tag): Allow spaces between / and >.Stefan Monnier2002-12-161-1/+1
|
* * xml.el (xml-parse-attlist): Accept empty strings.ShengHuo ZHU2002-03-051-2/+2
| | | | From Max Froumentin <mf@w3.org>.
* Use setq rather than (set 'foo bar).Stefan Monnier2001-12-141-107/+90
| | | | | | | | | Use push+nreverse rather than append. (xml-node-name, xml-node-attributes, xml-node-children): Use defsubst rather than macros. (xml-parse-region): Handle a nil return value from xml-parse-tag. (xml-parse-tag): Don't skip white space. Return nil for a comment. Concat the two strings surrounding a comment into a single string.
* (xml-parse-tag): Use eq on char-after's return value.Stefan Monnier2001-10-181-1/+1
|
* (xml-parse-attlist): Quotes around attributes must be theGerd Moellmann2001-09-241-1/+1
| | | | | same on each side. Make sure we properly handle simple quotes. From Daiki Ueno <ueno@unixuser.org>.