However, an {@link org.vectomatic.dom.svg.OMSVGDocument} object will indeed exist whenthe root element of the XML document hierarchy is an svg element, such as when viewing a stand-alone SVG file (i.e., a file with MIME type "image/svg+xml"). In this case, the {@link org.vectomatic.dom.svg.OMSVGDocument} object willbe the root object of the document object model hierarchy.
In the case where an SVG document is embedded by reference, such as when an XHTML document has an 'object' element whose 'href' attribute references an SVG document (i.e., a document whose MIME type is "image/svg+xml" and whose root element is thus an svg element), there will exist two distinct DOM hierarchies. The first DOM hierarchy will be for the referencing document (e.g., an XHTML document). The second DOM hierarchy will be for the referenced SVG document. In this second DOM hierarchy, the root object of the document object model hierarchy is an {@link org.vectomatic.dom.svg.OMSVGDocument}object.
The {@link org.vectomatic.dom.svg.OMSVGDocument} interfacecontains a similar list of attributes and methods to the HTMLDocument interface described in the Document Object Model (HTML) Level 1 chapter of the [DOM1] specification.
|
|
|
|