This manual describes the SDOM Scheme module.
Copyright © 2004, 2005 Julian Graham.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled “GNU Free Documentation License”.
Appendices
Indices
SDOM aims to provide a complete Scheme implementation of the W3C's Document Object Model API recommendation, as an extension of Oleg Kiselyov's SXML project. This document contains a description of the SDOM API, including explanatory notes for cases in which the SDOM API diverges significantly from the W3C recommendation. In general, an attempt has been made to replicate the recommendation's API method-for-method, but because of inherent differences between rules and conventions of the Scheme language and those of the languages for which the DOM recommendation seems to have been initially intended, we believe that some of the changes we made were requisite, if not actually more desirable than the original. Some of the major differences are discussed in the following sections.
Probably the biggest difference. The DOM recommendation presumes a language such as C++ or Java that is capable of representing abstract data types in a way that is not immediately compatible with standards for data representation in Scheme. Although, depending on one's choice of Scheme compiler, various object-orientation frameworks may be available, none seem to be portable across implementations; and, at any rate, the grammar in SXML is, for the most part, sufficient for distinguishing important types.
As such, the Node interface and its descendants specified in the Level 3 Core API are not present in SDOM. Instead, SDOM attempts to infer type according the rules presented in the section on Node Types. Intermediate interfaces, such as CharacterData, from which the DOM node types Text and CDATASection both inherit, have been omitted. The inheritance of node properties is still very much a feature of SDOM, however, and is implemented transparently; for further discussion, see the section on properties.
Another consequence of the lack of object orientation in SDOM is that many of the supporting data types in the DOM recommendation have been omitted. Some examples include:
One of the requirements in the implementation of SDOM was that it not break with the grammar specified for parsed XML documents in the SXML project. In general, this requirement was a straightforward one to meet, but the variety of interfaces specified by the DOM recommendation combined with the relative simplicity of SXML's grammar specification necessitated the addition of a few special cases that will be addressed shortly.
The vast majority of the additional book-keeping required by SDOM is implemented as a set of annotations that follow the guidelines set forth by the SXML manual.
As such, documents created by the SDOM API or created by the SXML API and imported as SDOM documents are fully compatible with the SXML API according to the following rules:
As mentioned above, one of the challenges in implementing a DOM on top of SXML was that SXML's grammar does not directly directly provide the means for handling the range of types specified by the DOM recommendation. For example, without a number of contextual clues, it is difficult or impossible to distinguish between an attribute and an element or between a text node or a CDATA section, as presented in an SXML document. As a solution to this problem, SDOM represents “ambiguous” nodes in two different ways:
- As an “interior” node whose parent contains descriptive annotations based on the position of the node. For example, the node expression:
(foo (@ (@ (@-1 ((sdom:parent-node #<procedure #f ()>) (sdom:is-cdata #t))) (@-2 ((sdom:parent-node #<procedure #f ()>))))) "bar" (*COMMENT* "baz"))
represents an element node with two children – a CDATA section that contains the string “foo” and a comment with text “baz.” The annotations 1 and 2 on foo are actually annotations for its first and second children, respectively – SXML does not permit annotations for CDATA sections or comments.
- As an “exterior” node, a form in which the requisite annotations are attached to the node itself, but which may not actually be grammatically correct as SXML. For example, the node expression:
("bar" (@ (sdom:parent-node #<procedure #f ()>) (sdom:is-cdata #t) (sdom:sxml-representation "bar")))
represents the same CDATA section in the example above, but outside the context of its parent. The annotations attached to it are the same ones as when it is in interior context, with the addition of the “sxml-representation” property, which provides a reference to the object as it appears in its interior context (i.e., an object that can be located as a child of the parent using the eq? predicate). Any modification operations (properly) applied to the exterior representation of a node will cause the interior representation to be updated correctly as well.
The default behavior of the SXML ssax:xml->sxml parser with regard to XML namespaces is to resolve any prefixes it finds to their corresponding namespace URIs (provided these are specified by the document) and then replace all prefixes with either a symbolic form of the URI or a so-called "user namespace shortcut," depending on whether or not a list of shortcuts is specified at parse time. The original prefix is not made available as part of the namespace mapping in the resulting S-list.
Because this behavior is the default for SXML (it can changed, but doing so is not straightforward) and because DOM does not explicitly discuss the use of such shortcuts, SDOM treats them as being interchangeable with coventional XML namespace prefixes. This behavior can be modified on a per-document basis with a call to sdom:set-dom-configuration-parameter!, setting the option "sdom:prefer-orig-prefix" to "true." If this option is set, SDOM functions that manipulate prefixes will look for the original prefix in the namespace declaration before looking at the user namespace shortcut.
For example, a typical namespace declaration in an SXML document looks like this:
(*NAMESPACES* (foo "http://www.foo.bar.com/"))
provided you've invoked ssax:xml->sxml something like this:
(ssax:xml->sxml (open-input-file "baz.xml") '((foo "http://www.foo.bar.com/"))))
where baz.xml contains:
<?xml version="1.0"?> <doc xmlns:baz="http://www.foo.bar.com/"> <baz:element/> </doc>
(If you don't provide the mapping of shortcuts to URIs, you won't, by default, get any namespace declarations, and all prefixes will be translated to symbolized URIs – baz:element will become http://www.foo.bar.com:element.) So, by default, if you evaluate sdom:lookup-prefix for "foo" on the appropriate node, you'll get "http://www.foo.bar.com/," even though foo may not actually have been a prefix. Likewise, a call to sdom:lookup-namespace-uri on "http://www.foo.bar.com/" will return foo.
Now let's say you've constructed your SXML parser so that it preserves prefixes and stores them in namespace declarations, which now look more like this:
(*NAMESPACES* (foo "http://www.foo.bar.com/" baz))
If you've set sdom:prefer-orig-prefix to true, then a call to sdom:lookup-prefix for both foo and baz will return "http://www.foo.bar.com/." A call to sdom:lookup-namespace-uri on "http://www.foo.bar.com/" will return baz. (If the original prefix is not available, sdom:lookup-namespace-uri will return foo instead.)
The following functions are described in terms of their respective counterparts in the W3C DOM recommendation; you should refer to that document for more thorough discussion of the expected behavior.
On the other hand, this implementation does not adhere strictly to the organization of interfaces in the recommendation, so the following groupings are based on the purpose of the functions they contain, not on their position within the DOM hierarchy.
Inserts new-node as a new child node of parent. If ref-node is specified, this function will insert new-node such that it precedes ref-node as a child of parent in the document order; otherwise its behavior will be identical to that of sdom:append-child!.
Errors:
- Throws sdom:exception-code-wrong-document-err if new-node and parent do not belong to the same document
- Throws sdom:exception-code-hierarchy-request-err if nodes of new-node's type cannot be children of parent
- Throws sdom:exception-code-not-found-err if ref-node is not a child of parent
Events:
- sdom:event-dom-node-inserted will be dispatched if the insertion completes successfully
Inserts new-node as a new child node of parent. If ref-node is specified, this function will insert new-node such that it follows ref-node as a child of parent in the document order; otherwise its behavior will be identical to that of sdom:append-child!.
Errors:
- Throws sdom:exception-code-wrong-document-err if new-node and parent do not belong to the same document
- Throws sdom:exception-code-hierarchy-request-err if nodes of new-node's type cannot be children of parent
- Throws sdom:exception-code-not-found-err if ref-node is not a child of parent
Events:
- sdom:event-dom-node-inserted will be dispatched if the insertion completes successfully
Throws sdom:exception-code-not-found-err if old-child is not a child of parent
Errors:
- Throws sdom:exception-code-not-found-err if property is not a property of node or any of its inherited interfaces
- Throws sodm:exception-code-no-modification-allowed-err if property is a read-only property of node
- This procedure will also throw any errors generated while carrying out the operations required to set the specified property. See the property documentation for a list of potential errors
Errors:
- Throws sdom:exception-code-not-found-err if property is not a property of node or any of its inherited interfaces
The type of node. See Node types.
This property is read-only
The name of node. This value depends on the type of node. If node has type sdom:node-type-element or sdom:node-type-attr this value will be a symbol; otherwise it will be a string or null. See http://www.w3c.org/TR/2004/REC-DOM-Level-3-Core-20040407/ for more information.
This property is read-only
The value of node. This value depends on the type of node. If the DOM recommendation defines this value to be null, setting it will have no effect.
Errors on setting:
- Throws sdom:exception-code-no-modification-allowed-err if node is read-only and the DOM recommendation does not define it to be null
Property type: Node
The parent of node, if it is defined to have one and is a member of a document tree; null otherwise
This property is read-only
Property type: List of nodes
A list of the child nodes of node, if it has any; null if there are no children or if node is not defined to have any
This property is read-only
Property type: Node
The first item in the list of children of node, if there are any children, null otherwise. The value of this property is equivalent to the car of the value of sdom:child-nodes
This property is read-only
Property type: Node
The last item in the list of children of node, if there are any children, null otherwise. The value of this property is equivalent to the car of the last pair of the value of sdom:child-nodes
This property is read-only
Property type: Node
The item that precedes node in the parent's list of child nodes, or null if there is no parent node or node is the first child of the parent
This property is read-only
Property type: Node
The item that follows node in the parent's list of child nodes, or null if there is no parent node or node is the last child of the parent
This property is read-only
Property type: List of nodes
A list of the attributes attached to node; null if node is not of type sdom:node-type-element or it has no attributes
This property is read-only
Errors on setting:
- Throws sdom:exception-code-invalid-character-err if new value contains character that is illegal in the XML version specified by sdom:xml-version property of node's owner document
- Throws sdom:exception-code-no-modification-allowed-err if node is read-only
- Throws sdom:exception-code-namespace-err if new value is not a well-formed prefix, or new value is “xml” and sdom:namespace-uri property of node is not “http://www.w3.org/XML/1998/namespace”, or node has type sdom:node-type-attr and new value is “xmlns” and sdom:namespace-uri property of node is not “http://www.w3.org/2000/xmlns/”, or node has type sdom:node-type-attr and sdom:qualified-name property of node is “xmlns”
Errors on setting:
- Throws sdom:exception-code-no-modification-allowed-err if node is read-only
Property type: String
The content of node, represented as a string of UTF-16 characters
Errors on setting:
- Throws sdom:exception-code-no-modification-allowed-err if node is read-only
Property type: Number
The length of the value of the sdom:data property of node in UTF-16 characters
This property is read-only
Property type: Boolean
#t if the content of node represents the whitespace between elements introduced by user formatting, as determined during normalization of the document to which node belongs1; #f otherwise
This property is read-only
Property type: String
A concatenation of all nodes of type sdom:node-type-text or sdom:node-type-cdata-scetion, adjacent to node in a document order traversal that does not cross any nodes of type sdom:node-type-element, sdom:node-type-comment or sdom:node-type-processing-instruction
This property is read-only
Property type: String
The public identifier for node or null if none was specified
This property is read-only
Property type: String
The system identifier for node or null if none was specified
This property is read-only
Property type: String
The public identifier for node or null if none was specified
This property is read-only
Property type: String
The system identifier for node or null if none was specified
This property is read-only
Property type: String
The name of the notation for node if node is an unparsed entity, null otherwise
This property is read-only
Property type: String
The name of the encoding for node at parse time, if node is an external parsed entity; null otherwise
This property is read-only
Property type: String
The name of the encoding for node, if node is an external parsed entity; null otherwise
This property is read-only
Property type: String
The version number for node, if node is an external parsed entity; null otherwise
This property is read-only
Property type: String
The target of node
This property is read-only
Property type: String
The content of node
Errors on setting:
- Throws sdom:exception-code-no-modification-allowed-err if node is read-only
Errors on setting:
- Throws sdom:exception-code-no-modification-allowed-err if node is read-only
Property type: String
The name of the DTD represented by node
This property is read-only
Property type: List of nodes
A list of nodes representing internal and external entities declared by node, not including duplicates or parameter entities
This property is read-only
Property type: List of nodes
A list of nodes representing notations declared by node, not including duplicates
This property is read-only
Property type: String
The public identifier of node
This property is read-only
Property type: String
The system identifier of node
This property is read-only
Property type: String
The internal subset represented by node or null if there is none
This property is read-only
Errors on setting:
- Throws sdom:exception-code-not-supported-err if document does not support feature “XML”
Errors on setting:
- Throws sdom:exception-code-not-supported-err if document does not support feature “XML” or if document does not support version specified by new value
Copyright © 2000,2001,2002 Free Software Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
The purpose of this License is to make a manual, textbook, or other functional and useful document free in the sense of freedom: to assure everyone the effective freedom to copy and redistribute it, with or without modifying it, either commercially or noncommercially. Secondarily, this License preserves for the author and publisher a way to get credit for their work, while not being considered responsible for modifications made by others.
This License is a kind of “copyleft”, which means that derivative works of the document must themselves be free in the same sense. It complements the GNU General Public License, which is a copyleft license designed for free software.
We have designed this License in order to use it for manuals for free software, because free software needs free documentation: a free program should come with manuals providing the same freedoms that the software does. But this License is not limited to software manuals; it can be used for any textual work, regardless of subject matter or whether it is published as a printed book. We recommend this License principally for works whose purpose is instruction or reference.
This License applies to any manual or other work, in any medium, that contains a notice placed by the copyright holder saying it can be distributed under the terms of this License. Such a notice grants a world-wide, royalty-free license, unlimited in duration, to use that work under the conditions stated herein. The “Document”, below, refers to any such manual or work. Any member of the public is a licensee, and is addressed as “you”. You accept the license if you copy, modify or distribute the work in a way requiring permission under copyright law.
A “Modified Version” of the Document means any work containing the Document or a portion of it, either copied verbatim, or with modifications and/or translated into another language.
A “Secondary Section” is a named appendix or a front-matter section of the Document that deals exclusively with the relationship of the publishers or authors of the Document to the Document's overall subject (or to related matters) and contains nothing that could fall directly within that overall subject. (Thus, if the Document is in part a textbook of mathematics, a Secondary Section may not explain any mathematics.) The relationship could be a matter of historical connection with the subject or with related matters, or of legal, commercial, philosophical, ethical or political position regarding them.
The “Invariant Sections” are certain Secondary Sections whose titles are designated, as being those of Invariant Sections, in the notice that says that the Document is released under this License. If a section does not fit the above definition of Secondary then it is not allowed to be designated as Invariant. The Document may contain zero Invariant Sections. If the Document does not identify any Invariant Sections then there are none.
The “Cover Texts” are certain short passages of text that are listed, as Front-Cover Texts or Back-Cover Texts, in the notice that says that the Document is released under this License. A Front-Cover Text may be at most 5 words, and a Back-Cover Text may be at most 25 words.
A “Transparent” copy of the Document means a machine-readable copy, represented in a format whose specification is available to the general public, that is suitable for revising the document straightforwardly with generic text editors or (for images composed of pixels) generic paint programs or (for drawings) some widely available drawing editor, and that is suitable for input to text formatters or for automatic translation to a variety of formats suitable for input to text formatters. A copy made in an otherwise Transparent file format whose markup, or absence of markup, has been arranged to thwart or discourage subsequent modification by readers is not Transparent. An image format is not Transparent if used for any substantial amount of text. A copy that is not “Transparent” is called “Opaque”.
Examples of suitable formats for Transparent copies include plain ascii without markup, Texinfo input format, LaTeX input format, SGML or XML using a publicly available DTD, and standard-conforming simple HTML, PostScript or PDF designed for human modification. Examples of transparent image formats include PNG, XCF and JPG. Opaque formats include proprietary formats that can be read and edited only by proprietary word processors, SGML or XML for which the DTD and/or processing tools are not generally available, and the machine-generated HTML, PostScript or PDF produced by some word processors for output purposes only.
The “Title Page” means, for a printed book, the title page itself, plus such following pages as are needed to hold, legibly, the material this License requires to appear in the title page. For works in formats which do not have any title page as such, “Title Page” means the text near the most prominent appearance of the work's title, preceding the beginning of the body of the text.
A section “Entitled XYZ” means a named subunit of the Document whose title either is precisely XYZ or contains XYZ in parentheses following text that translates XYZ in another language. (Here XYZ stands for a specific section name mentioned below, such as “Acknowledgements”, “Dedications”, “Endorsements”, or “History”.) To “Preserve the Title” of such a section when you modify the Document means that it remains a section “Entitled XYZ” according to this definition.
The Document may include Warranty Disclaimers next to the notice which states that this License applies to the Document. These Warranty Disclaimers are considered to be included by reference in this License, but only as regards disclaiming warranties: any other implication that these Warranty Disclaimers may have is void and has no effect on the meaning of this License.
You may copy and distribute the Document in any medium, either commercially or noncommercially, provided that this License, the copyright notices, and the license notice saying this License applies to the Document are reproduced in all copies, and that you add no other conditions whatsoever to those of this License. You may not use technical measures to obstruct or control the reading or further copying of the copies you make or distribute. However, you may accept compensation in exchange for copies. If you distribute a large enough number of copies you must also follow the conditions in section 3.
You may also lend copies, under the same conditions stated above, and you may publicly display copies.
If you publish printed copies (or copies in media that commonly have printed covers) of the Document, numbering more than 100, and the Document's license notice requires Cover Texts, you must enclose the copies in covers that carry, clearly and legibly, all these Cover Texts: Front-Cover Texts on the front cover, and Back-Cover Texts on the back cover. Both covers must also clearly and legibly identify you as the publisher of these copies. The front cover must present the full title with all words of the title equally prominent and visible. You may add other material on the covers in addition. Copying with changes limited to the covers, as long as they preserve the title of the Document and satisfy these conditions, can be treated as verbatim copying in other respects.
If the required texts for either cover are too voluminous to fit legibly, you should put the first ones listed (as many as fit reasonably) on the actual cover, and continue the rest onto adjacent pages.
If you publish or distribute Opaque copies of the Document numbering more than 100, you must either include a machine-readable Transparent copy along with each Opaque copy, or state in or with each Opaque copy a computer-network location from which the general network-using public has access to download using public-standard network protocols a complete Transparent copy of the Document, free of added material. If you use the latter option, you must take reasonably prudent steps, when you begin distribution of Opaque copies in quantity, to ensure that this Transparent copy will remain thus accessible at the stated location until at least one year after the last time you distribute an Opaque copy (directly or through your agents or retailers) of that edition to the public.
It is requested, but not required, that you contact the authors of the Document well before redistributing any large number of copies, to give them a chance to provide you with an updated version of the Document.
You may copy and distribute a Modified Version of the Document under the conditions of sections 2 and 3 above, provided that you release the Modified Version under precisely this License, with the Modified Version filling the role of the Document, thus licensing distribution and modification of the Modified Version to whoever possesses a copy of it. In addition, you must do these things in the Modified Version:
If the Modified Version includes new front-matter sections or appendices that qualify as Secondary Sections and contain no material copied from the Document, you may at your option designate some or all of these sections as invariant. To do this, add their titles to the list of Invariant Sections in the Modified Version's license notice. These titles must be distinct from any other section titles.
You may add a section Entitled “Endorsements”, provided it contains nothing but endorsements of your Modified Version by various parties—for example, statements of peer review or that the text has been approved by an organization as the authoritative definition of a standard.
You may add a passage of up to five words as a Front-Cover Text, and a passage of up to 25 words as a Back-Cover Text, to the end of the list of Cover Texts in the Modified Version. Only one passage of Front-Cover Text and one of Back-Cover Text may be added by (or through arrangements made by) any one entity. If the Document already includes a cover text for the same cover, previously added by you or by arrangement made by the same entity you are acting on behalf of, you may not add another; but you may replace the old one, on explicit permission from the previous publisher that added the old one.
The author(s) and publisher(s) of the Document do not by this License give permission to use their names for publicity for or to assert or imply endorsement of any Modified Version.
You may combine the Document with other documents released under this License, under the terms defined in section 4 above for modified versions, provided that you include in the combination all of the Invariant Sections of all of the original documents, unmodified, and list them all as Invariant Sections of your combined work in its license notice, and that you preserve all their Warranty Disclaimers.
The combined work need only contain one copy of this License, and multiple identical Invariant Sections may be replaced with a single copy. If there are multiple Invariant Sections with the same name but different contents, make the title of each such section unique by adding at the end of it, in parentheses, the name of the original author or publisher of that section if known, or else a unique number. Make the same adjustment to the section titles in the list of Invariant Sections in the license notice of the combined work.
In the combination, you must combine any sections Entitled “History” in the various original documents, forming one section Entitled “History”; likewise combine any sections Entitled “Acknowledgements”, and any sections Entitled “Dedications”. You must delete all sections Entitled “Endorsements.”
You may make a collection consisting of the Document and other documents released under this License, and replace the individual copies of this License in the various documents with a single copy that is included in the collection, provided that you follow the rules of this License for verbatim copying of each of the documents in all other respects.
You may extract a single document from such a collection, and distribute it individually under this License, provided you insert a copy of this License into the extracted document, and follow this License in all other respects regarding verbatim copying of that document.
A compilation of the Document or its derivatives with other separate and independent documents or works, in or on a volume of a storage or distribution medium, is called an “aggregate” if the copyright resulting from the compilation is not used to limit the legal rights of the compilation's users beyond what the individual works permit. When the Document is included in an aggregate, this License does not apply to the other works in the aggregate which are not themselves derivative works of the Document.
If the Cover Text requirement of section 3 is applicable to these copies of the Document, then if the Document is less than one half of the entire aggregate, the Document's Cover Texts may be placed on covers that bracket the Document within the aggregate, or the electronic equivalent of covers if the Document is in electronic form. Otherwise they must appear on printed covers that bracket the whole aggregate.
Translation is considered a kind of modification, so you may distribute translations of the Document under the terms of section 4. Replacing Invariant Sections with translations requires special permission from their copyright holders, but you may include translations of some or all Invariant Sections in addition to the original versions of these Invariant Sections. You may include a translation of this License, and all the license notices in the Document, and any Warranty Disclaimers, provided that you also include the original English version of this License and the original versions of those notices and disclaimers. In case of a disagreement between the translation and the original version of this License or a notice or disclaimer, the original version will prevail.
If a section in the Document is Entitled “Acknowledgements”, “Dedications”, or “History”, the requirement (section 4) to Preserve its Title (section 1) will typically require changing the actual title.
You may not copy, modify, sublicense, or distribute the Document except as expressly provided for under this License. Any other attempt to copy, modify, sublicense or distribute the Document is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance.
The Free Software Foundation may publish new, revised versions of the GNU Free Documentation License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. See http://www.gnu.org/copyleft/.
Each version of the License is given a distinguishing version number. If the Document specifies that a particular numbered version of this License “or any later version” applies to it, you have the option of following the terms and conditions either of that specified version or of any later version that has been published (not as a draft) by the Free Software Foundation. If the Document does not specify a version number of this License, you may choose any version ever published (not as a draft) by the Free Software Foundation.
To use this License in a document you have written, include a copy of the License in the document and put the following copyright and license notices just after the title page:
Copyright (C) year your name. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled ``GNU Free Documentation License''.
If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts, replace the “with...Texts.” line with this:
with the Invariant Sections being list their titles, with the Front-Cover Texts being list, and with the Back-Cover Texts being list.
If you have Invariant Sections without Cover Texts, or some other combination of the three, merge those two alternatives to suit the situation.
If your document contains nontrivial examples of program code, we recommend releasing these examples in parallel under your choice of free software license, such as the GNU General Public License, to permit their use in free software.
Document.adoptNode
: Node manipulationDocument.importNode
: Node manipulationNode.appendChild
: Node manipulationNode.clone
: Node manipulationNode.equalNode
: Node predicatesNode.hasChildNodes
: Node predicatesNode.insertAfter
: Node manipulationNode.insertBefore
: Node manipulationNode.isSameNode
: Node predicatesNode.isSupported
: Node predicatesNode.removeChild
: Node manipulationNode.replaceChild
: Node manipulationsdom:adopt-node!
: Node manipulationsdom:append-child!
: Node manipulationsdom:clone-node
: Node manipulationsdom:equal-node?
: Node predicatessdom:get-dom-property
: Properties and configurationsdom:has-child-nodes?
: Node predicatessdom:import-node
: Node manipulationsdom:insert-after!
: Node manipulationsdom:insert-before!
: Node manipulationsdom:remove-child!
: Node manipulationsdom:replace-child!
: Node manipulationsdom:same-node?
: Node predicatessdom:set-dom-property!
: Properties and configurationsdom:supported?
: Node predicatesAttr.isId
: Properties for Attr nodesAttr.name
: Properties for Attr nodesAttr.ownerElement
: Properties for Attr nodesAttr.schemaTypeInfo
: Properties for Attr nodesAttr.specified
: Properties for Attr nodesAttr.value
: Properties for Attr nodesCharacterData.data
: Properties for Character Data nodesCharacterData.length
: Properties for Character Data nodesDocument.doctype
: Properties for Document nodesDocument.documentElement
: Properties for Document nodesDocument.documentURI
: Properties for Document nodesDocument.domConfig
: Properties for Document nodesDocument.implementation
: Properties for Document nodesDocument.inputEncoding
: Properties for Document nodesDocument.strictErrorChecking
: Properties for Document nodesDocument.xmlEncoding
: Properties for Document nodesDocument.xmlStandalone
: Properties for Document nodesDocument.xmlVersion
: Properties for Document nodesDocumentType.entities
: Properties for Document Type nodesDocumentType.internalSubset
: Properties for Document Type nodesDocumentType.name
: Properties for Document Type nodesDocumentType.notations
: Properties for Document Type nodesDocumentType.publicId
: Properties for Document Type nodesDocumentType.systemId
: Properties for Document Type nodesElement.schemaTypeInfo
: Properties for ElementsElement.tagName
: Properties for ElementsEntity.inputEncoding
: Properties for EntitiesEntity.notationName
: Properties for EntitiesEntity.publicId
: Properties for EntitiesEntity.systemId
: Properties for EntitiesEntity.xmlEncoding
: Properties for EntitiesEntity.xmlVersion
: Properties for EntitiesNode.attributes
: Properties for NodesNode.baseURI
: Properties for NodesNode.childNodes
: Properties for NodesNode.firstChild
: Properties for NodesNode.lastChild
: Properties for NodesNode.localName
: Properties for NodesNode.namespaceURI
: Properties for NodesNode.nextSibling
: Properties for NodesNode.nodeName
: Properties for NodesNode.nodeType
: Properties for NodesNode.nodeValue
: Properties for NodesNode.ownerDocument
: Properties for NodesNode.parentNode
: Properties for NodesNode.prefix
: Properties for NodesNode.previousSibling
: Properties for NodesNode.textContent
: Properties for NodesNotation.publicId
: Properties for Notation nodesNotation.systemId
: Properties for Notation nodesProcessingInstruction.data
: Properties for Processing Instruction nodesProcessingInstruction.target
: Properties for Processing Instruction nodessdom:attributes
: Properties for Nodessdom:base-uri
: Properties for Nodessdom:child-nodes
: Properties for Nodessdom:data
: Properties for Processing Instruction nodessdom:data
: Properties for Character Data nodessdom:doc-type
: Properties for Document nodessdom:document-element
: Properties for Document nodessdom:document-uri
: Properties for Document nodessdom:dom-config
: Properties for Document nodessdom:entities
: Properties for Document Type nodessdom:first-child
: Properties for Nodessdom:implementation
: Properties for Document nodessdom:input-encoding
: Properties for Document nodessdom:input-encoding
: Properties for Entitiessdom:internal-subset
: Properties for Document Type nodessdom:is-element-content-whitespace
: Properties for Text nodessdom:is-id
: Properties for Attr nodessdom:last-child
: Properties for Nodessdom:length
: Properties for Character Data nodessdom:local-name
: Properties for Nodessdom:name
: Properties for Document Type nodessdom:name
: Properties for Attr nodessdom:namespace-uri
: Properties for Nodessdom:next-sibling
: Properties for Nodessdom:node-name
: Properties for Nodessdom:node-type
: Properties for Nodessdom:node-value
: Properties for Nodessdom:notation-name
: Properties for Entitiessdom:notations
: Properties for Document Type nodessdom:owner-document
: Properties for Nodessdom:owner-element
: Properties for Attr nodessdom:parent-node
: Properties for Nodessdom:prefix
: Properties for Nodessdom:previous-sibling
: Properties for Nodessdom:public-id
: Properties for Document Type nodessdom:public-id
: Properties for Entitiessdom:public-id
: Properties for Notation nodessdom:schema-type-info
: Properties for Elementssdom:schema-type-info
: Properties for Attr nodessdom:specified
: Properties for Attr nodessdom:strict-error-checking
: Properties for Document nodessdom:system-id
: Properties for Document Type nodessdom:system-id
: Properties for Entitiessdom:system-id
: Properties for Notation nodessdom:tag-name
: Properties for Elementssdom:target
: Properties for Processing Instruction nodessdom:text-content
: Properties for Nodessdom:value
: Properties for Attr nodessdom:whole-text
: Properties for Text nodessdom:xml-encoding
: Properties for Document nodessdom:xml-encoding
: Properties for Entitiessdom:xml-standalone
: Properties for Document nodessdom:xml-version
: Properties for Document nodessdom:xml-version
: Properties for EntitiesText.isElementContentWhitespace
: Properties for Text nodesText.wholeText
: Properties for Text nodes[1] The DOM recommendation specifies that this determination can also be made at load time, but since SDOM relies on SSAX for parsing documents, this information is not reliably available.