Skip to main content

Chapter 3 XML(eXtensible Markup Language) Introduction - Technology369kk

 XML

XML (eXtensible Markup Language) is a markup language that defines a set of rules for encoding documents in a format that is both human-readable and machine-readable. It is designed to be platform-independent and widely supported across different systems and applications.

XML uses tags to define elements and structures within a document. Each element is enclosed within angle brackets (`<` and `>`), and elements can have attributes represented as name-value pairs within the opening tag. The content of an element can include text, other elements, or a combination of both.

XML was designed to store and transport data. It is a textual data format with strong support via Unicode for different human languages. 

Table of Content : 

XML Introduction: 

  • (XML) eXtensible Markup Language means that we can create your own tags.
  • It is used to store and transport data. 
  • Self description.
  • Used to carry data(Not used to display).
  • Self Defined tags.
  • Platform and language independent.
  • Helps in easy communication b/w two platforms with databases.

Features and Advantage: 

  • Separates data into html from. 
  • Simplifies data sharing
  • Simplifies data transport 
  • Increase data availability
  • Simplifies platform change.
    • DATA>> EXPORT>>XML>> ORCLE/MYSQL

    XML Example and Structure :

    Example of XML:


    <!-- // Declaration -->
    <? XML version ="1.0" encoding="UTF-8" ?>  

    <!-- //Root Element or Parent Class -->
    <college>  
    <!-- child class of collage -->
      <class>
        
        <name>Shailesh </name>
        <roll>82025 </roll>
      </class>

      <class1>
        <name1>Jaiswal</name1>
        <roll>82062</roll>
      </class1>
    </collage>       
        

    • In this example, the XML document represents a simple bookstore. The root element is `<college>`, and it contains two `<title>` and `<class>` elements as its child elements. Each `<name>` `<roll>` element has attributes (`category`), and it contains name and roll number  elements representing the college attributes in a xml file respectively.

    Structure of XML: 

    • Hierarchical Structure: XML documents are organized in a hierarchical structure, with nested elements representing parent-child relationships.
    • Customizable Tags: XML allows the definition of custom tags and elements that are meaningful in the context of the specific application or domain.
    • Self-Descriptive: XML documents are self-descriptive, meaning that they contain both the data and the metadata necessary to interpret and process the data.
    • Extensibility: XML is designed to be extensible, allowing users to define their own elements and document structures to suit their specific needs.
    • Data Interchange: XML is commonly used for data interchange between different systems and platforms, as it provides a standardized format that can be understood by multiple applications.
    • Wide Industry Adoption: XML has gained widespread adoption in various domains, including web services, data storage, configuration files, document formats (such as RSS and XHTML), and more.
    XML documents can be processed and manipulated using programming languages, such as Java, Python, or .NET, and there are many XML-related technologies and tools available for parsing, validation, transformation, and querying XML data.

    Diffrent Between HTML and XML:

    HTML :

    • Display data (Look and Feel) 
    • Markup Lang it self
    • Not case-senstive
    • Predefined tags
    • Static
    • Example of HTML

    <!DOCTYPE html>
    <html>
    <head>
       <title>Document Title</title>
    </head>
    <body>
      <h1>This is Heading</h1>
      <p>This is Paragaraph </p>
      <b>This is bold Tags</b>
      <i>This is itile tags</i>
    </body>
    </html>


    HTML :

    • Transport and store the data.
    • Provide framework to define markup language.
    • Case-senstive
    • Can create own tags
    • Dynamic
    • Example of HTML:
     
    <!-- // Declaration -->
    <? XML version ="1.0" encoding="UTF-8" ?>  

    <college>
      <class1>
        <name1>Jaiswal</name1>
        <roll>82062</roll>
      </class1>
    </collage>



    I hope this is Helpful For You... Learn more:  

    Next Chapter : 

    1. XML Name-Space
    1. Documnet Type Defintions (DTD):
    1. XML Schema:

    1. Displaying XML Documents:
    1. XML and CSS.:










    Comments

    Popular posts from this blog

    Assignment of ITA/ Information Technology and Application BCA- Technology369kk

    Q1. What is  computer Explain basic computer architecture and Difference components.  2. Discuss the use of memory in computer system, Explain memory hierarchy  in details. 3. What is software? Explain difference types of software with explain. 4. Write short notes on the given:- (I) Internet. (II) LAN (Local area network ) (III) Search engine (IV) Web browser  Q 1.What is computer Explain basic computer architecture, Difference components of computer.   Computer :- Computer is defined as an electronic device that takes input data and instructions from the user and after processing them, it generates useful and desired output quickly.   A computer is designed to execute applications and provides a variety of solutions through integrated hardware and software components.                            It is fast and automatic device. It works with the help of programs and represents the d...

    C++ and Java Practical All Questions Answers - BCA -Technology369kk

    C++ and Java  In this post see most important questions for practical questions given by college all questions with answers . Guys I want to say that this is only for suggested post for your practical please request to you change same alphabets, words or anything  methods name and variables name because if you write all words same then this is copy paste for another peoples.  Used Topics:  Keywords, Variables, Condition Statements, Function , Array, Structure, Pointer.                           In OOPs, Class and Objects, Constructor, Poly morph, Encapsulation, Access Specifiers,                               Inheritance etc.  So, Without Time Lose Come to the Points, let's go start Now:        *************************************************************************  C++ 12 ...

    Assignment of PMO (Principal of Management and Organization) - Technology369kk

     ** Assignment Of PMO ** Agenda: -  4 Questions discuss in this post. Question 1. Write a d etails note on selection why it Called. negative process.  Question 2. Write a details note on 'span of control. Question 3. Planning is an essential process, do you agree ? Discuss  Question 4. Write a note on management function. Q 1. Write a d etails note on selection why it called negative process.  Ans :-  Selection is the process of choosing the most suitable candidates out of the several candidates available.          Selection is a negative process because there may be more rejected then those selected in most of the candidates that is called selection is a negative process. → Selection process has the following steps:-  [ A .] Screening of applicants - Based on the screening of applicants only those candidates. It Called further process of selection. Who are found eligible for the job Standards of the the organization. [ B .] S...