aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/xml.el
Commit message (Collapse)AuthorAgeFilesLines
* eliminate use of inefficient match-dataMark A. Hershberger2005-06-101-12/+48
|
* 2005-05-26 Mark A. Hershberger <[email protected]>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 <[email protected]>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 <[email protected]>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 <[email protected]>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 <[email protected]>.
* 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 <[email protected]>.
* Emacs lisp coding convention fixes.Pavel Janík2001-07-141-10/+10
|
* (xml-parse-tag): The document may contain invalid characters.Gerd Moellmann2001-05-311-1/+3
| | | | From ShengHuo ZHU <[email protected]>
* (top level comment): Updated to reflect the fact thatGerd Moellmann2000-12-221-14/+26
| | | | | | | | | | | | | white spaces are relevant in the XML file (xml-parse-file): Do not kill an existing Emacs buffer if the file to parse was already edited. This allows for on-the-fly analysis of XML files (xml-parse-tag): Check that the casing is the same in the start tag and end tag, since XML is case-sensitive. Allows for spaces in the end tag, after the name of the tag. (xml-parse-attlist): Allow for the character '-' in the name of attributes, as in the standard http-equiv attribute Do not save the properties in the XML tree, since they are not relevant
* (xml-parse-tag): Fix finding opening tag. A tag nameKenichi Handa2000-11-291-1/+1
| | | | should not contain `\n'.
* (xml-parse-tag, xml-parse-attlist): Do not downcaseGerd Moellmann2000-08-141-7/+3
| | | | identifiers, since XML is case sensitive
* *** empty log message ***Gerd Moellmann2000-07-191-0/+508