MACROMEDIA FLASH MEDIA SERVER 2-SERVER MANAGEMENT ACTIONSCRIPT LANGUAGE Manuale Utente Pagina 117

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 155
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 116
ADOBE FLASH MEDIA INTERACTIVE SERVER
Server-Side ActionScript Language Reference
114
}
XML class
The XML class lets you load, parse, send, build, and manipulate XML document trees.
Note: You can load XML files only over HTTP, not over RTMP.
You must use the
new XML() constructor to create an XML object before calling any method of the XML class.
An XML document is represented by the XML class. Each element of the document is represented by an XMLNode
object.
The XML and XMLNode objects are modeled after the W3C DOM Level 1 Recommendation. That recommen-
dation specifies a Node interface and a Document interface. The Document interface inherits from the Node
interface, and adds methods such as
createElement() and createTextNode(). In ActionScript, the XML and
XMLNode objects are designed to divide functionality along similar lines.
Note: Many code examples for the XML class include
trace() statements. Server-side trace() statements are output
to the application log file and to the Live Log panel in the Administration Console.
Availability
Flash Media Server 2
Property summary
Property Description
XML.attributes An object that contains all the attributes of the specified XML object.
XML.childNodes Read-only; an array of the specified XML object’s children.
XML.contentType The MIME content type that is sent to the server when you call the XML.send() or
XML.sendAndLoad() method.
XML.docTypeDecl Specifies information about the XML document’s DOCTYPE declaration.
XML.firstChild Read-only; evaluates the specified XML object and references the first child in the parent
node’s child list.
XML.ignoreWhite When set to true, discards, during the parsing process, text nodes that contain only white
space.
XML.lastChild Read-only; an XMLNode value that references the last child in the node’s child list.
XML.loaded A boolean value; true if the document-loading process initiated by the XML.load() call
completed successfully; otherwise,
false.
XML.localName Read-only; the local name portion of the XML node's name.
XML.namespaceURI Read-only; if the XML node has a prefix, the value of the xmlns declaration for that prefix (the
URI), which is typically called the namespace URI.
XML.nextSibling Read-only; an XMLNode value that references the next sibling in the parent node’s child list.
XML.nodeName A string representing the node name of the XML object.
XML.nodeType Read-only; a nodeType value, either 1 for an XML element or 3 for a text node.
XML.nodeValue The node value of the XML object.
Vedere la pagina 116
1 2 ... 112 113 114 115 116 117 118 119 120 121 122 ... 154 155

Commenti su questo manuale

Nessun commento