Reference/E4 X

Référence E4X

fonctions globales

 isXmlName(nom)

renvoi vrai ou faux selon si la chaine donnée en paramètre est un nom xml valide ou pas (en clair, si il peut être utilisé pour un nom de balise/attribut ou non)

XML

son constructeur accepte en argument un contenu xml sous forme d'une string. Ou rien du tout, et dans ce cas, l'objet XML represente un noeud texte vide.

Propriétés

  • ignoreComments (bool)
  • ignoreProcessingInstructions (bool)
  • ignoreWhitespace (bool)
  • prettyPrinting (bool)
  • prettyIndent
  • settings() : renvoi un objet contenant les paramètres de XML, qui peut être alors utilisé avec setSettings(). cet objet contient les propriétés ignoreComments, ignoreProcessingInstructions, ignoreWhitespace, prettyPrinting, prettyIndent
  • setSettings( settings ) : configure l'objet XML avec les settings indiqués

Propriétés du prototype :

  • addNamespace(ns)
  • appendChild(child)
  • attribute(attrname)
  • attributes()
  • child(propertyName) equivalent de foo.propertyName
  • childIndex()
  • children()
  • comments()
  • contains(value)
  • copy()
  • descendants([name])
  • elements([name])
  • hasOwnProperty(p)
  • hasComplexContent() (indique en gros si il a des elements fils)
  • hasSimpleContent()
  • inScopeNamespaces()
  • insertChildAfter(child1, child2)
  • insertChildBefore(child1, child2)
  • length()
  • localName()
  • name()
  • namespace([prefix])
  • namespaceDeclarations()
  • nodeKind()
  • normalize()
  • parent
  • processingInstructions([name])
  • prependChild(value)
  • propertyIsEnumerable(P)
  • removeNamespace(ns)
  • replace (propertyName, value)
  • setChildren(value)
  • setLocalName(name)
  • setName(name)
  • setNamespace(ns)
  • text()
  • toString()
  • toXMLString()
  • valueOf()

Namespace

  • Namespace()
  • Namespace(uriValue)
  • Namespace(prefixValue, uriValue)
  • new Namespace()
  • new Namespace(uriValue)
  • new Namespace(prefixValue, uriValue)

proprietés prototype

  • toString()

propriétés des instances

  • prefix
  • uri

QName

  • QName(name)
  • QName(namespace, name)
  • new QName(name)
  • new QName(namespace, name)

proprietés prototype

  • toString()

propriétés des instances

  • localName
  • uri

XMLList

  • attribute(attributeName)
  • attributes()
  • child(propertyName)
  • children()
  • comments();
  • contains(value)
  • copy()
  • descendants([name])
  • elements(?name)
  • hasOwnProperty(p)
  • hasComplexContent() (indique en gros si il a des elements fils)
  • hasSimpleContent()
  • length()
  • normalize()
  • parent()
  • processingInstructions([name])
  • text()
  • toString()
  • toXMLString()
  • valueOf()

Dernière modification le septembre 26, 2006 5:41 .


Le contenu de cette page est disponible selon certaines conditions de réutilisation. Lire aussi la page des informations légales.

Mozilla® est une marque déposée de la fondation Mozilla.
Mozilla.org™, Firefox™, Thunderbird™, Mozilla Suite™ et XUL™ sont des marques de la fondation Mozilla.