LibreOffice: com/sun/star/xml/dom/XDocument.idl Source File

LibreOffice LibreOffice 26.8 SDK API Reference

Loading...
Searching...
No Matches
XDocument.idl
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20module com { module sun { module star { module xml { module dom {
21
22 interface XDocument: XNode
23{
29 XAttr createAttribute([in] string name) raises (DOMException);
30
44 XAttr createAttributeNS([in] string namespaceURI, [in] string qualifiedName) raises (DOMException);
45
51 XCDATASection createCDATASection([in] string data) raises (DOMException);
52
56 XComment createComment([in] string data);
57
61 XDocumentFragment createDocumentFragment();
62
63
69 XElement createElement([in] string tagName) raises (DOMException);
70
71
84 XElement createElementNS([in] string namespaceURI, [in] string qualifiedName) raises (DOMException);
85
94 XEntityReference createEntityReference([in] string name) raises (DOMException);
95
103 XProcessingInstruction createProcessingInstruction(
104 [in] string target, [in] string data) raises (DOMException);
105
109 XText createTextNode([in] string data);
110
115 XDocumentType getDoctype();
116
121 XElement getDocumentElement();
122
126 XElement getElementById([in] string elementId);
127
133 XNodeList getElementsByTagName([in] string tagname);
134
140 XNodeList getElementsByTagNameNS([in] string namespaceURI, [in] string localName);
141
145 XDOMImplementation getImplementation();
146
152 XNode importNode([in] XNode importedNode, [in] boolean deep) raises (DOMException);
153};
154};};};};};
155
156/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
com::sun::star::xml::dom::DOMException
encapsulates the details of an XML parse error or warning.
Definition DOMException.idl:28
com::sun::star::xml::dom::XAttr
Definition XAttr.idl:25
com::sun::star::xml::dom::XCDATASection
Definition XCDATASection.idl:23
com::sun::star::xml::dom::XComment
Definition XComment.idl:24
com::sun::star::xml::dom::XDOMImplementation
Definition XDOMImplementation.idl:27
com::sun::star::xml::dom::XDocumentFragment
Definition XDocumentFragment.idl:23
com::sun::star::xml::dom::XDocumentType
Definition XDocumentType.idl:23
com::sun::star::xml::dom::XDocument
Definition XDocument.idl:23
com::sun::star::xml::dom::XDocument::createDocumentFragment
XDocumentFragment createDocumentFragment()
Creates an empty DocumentFragment object.
com::sun::star::xml::dom::XDocument::createAttribute
XAttr createAttribute([in] string name)
Creates an Attr of the given name.
com::sun::star::xml::dom::XDocument::createCDATASection
XCDATASection createCDATASection([in] string data)
Creates a CDATASection node whose value is the specified string.
com::sun::star::xml::dom::XDocument::createAttributeNS
XAttr createAttributeNS([in] string namespaceURI, [in] string qualifiedName)
Creates an attribute of the given qualified name and namespace URI.
com::sun::star::xml::dom::XDocument::getElementById
XElement getElementById([in] string elementId)
Returns the Element whose ID is given by elementId.
com::sun::star::xml::dom::XDocument::importNode
XNode importNode([in] XNode importedNode, [in] boolean deep)
Imports a node from another document to this document.
com::sun::star::xml::dom::XDocument::createComment
XComment createComment([in] string data)
Creates a Comment node given the specified string.
com::sun::star::xml::dom::XDocument::createElement
XElement createElement([in] string tagName)
Creates an element of the type specified.
com::sun::star::xml::dom::XDocument::getElementsByTagNameNS
XNodeList getElementsByTagNameNS([in] string namespaceURI, [in] string localName)
Returns a NodeList of all the Elements with a given local name and namespace URI in the order in whic...
com::sun::star::xml::dom::XDocument::createEntityReference
XEntityReference createEntityReference([in] string name)
Throws: DOMException - NOT_SUPPORTED_ERR: Raised if the type of node being imported is not supported.
com::sun::star::xml::dom::XDocument::getDoctype
XDocumentType getDoctype()
The Document Type Declaration (see DocumentType) associated with this document.
com::sun::star::xml::dom::XDocument::createElementNS
XElement createElementNS([in] string namespaceURI, [in] string qualifiedName)
Creates an element of the given qualified name and namespace URI.
com::sun::star::xml::dom::XDocument::createProcessingInstruction
XProcessingInstruction createProcessingInstruction([in] string target, [in] string data)
Creates a ProcessingInstruction node given the specified name and data strings.
com::sun::star::xml::dom::XDocument::createTextNode
XText createTextNode([in] string data)
Creates a Text node given the specified string.
com::sun::star::xml::dom::XDocument::getDocumentElement
XElement getDocumentElement()
This is a convenience attribute that allows direct access to the child node that is the root element ...
com::sun::star::xml::dom::XDocument::getElementsByTagName
XNodeList getElementsByTagName([in] string tagname)
Returns a NodeList of all the Elements with a given tag name in the order in which they are encounter...
com::sun::star::xml::dom::XDocument::getImplementation
XDOMImplementation getImplementation()
The DOMImplementation object that handles this document.
com::sun::star::xml::dom::XElement
Definition XElement.idl:23
com::sun::star::xml::dom::XEntityReference
Definition XEntityReference.idl:23
com::sun::star::xml::dom::XNodeList
Definition XNodeList.idl:26
com::sun::star::xml::dom::XNode
The primary dom datatype.
Definition XNode.idl:61
com::sun::star::xml::dom::XProcessingInstruction
Definition XProcessingInstruction.idl:23
com::sun::star::xml::dom::XText
Definition XText.idl:23
com
Definition Ambiguous.idl:20