| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
(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.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
* xml.el (xml-substitute-special): Don't die for undefined xml
entities.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
| |
* xml.el (xml-substitute-special): Limit handling of external
entities.
|
| |
|
|
|
|
| |
of several if a substitution is made.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
(xml-get-children): Only looks at sub-tags and ignore strings.
|
| |
|
|
|
|
|
|
|
|
| |
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, but returns nil if the attribute was not found.
(xml-get-attribute): Converted to defsubst, uses
xml-get-attribute-or-nil.
|
| |
|
|
|
|
|
|
| |
Separate out namespace parsing into special functions.
Change namespace parsing to return ('ns-uri . "local-name")
instead of '{ns-uri}local-name.
|
| |
|
|
|
|
|
| |
(xml-parse-file): Namespace suport.
(xml-parse-region): Namespace suport.
|
| |
|
|
|
|
| |
for <foo/>, to make it behave like <foo></foo>.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(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.
|
| |
|
|
|
|
|
|
|
|
| |
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-parse-elem-type): Be more flexible in recognizing empty elements.
|
| |
|
| |
|
| |
|
|
|
|
| |
From Max Froumentin <mf@w3.org>.
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
| |
same on each side. Make sure we properly handle simple quotes.
From Daiki Ueno <ueno@unixuser.org>.
|