Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Niidae Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
XML
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
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.
Summary:
Please note that all contributions to Niidae Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Encyclopedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
XML
(section)
Add topic