Microsoft.XMLDOM 方法和属性

作者:vkvi整理 来源:千一网络(原创) 日期:2010-10-8

Document

属性

  • async boolean: 是否异步读取文档。
  • doctype
  • documentElement
  • implementation
  • ondataavailable [ie]
  • onreadystateChange [ie]
  • ontransformnode [ie]
  • parseError [ie]
  • preserveWhiteSpace [ie]
  • readyState
  • resolveExternals [ie]
  • setProperty ) [ie] 可设置以下属性:
    • AllowDocumentFunction
    • ForcedResync
    • MaxXMLSize
    • NewParser
    • SelectionLanguage
    • SelectionNamespace
    • ServerHTTPRequest
  • url [ie]
  • validateOnParse [ie]

方法

  • abort [ie]
  • createAttribute
  • createCDATASection (data )
  • createComment (comment)
  • createDocumentFragment (data )
  • createElement (tagName)
  • createEntityReference (name )
  • createNode [ie] (type, name, nameSpaceURI)
  • createProcessingInstruction (target, data)
  • createTextNode (data)
  • getElementsByTagName (tagName)
  • load [ie] (url)
  • loadXML [ie] (xml_string)
  • nodeFromID [ie] (id_string)
  • save [ie] (objTarget)

Node

属性

  • attributes 数组,每一项是具有 name 和 value 属性的对象。
  • baseName [ie]
  • childNodes
  • dataType [ie]
  • definition [ie]
  • firstChild
  • lastChild
  • namespaceURI [ie]
  • nodeName
  • nodeType 具有如下值(左边是值,右边是描述):
    • 1: Element
    • 2: Attribute
    • 3: Text
    • 4: CDATA Section
    • 5: Entity Reference
    • 6: Entity
    • 7: Processing Instruction
    • 8: Comment
    • 9: Document
    • 10: Document Type
    • 11: Document Fragment
    • 12: Notation
  • nodeTypedValue [ie]
  • nodeTypeString [ie]
  • nodeValue
  • ownerDocument
  • parentNode
  • parsed [ie]
  • prefix
  • previousSibling [ie]
  • specified [ie]
  • text [ie]
  • xml [ie]

方法

  • appendChild (tagName)
  • cloneNode (deep) 如果 deep 是 true,儿子,儿子的儿子被克隆。
  • hasChildNodes ()
  • insertBefore (newChild, refChild)
  • removeChild (child)
  • replaceChild (newChild, oldChild)
  • selectNodes [ie] (patternString)
  • selectSingleNode [ie] (patternString)
  • transformNode [ie] (stylesheet)
  • transformNodeToObject [ie] (stylesheet, outputObject)

你前面那位网友看了:支付宝支付接口流程及那些坑

▲▲▲嘿,欢迎转载传播本站原创文章,尽量保留来源噢。▲▲▲

文章评论
标题:必填
内容: