LibreOffice
LibreOffice 7.4 SDK API Reference
XElement.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_XElement_idl__
21 #define __com_sun_star_xml_dom_XElement_idl__
22 
25 
26 module com { module sun { module star { module xml { module dom {
27 
28 interface XElement: XNode
29 {
33  string getAttribute([in] string name);
34 
38  XAttr getAttributeNode([in] string name);
39 
43  XAttr getAttributeNodeNS([in] string namespaceURI,[in]
44  string localName);
45 
49  string getAttributeNS([in] string namespaceURI, [in] string localName);
50 
56  XNodeList getElementsByTagName([in] string name);
57 
63  XNodeList getElementsByTagNameNS([in] string namespaceURI,[in] string localName);
64 
68  string getTagName();
69 
74  boolean hasAttribute([in] string name);
75 
80  boolean hasAttributeNS([in] string namespaceURI,[in] string localName);
81 
87  void removeAttribute([in] string name) raises (DOMException);
88 
95  XAttr removeAttributeNode([in] XAttr oldAttr) raises (DOMException);
96 
102  void removeAttributeNS([in] string namespaceURI,[in] string localName) raises (DOMException);
103 
110  void setAttribute([in] string name,[in] string value) raises (DOMException);
111 
119  XAttr setAttributeNode([in] XAttr newAttr) raises (DOMException);
120 
129  XAttr setAttributeNodeNS([in] XAttr newAttr) raises (DOMException);
130 
140  [in] string namespaceURI, [in] string qualifiedName, [in] string value) raises (DOMException);
141 };
142 }; }; }; }; };
143 
144 #endif
145 
146 /* 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: XElement.idl:29
XNodeList getElementsByTagName([in] string name)
Returns a NodeList of all descendant Elements with a given tag name, in the order in which they are e...
XAttr setAttributeNode([in] XAttr newAttr)
Adds a new attribute node.
XAttr setAttributeNodeNS([in] XAttr newAttr)
Adds a new attribute.
XAttr removeAttributeNode([in] XAttr oldAttr)
Removes the specified attribute node.
string getAttributeNS([in] string namespaceURI, [in] string localName)
Retrieves an attribute value by local name and namespace URI.
XAttr getAttributeNode([in] string name)
Retrieves an attribute node by name.
XAttr getAttributeNodeNS([in] string namespaceURI,[in] string localName)
Retrieves an Attr node by local name and namespace URI.
string getAttribute([in] string name)
Retrieves an attribute value by name.
void setAttribute([in] string name,[in] string value)
Adds a new attribute.
void removeAttributeNS([in] string namespaceURI,[in] string localName)
Removes an attribute by local name and namespace URI.
boolean hasAttributeNS([in] string namespaceURI,[in] string localName)
Returns true when an attribute with a given local name and namespace URI is specified on this element...
string getTagName()
The name of the element.
XNodeList getElementsByTagNameNS([in] string namespaceURI,[in] string localName)
Returns a NodeList of all the descendant Elements with a given local name and namespace URI in the or...
void removeAttribute([in] string name)
Removes an attribute by name.
void setAttributeNS([in] string namespaceURI, [in] string qualifiedName, [in] string value)
Adds a new attribute.
boolean hasAttribute([in] string name)
Returns true when an attribute with a given name is specified on this element or has a default value,...
Definition: XNodeList.idl:31
The primary dom datatype.
Definition: XNode.idl:69
Definition: Ambiguous.idl:22