EDUCBA

EDUCBA

MENUMENU
  • Free Tutorials
  • Free Courses
  • Certification Courses
  • 600+ Courses All in One Bundle
  • Login
Home Software Development Software Development Tutorials XML Tutorial XML Technologies
Secondary Sidebar
XML Tutorial
  • Basic
    • What is XML?
    • XML Tags
    • XML URL
    • XPath Sibling
    • XML root element
    • XML Encryption
    • XML Parsing php
    • xml parsing with java
    • Dataset XML
    • XML Parser in C#
    • XML Tree
    • XML boolean
    • XML sitemap
    • XML Array
    • XML reserved characters
    • XML Viewer
    • XML Uses
    • XML Special Characters
    • XML generator
    • XML file format
    • XML DOM
    • XML ampersand
    • XML Mapping
    • XML File
    • XML Element
    • XML HttpRequest
    • XML XSD
    • XML Schema
    • XML Namespaces
    • XML Comments
    • XML Attributes
    • XML Encoding
    • XML Validation
    • XML CDATA
    • XML Database
    • XML Technologies
    • XML Error
    • XML DTD
    • XML Date
    • XML Parsers
    • String in XML
    • XML with CSS
    • XML Versions
    • XML Features
    • XML Commands
    • Servlet web.xml
    • XPath Injection
    • XPath Functions
    • XPath starts-with
    • XPath Selector
    • XPath Count
    • XPath XML
    • XML Parsing in Oracle
    • XML parsing in python
  • Xpath
    • What is XPath?
    • XPath namespace
    • XPath for JSON
    • XPath Last Element
    • Xpath Substring
    • XPath First Element
    • XPath local-name
    • XPath Multiple Attributes
    • XPath Matches
    • XPath Position
    • XPath Index
    • XPath regex
    • XPath id contains
    • XPath innertext
    • XPath Multiple Conditions
    • XPath Helper
    • XPath Generator
    • XPath ID
    • XPath Locator

XML Technologies

By Priya PedamkarPriya Pedamkar

XML Technologies

Definition of XML Technologies

XML technologies are defined as processing the XML application and to build a web different XML variants are used in the XML document to process the activities. Extensible Mark-up Language (XML) is a modern Mark-up language with platform-independent that why it’s been popular as it adapts to new technologies and supports a wide variety of applications. The main reason is XML supports Unicode as it is easy to communicate if written in human language. With efficient data sharing, any new programming languages can read and process an XML file.

All in One Software Development Bundle(600+ Courses, 50+ projects)
Python TutorialC SharpJavaJavaScript
C Plus PlusSoftware TestingSQLKali Linux
Price
View Courses
600+ Online Courses | 50+ projects | 3000+ Hours | Verifiable Certificates | Lifetime Access
4.6 (86,883 ratings)

Various XML Technologies with Examples

In this section, we shall see an overview of XML related technologies. Here is the list of technologies:

Start Your Free Software Development Course

Web development, programming languages, Software testing & others

1. Document Type Definition

DTD declaration has both inline and external references to define the XML document. The main purpose of using DTD is to verify the data while sharing as XML provides a dependent way of sharing data in their applications. Sample Example is given below:

