Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
XML
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== XML as data type === XML has appeared as a [[first-class data type]] in other languages. The [[ECMAScript for XML]] (E4X) extension to the [[ECMAScript]]/JavaScript language explicitly defines two specific objects (XML and XMLList) for JavaScript, which support XML document nodes and XML node lists as distinct objects and use a dot-notation specifying parent-child relationships.<ref>{{cite web|title=Processing XML with E4X|url=https://developer.mozilla.org/en/core_javascript_1.5_guide/processing_xml_with_e4x|work=Mozilla Developer Center|publisher=Mozilla Foundation|access-date=2010-07-27|archive-date=2011-05-01|archive-url=https://web.archive.org/web/20110501151224/https://developer.mozilla.org/en/core_javascript_1.5_guide/processing_xml_with_e4x|url-status=dead}}</ref> E4X is supported by the [[Mozilla]] 2.5+ browsers (though now deprecated) and Adobe [[Actionscript]] but has not been widely adopted. Similar notations are used in Microsoft's [[LINQ]] implementation for Microsoft .NET 3.5 and above, and in [[Scala (programming language)|Scala]] (which uses the Java VM). The open-source xmlsh application, which provides a Linux-like shell with special features for XML manipulation, similarly treats XML as a data type, using the <[ ]> notation.<ref>{{cite web|url=http://www.xmlsh.org/CoreSyntax|title=XML Shell: Core Syntax|website=Xmlsh.org|date=2010-05-13|access-date=22 August 2010}}</ref> The [[Resource Description Framework]] defines a data type <code>rdf:XMLLiteral</code> to hold wrapped, [[canonical XML]].<ref>{{cite web|editor1-first=G.|editor1-last=Klyne|editor2-first=J. J.|editor2-last=Carroll|url=https://www.w3.org/TR/rdf10-concepts#dfn-rdf-XMLLiteral|date=10 February 2004|title=Resource Description Framework (RDF): Concepts and Abstract Syntax|format=W3C Recommendation|publisher=W3C|at=section 5.1}}</ref> Facebook has produced extensions to the [[PHP]] and [[JavaScript]] languages that add XML to the core syntax in a similar fashion to E4X, namely [[XHP]] and [[React (JavaScript library)#JSX|JSX]] respectively.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)