XML Tutorial

XML หน้าแรก บทนำ XML XML วิธีใช้งาน XML Tree ไวยากรณ์ XML องค์ประกอบ XML คุณสมบัติ XML XML เนมสเปซ จอแสดงผล XML XML HttpRequest XML Parser XML DOM XML XPath XML XSLT XML XQuery XML XLink เครื่องมือตรวจสอบ XML XML DTD XML Schema XML Server ตัวอย่าง XML แบบทดสอบ XML ใบรับรอง XML

XML AJAX

บทนำ AJAX AJAX XMLHttp คำขอ AJAX การตอบสนอง AJAX ไฟล์ AJAX XML AJAX PHP AJAX ASP ฐานข้อมูล AJAX แอปพลิเคชัน AJAX ตัวอย่าง AJAX

XML DOM

บทนำ DOM โหนด DOM การเข้าถึง DOM ข้อมูลโหนด DOM รายการโหนด DOM DOM Traversing การนำทาง DOM DOM รับค่า DOM เปลี่ยนโหนด DOM ลบโหนด DOM แทนที่โหนด DOM สร้างโหนด DOM เพิ่มโหนด DOM โคลนโหนด ตัวอย่าง DOM

บทช่วย สอนXPath

บทนำ XPath โหนด XPath ไวยากรณ์ XPath แกน XPath ตัวดำเนินการ XPath ตัวอย่าง XPath

กวดวิชาXSLT

บทนำ XSLT ภาษา XSL การแปลง XSLT XSLT <แม่แบบ> XSLT <ค่าของ> XSLT <for-each> XSLT <sort> XSLT <if> XSLT <เลือก> ใช้ XSLT XSLT บนไคลเอนต์ XSLT บนเซิร์ฟเวอร์ XSLT แก้ไข XML ตัวอย่าง XSLT

กวดวิชาXQuery

บทนำ XQuery ตัวอย่าง XQuery XQuery FLWOR XQuery HTML ข้อกำหนด XQuery ไวยากรณ์ XQuery XQuery เพิ่ม XQuery Select ฟังก์ชัน XQuery

XML DTD

บทนำ DTD บล็อกตัวต่อ DTD องค์ประกอบ DTD คุณสมบัติ DTD องค์ประกอบ DTD เทียบกับ Attr หน่วยงาน DTD ตัวอย่าง DTD

ส คีมา XSD

บทนำ XSD XSD วิธีการ XSD <schema> องค์ประกอบ XSD แอตทริบิวต์ XSD ข้อจำกัด XSD

XSD Complex

องค์ประกอบ XSD XSD ว่างเปล่า องค์ประกอบ XSD เท่านั้น XSD Text เท่านั้น XSD ผสม ตัวชี้วัด XSD XSD <ใด ๆ> XSD <anyAttribute> การทดแทน XSD XSD ตัวอย่าง

ข้อมูลXSD

XSD สตริง วันที่ XSD XSD ตัวเลข XSD เบ็ดเตล็ด ข้อมูลอ้างอิง XSD

บริการเว็บ

XML Services XML WSDL XML SOAP XML RDF XML RSS

อ้างอิง

ประเภทโหนด DOM โหนด DOM DOM NodeList DOM NamedNodeMap เอกสาร DOM องค์ประกอบ DOM แอตทริบิวต์ DOM ข้อความ DOM DOM CDATA ความคิดเห็นของ DOM DOM XMLHttpRequest DOM Parser องค์ประกอบ XSLT ฟังก์ชัน XSLT/XPath

XML DOM - วัตถุAttr


วัตถุ Attr

วัตถุ Attr แสดงถึงแอตทริบิวต์ของวัตถุองค์ประกอบ ค่าที่อนุญาตสำหรับแอตทริบิวต์มักจะถูกกำหนดใน DTD

เนื่องจากอ็อบเจ็กต์ Attr นั้นเป็นโหนดด้วย มันจึงสืบทอดคุณสมบัติและวิธีการของอ็อบเจ็กต์โหนด อย่างไรก็ตาม แอตทริบิวต์ไม่มีโหนดหลักและไม่ถือว่าเป็นโหนดย่อยขององค์ประกอบ และจะคืนค่า null สำหรับคุณสมบัติโหนดจำนวนมาก

คุณสมบัติวัตถุ Attr

Property Description
baseURI Returns the absolute base URI of the attribute
isId Returns true if the attribute is known to be of type ID, otherwise it returns false
localName Returns the local part of the name of the attribute
name Returns the name of the attribute
namespaceURI Returns the namespace URI of the attribute
nodeName Returns the name of the node, depending on its type
nodeType Returns the type of the node
nodeValue Sets or returns the value of the node, depending on its type
ownerDocument Returns the root element (document object) for an attribute
ownerElement Returns the element node the attribute is attached to
prefix Sets or returns the namespace prefix of the attribute
schemaTypeInfo Returns the type information associated with this attribute
specified Returns true if the attribute value is set in the document, and false if it's a default value in a DTD/Schema.
textContent Sets or returns the textual content of an attribute
value Sets or returns the value of the attribute