<?XML version="1.0"?>
<!DOCTYPE  project [
<!ELEMENT project    (Name,Type,country,description>
<!ELEMENT Name      (#PCDATA)>
<!ELEMENT Type    (#PCDATA)>
<!ELEMENT country (#PCDATA)>
<!ELEMENT  description   (#PCDATA)>
]>
<project>
<Name> Claw-toe</Name>
<Type>App</Type>
<country>Germany</country>
< description >Have a fun !</ description >
</project>

2. Extensible HTML

It is very similar to HTML with some advanced restrictions. They are well-formed and the document is parsed using XML Unlike HTML, all the tags and attributes should be written in lowercases. The key benefit of XHTML is it has more strict syntax rules and greater accessibility. XHTML document includes doctype, body, and head. Sample Example is given below:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title> XHTML Example </title>
</head>
<body>
……….
</body>
</html>

3. XML Schema Definition

Schema provides a template for an XML file. In the context of XML, schema describes what type of format should element and attributes in the XML file.XML schema overcomes the limitation of DTD where they lack namespaces and rich datatypes. The files are saved using the suffix .xsd extension. They define Simple and complex types. Some applications like E-Commerce are made simpler by using XSD schemas. Sample Example is given below:

<?xml version = "1.0" encoding = "UTF-8"?>
<xs:schema xmlns:xs = "http://www.w3.org/2001/XMLSchema">
<xs:element name = "banking">
<xs:complexType>
<xs:sequence>
<xs:element name = "sector name" type = "xs:string" />
<xs:element name = "branch" type = "xs:string" />
<xs:element name = "contact" type = "xs:int" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>

4. Extensible Style Sheet Language Transformations(XSLT)

XSLT is written in XML a styling language like CSS in html and does the job of transforming an XML documents into other formats. Having this UI script is easier to maintain. Sample Example is given below:

<?xml version="1.0" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="hi ">
</xsl:template>
………
</xsl:stylesheet>

5. XML DOM

Document Object Model is a standard programming API for XML through which the programming language could connect to the web pages and defines the document in a tree – hierarchy structure in which documents are designed by the objects(window, form, link). Using interface like COM Xml Parser are created. Sample Example is given below:

<html>
<body>
<script>
//body of the statements
parser = new DOMParser();
xmlDoc = parser.parseFromString(text,"text/xml");
document.getElementById("example").innerHTML =
xmlDoc.getElementsByTagName("nme")[0].childNodes[0].nodeValue;
</script>
</body>
</html>

6. X-Path

X-path uses Path expression which allows computations resulting in values like strings, Boolean thereby tells the path and address of XML data files also compute values. The Xpath facilitates syntax shared between XSLT and Xpointer and navigates through the tree to select the respective nodes in a particular direction to meet certain properties using (/) to traversal a node.

Database/empname/empid/@sal

7. XSl-FO

It’s an XSl Formatting Objects, defined as Stylesheet applications to format XML data for the output. Sample Example is given below:

<fo:block space-after="3pt">
<fo:wrapper font-size="10pt" font-weight="bold">
Cream with choclates
</fo:wrapper>
</fo:block>

8. X-Link

Xml Linking language is primarily used for hyperlinking functionality in XML Documents. They are represented using elements, type,href.

<?xml     version = "1.0"    encoding = "utf-8" ?>
<cafed    xmlns:xlink = "http://www.w3.org/1999/xlink" >
<cafe       name = "bdown" >
<description
xlink:type = "action"
xlink:href = "http://cafe.com/cafed/bdown.avi" >
</description>
</cafe>

9. X-pointer

XML Pointer language points out certain parts of xml documents using hyperlinks. They typically address xml part media through links. To point out a specific parts include (#) symbol with the Xpointer expression.

xlink:href = "http://www.cafed.com/cafedata.xml#xpointer(id('php'))"

10. X-Form

It is used to describe a form of data and does manipulation and validations of a form.

<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:xf="http://www.w3.org/2002/xforms">
<head>
<title> Form demo XML</title>
<xf:model>
<xf:submission action="http://localhost/"
method="get" id="press"/>
</xf:model>

11. X-Query

It defines a Query collection of XML documents. It takes XPath +Query language like SQL. It takes XML has a data model to express complex queries. Uses FLWR expression.

for $x in doc("cafed.xml")/cafe/menu
where $x/item>30
return $x/food

12. SOAP (Simple Object Access Protocol )

It is a communication protocol used for XML Messaging. The key focus is on remote procedure calls for broadcasting a message via HTTP.SOAP is widespread in java, web services and dot net. So, SOAP is defined to be as a mechanism for information exchange with the help of XML ad HTTP the communication of the program from one operating system to another operating system takes place. Its working is very simple As SOAP request/response is done through HTTP Protocol through which the client request is made with XML Messaging to the server and the XML response is sent back to the client where it parses and returns the value. Sample Example is given below:

<?xml version="1.0"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2001/12/soap-envelope" SOAP-ENV:encodingStyle=" http://www.w3.org/2001/12/soap-encoding">
<soap:Body>
<SOAPSample xmlns="http://educba.org/">
<Tutorialweb>int</Tutorialweb>
</ SOAPSample >
</soap:Body>
</SOAP-ENV:Envelope>

13. WSDL ( (Web Services Description Language))

Web service Description Language is XML based file used to describe a web service. Sample Example is given below:

<definitionsname="Welcome to E-Service"targetNamespace=http://example.org/math/xmlns=http://schemas.xmlsoap.org/wsdl/><!-- abstract definitions --><types> ...//element names<message> ..// message and part names<portType> ...//operations,I/O. <!-- concrete definitions --><binding> ...//binding name<service> ...//name and documentation</definition>

Conclusion

The Worldwide web has many information flows and has interactions and interchanging of data, therefore for retrieval of data from the current web the document should be well structured like XML. These XML technologies give the basic foundations. Therefore, this article gains some minimal knowledge about the various x-types and basics of links, stylesheets, and pointing the links on the XML document. As a result, you should examine different aspects of web applications.

Recommended Articles

This is a guide to XML Technologies. Here we also discuss the definition and various xml technologies along with examples and its code implementation. You may also have a look at the following articles to learn more –

  1. XML Features
  2. XML Schema
  3. HTML vs XML
  4. XML Namespaces
Popular Course in this category
XML Training (5 Courses, 6+ Projects)
  5 Online Courses |  6 Hands-n Projects |  40+ Hours |  Verifiable Certificate of Completion
4.5
Price

View Course
0 Shares
Share
Tweet
Share
Primary Sidebar
Footer
About Us
  • Blog
  • Who is EDUCBA?
  • Sign Up
  • Live Classes
  • Corporate Training
  • Certificate from Top Institutions
  • Contact Us
  • Verifiable Certificate
  • Reviews
  • Terms and Conditions
  • Privacy Policy
  •  
Apps
  • iPhone & iPad
  • Android
Resources
  • Free Courses
  • Java Tutorials
  • Python Tutorials
  • All Tutorials
Certification Courses
  • All Courses
  • Software Development Course - All in One Bundle
  • Become a Python Developer
  • Java Course
  • Become a Selenium Automation Tester
  • Become an IoT Developer
  • ASP.NET Course
  • VB.NET Course
  • PHP Course

ISO 10004:2018 & ISO 9001:2015 Certified

© 2022 - EDUCBA. ALL RIGHTS RESERVED. THE CERTIFICATION NAMES ARE THE TRADEMARKS OF THEIR RESPECTIVE OWNERS.

EDUCBA
Free Software Development Course

C# Programming, Conditional Constructs, Loops, Arrays, OOPS Concept

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA Login

Forgot Password?

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA
Free Software Development Course

Web development, programming languages, Software testing & others

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

Let’s Get Started

By signing up, you agree to our Terms of Use and Privacy Policy.

This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the cookie policy. By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to our Privacy Policy

Loading . . .
Quiz
Question:

Answer:

Quiz Result
Total QuestionsCorrect AnswersWrong AnswersPercentage

Explore 1000+ varieties of Mock tests View more