Skip to main content

Chapter 02 XML - Name Spaces (eXtensible Markup Language ) -Technology369kk

 NAME SPACE

XML namespaces are used for providing uniquely named elements and attributes in an XML document. They are defined in a W3C recommendation. An XML instance may contain element or attribute names from more than one XML vocabulary. A namespace name is a uniform resource identifier (URI). Typically, the URI chosen for the namespace of a given XML vocabulary describes a resource under the control of the author or organization defining the vocabulary, such as a URL for the author’s in the Web server. 

Table Of Content :

  • XML NameSpace Introduction:
  • XML NameSpace Advantages:
  • XML NameSpace Disadvantages:
  • XML NameSpace Example:

XML NameSpace Introduction:

  • It is used to avoid element name conflict in XML document.
  • It is a set of unquie names.
  • Identified by URI (Uniform Resource Identified) 
  • Attributes names must start form with "xmlns", 
  • Syntax:

  • Conflict: Genrally conflict occures when we try yo mix XML documents from diffrence XML applications.
  • Example of Conflict:
    • XML1


    • <class>
        <name>..........</name>
      </class>

    • XML2

    • <class>
        <name>..........</name>
      </class>

  • So, In this case same name parent and child then create a conflict occuress due to same..



 XML NameSpace Advantages: 

There  are some advantages of XML Namespaces:
  • It avoids duplicate element names and attributes defined in an XML document where the XML element defined in one organization product may conflict with the other.
  • With namespace elements and attributes can be reused in other documents or schema without any error.
  • It enhances readability and the declaration of them is placed anywhere within an XML document.

XML NameSpace DisAdvantages: 

Here are some disadvantages of XML Namespaces:
  • XML documents are less readable when compared to other text-based data transmission formats.
  • XML namespaces are difficult to use and cannot be correctly implemented in an XML parser.

XML NameSpace Example:



<? xml version ="1.0" encoding="UTF-8" ?>

<c1:class xmlns:c1="#class1//url.......">
  <c1: name> Shailesh<c1: name>
</c1: class>


<c2: class xmlns:c2="#url Class....">
  <c2:name>Shailesh<c2:name>
  </c2:class>

  So : No There will be no conflict due to namespace



So. I hope this is helpful for YOu . Thanks For Comming Back. 

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...