1: ;;; xml.el --- XML parser 2:
7: ;; Maintainer: Mark A. Hershberger <mah@eve...> 8: ;; Keywords: xml, data 9:
54: ;; The functions `xml-parse-file', `xml-parse-region' and 55: ;; `xml-parse-tag' return a list with the following format: 56: ;; 57: ;; xml-list ::= (node node ...) 58: ;; node ::= (qname attribute-list . child_node_list)
1: ;;; xml.el --- XML parser 2:
6: ;; Maintainer: Emmanuel Briot <briot@gna...> 7: ;; Keywords: xml 8:
37: ;; 38: ;; It also knows how to ignore comments, as well as the special ?xml? tag 39: ;; in the XML file.
54: ;; The functions `xml-parse-file' and `xml-parse-tag' return a list with 55: ;; the following format:
2: ;;;; 3: ;;;; $Id: xml.lisp,v 1.16 2006-01-31 11:44:15 scaekenberghe Exp $ 4: ;;;;
8: ;;;; The API into the parser is a pure functional parser hook model that comes from SSAX, 9: ;;;; see also http://pobox.com/~oleg/ftp/Scheme/xml.html or http://ssax.sourceforge.net 10: ;;;; Different DOM models are provided, an XSML, an LXML and a xml-element struct based one.
18: (in-package :s-xml) 19:
22: (define-condition xml-parser-error (error) 23: ((message :initarg :message :reader xml-parser-error-message)
2: (in-package :lexiparse) 3: ;$Id: xml.lisp,v 1.8 2005/09/12 03:21:32 dvm Exp $ 4:
7: (eval-when (:compile-toplevel :load-toplevel :execute :slurp-toplevel) 8: (export '(rdf-xml-out xml-w-namespaces-print xml-pretty-print))) 9:
16: (:e (:stream xml-out-srm) 17: (!= p* 2) 18: (start-tag-out xe xml-out-srm)) 19: (:q ((not (null (XML-element-contents xe)))
1: ;;; xml.el --- XML parser 2:
6: ;; Maintainer: Emmanuel Briot <briot@gna...> 7: ;; Keywords: xml 8:
37: ;; 38: ;; It also knows how to ignore comments, as well as the special ?xml? tag 39: ;; in the XML file.
54: ;; The functions `xml-parse-file' and `xml-parse-tag' return a list with 55: ;; the following format:
1: ;;; xml-parse --- code to efficiently read/write XML data with Elisp 2: ;;; 3: ;;; $Id: xml-parse.el,v 1.4 2001/05/12 22:36:13 ryants Exp $ 4:
9: ;; Created: Feb 15, 2001 10: ;; Keywords: convenience languages lisp xml parse data 11: ;; URL: http://www.gci-net.com/~johnw/emacs.html
35: ;; 36: ;; The approach taken by xml-parse.el is to read XML data into Lisp 37: ;; structures, and allow those same Lisp structures to be written out
1: ;; my-indent/xml.el --- indent rules for xml-mode 2:
22: ;; 23: ;; (require 'my-indent/xml) 24: ;; (add-hook 'nxml-mode-hook 'my-indent-set-xml)
29: (setq my-indent-exp-xml 30: (my-indent-build-exps (let* ((main (list t))
45: (defun my-indent-xml () 46: "Indent current line as xml source text." 47: (interactive)
3: ;; @version 2.1 4: ;; @location http://static.artfulcode.net/newlisp/xml.lsp 5: ;; @package http://static.artfulcode.net/newlisp/xml.qwerty 6: ;; @description Parsing and serializing of XML data (updated for newlisp 10).
12: ;; • updated for newlisp 10 13: ;; • some arguments have changed in lisp->xml and xml->lisp 14: ;; • default encoding is now determined by newlisp UTF-8 compile options
32: (constant 'xml-entity-decode-re (regex-comp "&#(\\d{1,4});")) 33: (constant 'xml-entity-encode-re (regex-comp (string "(" (join (map (fn (i) (format {\x%x} i)) '(34 38 39 60 62)) "|") ")")))
Home page di Google - Google Labs - Parlane con altri - Termini di servizio - Guida - Invia il tuo codice
©2010 Google - Privacy