• Element Properties tagName
  • Element Methods getAttribute(name)
  • Microsoft Word Applied xml a toolkit for Programmers Wiley doc




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









    The resulting XML document appears as follows:







    - 131 -
    Element
    Parent
    : Node
    Just as the name implies, the Element node represents the element construct from an 
    XML document. Most of the methods that exist solely for Elements are for managing 
    attributes.
    Element Properties
    tagName
    Type
    : String
    Description
    : This string property represents the tag name of the Element.
    Comments
    : This property is the same as nodeName on Elements. When dealing with 
    Elements, the two can be used interchangeably.
    Element Methods
    getAttribute(name)
    Parameters

    name
    is a string value.
    Return value
    : String
    Exceptions thrown
    : None
    Description
    : This method returns a string that contains the contents of the attribute 
    named 
    name
    .
    setAttribute(name, value)
    Parameters

    name
    and 
    value
    are strings.
    Return value
    : None
    Exceptions thrown
    : None
    Description
    : If the attribute named 
    name
    doesn’t exist, then it is created and given the 
    value 
    value
    . If this attribute already exists, then the previous value is overwritten with 
    value
    .

    Download 2,96 Mb.
    1   ...   113   114   115   116   117   118   119   120   ...   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