• alert(xml.documentElement.nodeName);
  • Document Methods createElement(tagName)
  • Microsoft Word Applied xml a toolkit for Programmers Wiley doc




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

    Document Properties
    documentElement
    Type
    : Element node
    Description
    : This property represents the highest level Element in the document.
    Example
    :








    This very simple example produces rootElement
     
    in the alert box. Notice that the keyword 
    xml
     
    is the Document node and xml.documentElement is the Element node that 
    represents rootElement.
    doctype
    Type
    : DocumentType node
    Description
    : This property represents the DocumentType node in the document. The 
    DocumentType node contains a small subset of the contents of a DTD. The 
    DocumentType
    node is discussed in greater detail in a later section in this chapter.
    implementation


    - 127 -
    Type
    : DOMImplementation node
    Description
    : This property represents the DOMImplementation node in the document. 
    The DOMImplementation node provides a mechanism for version checking and is 
    described in greater detail in the DOMImplementation section in this chapter.
    Document Methods
    createElement(tagName)
    Parameters
    : tagName is a string value.
    Return value
    : Element
    Exceptions thrown
    : None
    Description
    : Creates and returns an Element node with the nodeName property set to 
    tagName.
    createDocumentFragment()
    Parameters
    : None
    Return value
    : DocumentFragment
    Exceptions thrown
    : None
    Description
    : Creates and returns a new DocumentFragment node.

    Download 2,96 Mb.
    1   ...   110   111   112   113   114   115   116   117   ...   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