Výukový program XML

XML HOME Úvod do XML XML Jak používat XML strom Syntaxe XML Prvky XML Atributy XML Jmenné prostory XML Zobrazení XML XML HttpRequest XML Parser XML DOM XML XPath XML XSLT XML XQuery XML XLlink XML Validator XML DTD Schéma XML XML server Příklady XML XML kvíz XML certifikát

XML AJAX

Úvod do AJAX AJAX XMLHttp Požadavek AJAX Odpověď AJAX Soubor XML AJAX AJAX PHP AJAX ASP Databáze AJAX Aplikace AJAX Příklady AJAX

XML DOM

Úvod do DOM DOM uzly Přístup k DOM Informace o uzlu DOM Seznam uzlů DOM DOM Traversing Navigace DOM DOM získat hodnoty DOM změnit uzly DOM Remove Nodes DOM nahradit uzly DOM Vytvořte uzly DOM Přidat uzly Klonovací uzly DOM Příklady DOM

Výukový program XPath

Úvod do XPath Uzly XPath Syntaxe XPath osy XPath Operátoři XPath Příklady XPath

Kurz XSLT

Úvod do XSLT Jazyky XSL Transformace XSLT XSLT <šablona> XSLT <hodnota-of> XSLT <pro každého> XSLT <sort> XSLT <if> XSLT <vyberte> Použít XSLT XSLT u klienta XSLT na serveru XSLT Úprava XML Příklady XSLT

Výukový program XQuery

Úvod do XQuery Příklad XQuery XQuery FLWOR HTML XQuery Podmínky XQuery Syntaxe XQuery Přidat XQuery XQuery Select Funkce XQuery

XML DTD

Úvod do DTD Stavební bloky DTD DTD prvky Atributy DTD DTD Elements vs Attr DTD entity Příklady DTD

XSD schéma

Úvod do XSD XSD Jak na to XSD <schéma> XSD prvky XSD atributy Omezení XSD

XSD komplex

XSD prvky XSD Prázdné Pouze prvky XSD Pouze text XSD XSD smíšené XSD indikátory XSD <libovolné> XSD <jakýkoliAtribut> Náhrada XSD Příklad XSD

XSD data

XSD řetězec Datum XSD Číselné XSD XSD Různé XSD reference

Webové služby

Služby XML XML WSDL XML SOAP XML RDF XML RSS

Reference

Typy uzlů DOM Uzel DOM DOM NodeList DOM NamedNodeMap Dokument DOM Prvek DOM Atribut DOM Text DOM DOM CDATA Komentář DOM DOM XMLHttpRequest DOM Parser Prvky XSLT Funkce XSLT/XPath

XML DOM - objekt Attr


Objekt Attr

Objekt Attr představuje atribut objektu Element. Přípustné hodnoty atributů jsou obvykle definovány v DTD.

Protože objekt Attr je také Node, dědí vlastnosti a metody objektu Node. Atribut však nemá nadřazený uzel a není považován za podřízený uzel prvku a pro mnoho vlastností Node vrátí hodnotu null.

Vlastnosti objektu 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