XML.com

XML.com
  Home | Resources | FAQs |
    
  Resource Centers
MS XML v3.0 Reference
.
.
.
.
.
.
.
.








Documents

คุณสมบัติการเชื่อมต่อ ของ Document มีดังนี้

Property

เป็นค่า Attribute ของ document root

async

เพื่อระบุว่าจะทำการ Load ข้อมูลแบบ Synchronous (ปกติจะเป็น TRUE) หรือว่าจะ Load แบบ Asynchronous (FALSE) ถ้าเป็นการ load แบบ Asynchronous สามารถตรวจสอบสถนะได้จากค่าของ readyState

attributes

เป็นค่า Attribute ของ document root

baseName

childNodes

เป็น Child elements ของ Document ปกติก็จะเป็น root node

dataType

definition

doctype

document type ของ DTD (ถ้ามี)

documentElement

root element

firstChild

implementation

lastChild

element ระดับล่างสุด ใน สายนี้

namespaceURI

nextSibling

node ทางขวา

nodeName

Element Name

nodeType

nodeTypeValue

nodeTypeString

สำหรับ document จะได้คำว่า "document"

nodeValue

ค่า text

ownerDocument

parentNode

node ข้างบน

parsed

TRUE ถ้า ทุก child element ถูก parse แล้ว

parseError

Error Handling object

prefix

preserveWhiteSpace

TRUE ถ้าจะคง whitespace เอาไว้

previousSibling

node ระดับเดียวกันทางซ้าย

readyState

ระบุสถานะของปัจจุบันของ document

resolveExternals

TRUE ถ้า จะใช้ external definitions ระหว่าง load

specified

text

ข้อความทั้งหมดใน xml

url

ค่า URL ของ document ที่เพิ่ง load ล่าสุด

validateOnParse

TRUE (default) ถ้าให้ MSXML ทำการ validate ระหว่าง load

xml ข้อมูลทั้งหมดใน xml ไฟล์ รวมทั้ง mark up ด้วย
Method

Meaning

abort

หยุด Asynchronous download

appendChild(newChild)

เพิ่ม child ใหม่เข้าไป

cloneNode(deep)

copy node ถ้า deep=TRUE ก็ให้ copy node ย่อยๆ ด้วย

createAttribute(name)

สร้าง Attribute ชื่อ name

createCDATA
Section(data)

createComment(data)

createDocument
Fragment
 
createElement(name)  
createEntity
Reference(name)
 
createNode(type,name, namespaceURI)  
createProcesssingInstruction( target,data)  
createTextNode(text)  
getElementsByTagName(name)  
hadChildNodes TRUE ถ้ามี
insertBefore(newNode, refNode) ถ้าไม่มีปัญหา จะได้ node อยู่ทางขวา ref
load(URL)  
loadXML(stringDoc)  
nodeFromID(idValue)  
removeChild(rmvchild)  
replaceChild(newChild, oldChild)  
save(obj)  
selectNodes(pattern)  
selectSingleNode(pattern)  
transformNode(stylesheetObj)  
transformNodeToObject(stylesheet,outObj)  

 




 
Contact Us | Our Mission | Privacy Policy | Advertise With Us | Site Help
Copyright © 2002 Copy เค้ามาจาก www.xml.com จะได้ดูเหมือนๆกัน