LibreOffice
LibreOffice 7.4 SDK API Reference
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 
20 #ifndef __com_sun_star_xml_dom_XDocument_idl__
21 #define __com_sun_star_xml_dom_XDocument_idl__
22 
32 
33 module com { module sun { module star { module xml { module dom {
34 
35 interface XDocument: XNode
36 {
42  XAttr createAttribute([in] string name) raises (DOMException);
43 
57  XAttr createAttributeNS([in] string namespaceURI, [in] string qualifiedName) raises (DOMException);
58 
64  XCDATASection createCDATASection([in] string data) raises (DOMException);
65 
69  XComment createComment([in] string data);
70 
75 
76 
82  XElement createElement([in] string tagName) raises (DOMException);
83 
84 
97  XElement createElementNS([in] string namespaceURI, [in] string qualifiedName) raises (DOMException);
98 
108 
117  [in] string target, [in] string data) raises (DOMException);
118 
122  XText createTextNode([in] string data);
123 
129 
135 
139  XElement getElementById([in] string elementId);
140 
146  XNodeList getElementsByTagName([in] string tagname);
147 
153  XNodeList getElementsByTagNameNS([in] string namespaceURI, [in] string localName);
154 
159 
165  XNode importNode([in] XNode importedNode, [in] boolean deep) raises (DOMException);
166 };
167 };};};};};
168 
169 #endif
170 
171 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
encapsulates the details of an XML parse error or warning.
Definition: DOMException.idl:34
Definition: XAttr.idl:30
Definition: XCDATASection.idl:28
Definition: XComment.idl:29
Definition: XDOMImplementation.idl:33
Definition: XDocumentFragment.idl:28
Definition: XDocumentType.idl:29
Definition: XDocument.idl:36
XDocumentFragment createDocumentFragment()
Creates an empty DocumentFragment object.
XAttr createAttribute([in] string name)
Creates an Attr of the given name.
XCDATASection createCDATASection([in] string data)
Creates a CDATASection node whose value is the specified string.
XAttr createAttributeNS([in] string namespaceURI, [in] string qualifiedName)
Creates an attribute of the given qualified name and namespace URI.
XElement getElementById([in] string elementId)
Returns the Element whose ID is given by elementId.
XNode importNode([in] XNode importedNode, [in] boolean deep)
Imports a node from another document to this document.
XComment createComment([in] string data)
Creates a Comment node given the specified string.
XElement createElement([in] string tagName)
Creates an element of the type specified.
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...
XEntityReference createEntityReference([in] string name)
Throws: DOMException - NOT_SUPPORTED_ERR: Raised if the type of node being imported is not supported.
XDocumentType getDoctype()
The Document Type Declaration (see DocumentType) associated with this document.
XElement createElementNS([in] string namespaceURI, [in] string qualifiedName)
Creates an element of the given qualified name and namespace URI.
XProcessingInstruction createProcessingInstruction([in] string target, [in] string data)
Creates a ProcessingInstruction node given the specified name and data strings.
XText createTextNode([in] string data)
Creates a Text node given the specified string.
XElement getDocumentElement()
This is a convenience attribute that allows direct access to the child node that is the root element ...
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...
XDOMImplementation getImplementation()
The DOMImplementation object that handles this document.
Definition: XElement.idl:29
Definition: XEntityReference.idl:28
Definition: XNodeList.idl:31
The primary dom datatype.
Definition: XNode.idl:69
Definition: XProcessingInstruction.idl:28
Definition: XText.idl:28
Definition: Ambiguous.idl:22