Xerces-C++: DOMElement.hpp Source File (original) (raw)

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22#if !defined(XERCESC_INCLUDE_GUARD_DOMELEMENT_HPP)

23#define XERCESC_INCLUDE_GUARD_DOMELEMENT_HPP

24

27

29

30

31class DOMAttr;

34

35

67protected:

68

69

70

76

77private:

78

79

80

85

86public:

87

88

89

98

99

100

101

104

105

106

117

127

137

149

150

151

152

176 const XMLCh *value) = 0;

198

216

232

247 const XMLCh *localName) const = 0;

248

289 const XMLCh *qualifiedName, const XMLCh *value) = 0;

290

306 const XMLCh *localName) = 0;

307

320 const XMLCh *localName) const = 0;

321

344

361 const XMLCh *localName) const = 0;

362

374

388 const XMLCh *localName) const = 0;

390

393

415

416

436

437

438

457

458

459

467

469

470

471

472

475

476

477

485

493

501

509

521};

522

524

525#endif

526

527

528

#define CDOM_EXPORT

Definition XercesDefs.hpp:166

#define XERCES_CPP_NAMESPACE_BEGIN

Definition XercesDefs.hpp:112

#define XERCES_CPP_NAMESPACE_END

Definition XercesDefs.hpp:113

size_t XMLSize_t

Definition Xerces_autoconf_config.hpp:112

char16_t XMLCh

Definition Xerces_autoconf_config.hpp:120

By far the vast majority of objects (apart from text) that authors encounter when traversing a docume...

Definition DOMElement.hpp:66

virtual DOMAttr * setAttributeNodeNS(DOMAttr *newAttr)=0

Adds a new attribute.

virtual void setAttribute(const XMLCh *name, const XMLCh *value)=0

Adds a new attribute.

virtual ~DOMElement()

Destructor.

Definition DOMElement.hpp:96

virtual void setIdAttribute(const XMLCh *name, bool isId)=0

If the parameter isId is true, this method declares the specified attribute to be a user-determined I...

virtual bool hasAttributeNS(const XMLCh *namespaceURI, const XMLCh *localName) const =0

Returns true when an attribute with a given local name and namespace URI is specified on this element...

virtual const XMLCh * getAttribute(const XMLCh *name) const =0

Retrieves an attribute value by name.

virtual const XMLCh * getAttributeNS(const XMLCh *namespaceURI, const XMLCh *localName) const =0

Retrieves an attribute value by local name and namespace URI.

virtual const XMLCh * getTagName() const =0

The name of the element.

virtual DOMAttr * getAttributeNodeNS(const XMLCh *namespaceURI, const XMLCh *localName) const =0

Retrieves an DOMAttr node by local name and namespace URI.

virtual XMLSize_t getChildElementCount() const =0

The number of child nodes that are of type DOMElement.

virtual DOMAttr * getAttributeNode(const XMLCh *name) const =0

Retrieves an DOMAttr node by name.

DOMElement()

Definition DOMElement.hpp:73

virtual bool hasAttribute(const XMLCh *name) const =0

Returns true when an attribute with a given name is specified on this element or has a default value,...

virtual DOMAttr * removeAttributeNode(DOMAttr *oldAttr)=0

Removes the specified attribute node.

virtual DOMElement * getFirstElementChild() const =0

The first child of type DOMElement.

virtual void removeAttributeNS(const XMLCh *namespaceURI, const XMLCh *localName)=0

Removes an attribute by local name and namespace URI.

DOMElement(const DOMElement &other)

Definition DOMElement.hpp:74

virtual const DOMTypeInfo * getSchemaTypeInfo() const =0

Returns the type information associated with this element.

virtual DOMNodeList * getElementsByTagName(const XMLCh *name) const =0

Returns a DOMNodeList of all descendant elements with a given tag name, in the order in which they wo...

virtual void setIdAttributeNode(const DOMAttr *idAttr, bool isId)=0

If the parameter isId is true, this method declares the specified attribute to be a user-determined I...

virtual DOMAttr * setAttributeNode(DOMAttr *newAttr)=0

Adds a new attribute.

virtual DOMElement * getPreviousElementSibling() const =0

The previous sibling node of type DOMElement.

virtual DOMElement * getLastElementChild() const =0

The last child of type DOMElement.

virtual DOMElement * getNextElementSibling() const =0

The next sibling node of type DOMElement.

virtual DOMNodeList * getElementsByTagNameNS(const XMLCh *namespaceURI, const XMLCh *localName) const =0

Returns a DOMNodeList of all the DOMElements with a given local name and namespace URI in the order i...

virtual void setIdAttributeNS(const XMLCh *namespaceURI, const XMLCh *localName, bool isId)=0

If the parameter isId is true, this method declares the specified attribute to be a user-determined I...

virtual void removeAttribute(const XMLCh *name)=0

Removes an attribute by name.

virtual void setAttributeNS(const XMLCh *namespaceURI, const XMLCh *qualifiedName, const XMLCh *value)=0

Adds a new attribute.

The DOMNodeList interface provides the abstraction of an ordered collection of nodes.

Definition DOMNodeList.hpp:45

The DOMNode interface is the primary datatype for the entire Document Object Model.

Definition DOMNode.hpp:139

The DOMTypeInfo interface represent a type used by DOMElement or DOMAttr nodes, specified in the sche...

Definition DOMTypeInfo.hpp:36