EDOBE XDOM TAKE 6 IR - PRODUCTSHEET Spezifikationen Seite 256

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 304
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 255
CHAPTER 9: Integrating XML into JavaScript XML Object Reference 256
Namespace object constructors
The Namespace constructor takes several forms:
new Namespace()
new Namespace (String uri)
new Namespace (QName prefix)
new Namespace (Namespace ns)
new Namespace (String prefix, String uri)
When no argument is supplied, creates a namespace with an empty prefix and URI.
Namespace object properties
uri
String Creates a Namespace object with an empty prefix and the given URI.
prefix
QName Creates a namespace with an empty prefix and the URI set to the URI of the
QName object
(if the QName object contains a URI).
ns
Namespace Creates a copy of the given Namespace object.
If the
Namespace() function is called without the new operator, and the only
argument is a
Namespace object, the function simply returns that object,
rather than creating a copy.
prefix,
uri
String Creates a Namespace object with the given prefix and the given URI.
prefix
String The element-name prefix associated with the namespace URI.
The prefix value can be
undefined, as when a specified prefix is not a valid XML
name. Namespaces with an undefined prefix are completely ignored; they are not
added to an XML namespace declaration.
uri
String The location of the namespace definition, a URI.
Seitenansicht 255
1 2 ... 251 252 253 254 255 256 257 258 259 260 261 ... 303 304

Kommentare zu diesen Handbüchern

Keine Kommentare