LibreOffice
LibreOffice 24.8 SDK API Reference
 
Loading...
Searching...
No Matches
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
20module com { module sun { module star { module xml { module dom {
21
22interface XElement: XNode
23{
27 string getAttribute([in] string name);
28
32 XAttr getAttributeNode([in] string name);
33
37 XAttr getAttributeNodeNS([in] string namespaceURI,[in]
38 string localName);
39
43 string getAttributeNS([in] string namespaceURI, [in] string localName);
44
51
57 XNodeList getElementsByTagNameNS([in] string namespaceURI,[in] string localName);
58
62 string getTagName();
63
68 boolean hasAttribute([in] string name);
69
74 boolean hasAttributeNS([in] string namespaceURI,[in] string localName);
75
81 void removeAttribute([in] string name) raises (DOMException);
82
90
96 void removeAttributeNS([in] string namespaceURI,[in] string localName) raises (DOMException);
97
104 void setAttribute([in] string name,[in] string value) raises (DOMException);
105
113 XAttr setAttributeNode([in] XAttr newAttr) raises (DOMException);
114
124
134 [in] string namespaceURI, [in] string qualifiedName, [in] string value) raises (DOMException);
135};
136}; }; }; }; };
137
138/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
encapsulates the details of an XML parse error or warning.
Definition DOMException.idl:28
Definition XAttr.idl:25
Definition XElement.idl:23
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:26
The primary dom datatype.
Definition XNode.idl:61
Definition Ambiguous.idl:20