answersLogoWhite

0

How XML works?

Updated: 12/10/2022
User Avatar

Wiki User

16y ago

Best Answer

Explain how can xml used in web page design to carry data? Using XML to exchange information offers many benefits, including the following: * Uses human, not computer, language. XML is readable (and understandable, even by novices) and no more difficult to code than HTML. * Completely compatible with Java and 100% portable. Any application that can process XML (on any platform) can use your information. * Extendable. Create your own tags (or use tags created by others) that use the native language of your domain, have the attributes you need, and make sense to you and your users. The following example illustrates, in a simplified way, the readability and extensibility of XML: HTML example XML example

State

City

Name
Johnson
Population
5000

City

Name
Pineville
Population
60000

City

Name
Lake Bell
Population
20
Johnson 5000 Pineville 60000 Lake Bell 20 HTML tag names reveal nothing about the meaning of their content. The example above uses an HTML definition list, but the problems inherent in using HTML would occur if the data were contained in a table or some other kind of HTML tags: For example: * Many the HTML tags are acronyms, so they are not as readable as common language. * HTML tags represent data (in this above example, city names and populations) as items to display, for example, as definitions in a list or cells in a table. This makes it difficult to manipulate the data or or exchange it between applications. The XML tag names are readable and convey the meaning of the data. Each XML tag immediately precedes the associated data, helping to make the information structure easily discerned by both humans and computers. The data structure follows a noticeable and useful pattern, making it easy to manipulate and exchange the data. XML has a variety of uses, including: * Web publishing: XML allows you to create interactive pages, allows the customer to customize those pages, and makes creating e-commerce applications more intuitive. With XML, you store the data once and then render that content for different viewers or devices based on style sheet processing using an XSL/XSLT processor. * Web searching and automating Web tasks: XML defines the type of information contained in a document, making it easier to return useful results when searching the Web: For example, using HTML to search for books authored by Tom Wolf is likely to return instances of the term 'wolf' outside of the context of author. Using XML restricts the search to the proper context (say, the information contained in the tag) and returns only the desired type of information. Using XML, Web agents and robots (programs that automate Web searches or other tasks) will be more efficient and produce more useful results. * General applications: XML provides a standard method to access information, making it easier for applications and devices of all kinds to use, store, transmit, and display data. * E-business applications: XML implementations make electronic data interchange (EDI) more accessible for information interchange, business-to-business transactions, and business-to-consumer transactions. * Metadata applications: XML makes is easier to express metadata (Unified Modeling Language design models or user interface properties, for example) in a portable, reusable format. * Pervasive computing: XML provides portable and structured information types for display on pervasive (wireless) computing devices such as PDAs, cellular phones, and others. For example, WML (Wireless Markup Language) and VoiceXML are currently evolving standards for describing visual and speech-driven wireless device interfaces.

User Avatar

Wiki User

16y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

11y ago

XML is a markup language, one that supplies meta data, data about the data contained within the XML elements and attributes. As such, and in its most primitive application, XML can be used to store arbitrary data, and can be used to communicate this data across machine boundaries and networks.

However, many specific applications of XML are based on an agreed markup and standard tools that rely on this agreed markup. Schema is an XML language that allows defining rules, limitations and relations between data. XSLT is a XML programming language designed for machine-driven language-to-language translation. Numerous other XML based languages and technologies exist, such as XPath, XQuery, XLink, or declarative programming languages such as Adobe's MXML or part of Microsoft's Metro.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How XML works?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How does xml works?

xml is a markup language that is used ti dispplay data and web pages as intended. XML has no semantic menating and you create your own tags in accordance with xml specifications.


How xml works in simple language?

XML is abbreviated for Extensible Markup Language and is used to define data which can be readble by machine and human both. It is a software and hardware independent tool.


Does xml document support both human readable and machine readable formats?

No. Machines do not understand XML any more than they understand the works of Shakespeare. XML documents must be interpreted by a machine-code program that understands the meaning of the XML structure.


What is data transfer in XML format?

XML format works behind the scenes of many popular websites and computer programs. It runs a text data transfer interface.


What are the xml tools?

That depends on what you want to do, xml tools include; xml parsers xml validators xml editors xml schema editors xml code generators


What are the Component of an XML Document?

what are the component of xml document what are the component of xml document


How do you create an RSS reader in PHP?

To create a RSS /XML reader, you can use the SimpleXML class. SimpleXML works like the DOM, with objects, takes all the XML document as a hierarchical tree. SimpleXML is easy to use when performing basic tasks like: reading XML files, extracting data from XML strings, and editing nodes and attributes.


Source code of xml?

there is no source code, xml is not a programming language, its a markup language for which you create your own tags, the basic xml syntax is <xml> to start an xml file, and </xml> to end the xml file.


How do you create a XML file from Scratch?

it is the same way to create xml file by converting into txt you have to use the correct xml syntax ie <xml> this is to denote strat of xml file and this </xml> denotes end of xml file. You have to use the right xml code or your xml file wont be valid or well formed.


How do you fix xml?

If you open the xml in most web browser it will state an error code denoting the type of malformation of the xml. you can use an xml tool like an xml editor to validate and correct your xml.


How do you convert a XML to DTD?

If you use an xml tool like liquid xml studio or any other xml tool you will be able to convert your xml into an xsd or dtd.


What is xml schema?

XML Schema is an XML-based alternative to DTD.An XML schema describes the structure of an XML document.The XML Schema language is also referred to as XML Schema Definition (XSD).An XML schema is a description of a type of XML document, typically expressed in terms of constraints on the structure and content of documents of that type, above and beyond the basic syntactical constraints imposed by XML itself.