Microsoft Word Applied xml a toolkit for Programmers Wiley doc




Download 2,96 Mb.
Pdf ko'rish
bet118/131
Sana14.05.2024
Hajmi2,96 Mb.
#232039
1   ...   114   115   116   117   118   119   120   121   ...   131
Bog'liq
Ceponkus, Hoodbhoy - Applied XML - Toolkit for Programmers

removeAttribute(name)
Parameters

name
is a string value.
Return value
: None
Exceptions thrown
: None
Description
: The Attribute node named 
name
is removed from the tree.


- 132 -
getAttributeNode(name)
Parameters

name
is a string value.
Return value
: Attribute node
Exceptions thrown
: None
Description
: This method returns the Attribute node that is named name. If no such 
attribute exists, then null is returned.
Comments
: This method differs from getAttribute(name) by returning the actual Attribute 
node and not just a string. Also, getAttribute(name) is a shortcut for 
getAttributeNode(name).nodeValue.
removeAttributeNode(oldAttr)
Parameters
: oldAttr is an Attribute node.
Return value
: None
Exceptions thrown
: None
Description
: Removes the attribute oldAttr from the element’s attribute list.
Comments
: In Internet Explorer 5, this method returns oldAttr.
setAttributeNode(newAttr)
Parameters
: newAttr is an Attribute node.
Return value
: None
Exceptions thrown
: None
Description
: The node newAttr is added to the attribute list of the Element node.
Comments
: An Attribute node can be created from scratch using the Document node. An 
Attribute node that has been removed from another Element node can be used in this 
method. In Internet Explorer 5, this method returns newAttr.
Example
:


Download 2,96 Mb.
1   ...   114   115   116   117   118   119   120   121   ...   131




Download 2,96 Mb.
Pdf ko'rish

Bosh sahifa
Aloqalar

    Bosh sahifa



Microsoft Word Applied xml a toolkit for Programmers Wiley doc

Download 2,96 Mb.
Pdf ko'rish