An XML Namespace is collection of element types and attribute names. It consists of two parts :
1) The first part is the URI used to identify the namespace
2) The second part is the element type or attribute name itself.
The various purpose of XML Namespace are
1. Combine fragments from different documents without any naming conflicts.
2. Write reusable code modules that can be invoked for specific elements and attributes. Universally unique names guarantee that
such modules are invoked only for the correct elements and attributes.
3. Define elements and attributes that can be reused in other schemas or instance documents without fear of name collisions.
1) The first part is the URI used to identify the namespace
2) The second part is the element type or attribute name itself.
The various purpose of XML Namespace are
1. Combine fragments from different documents without any naming conflicts.
2. Write reusable code modules that can be invoked for specific elements and attributes. Universally unique names guarantee that
such modules are invoked only for the correct elements and attributes.
3. Define elements and attributes that can be reused in other schemas or instance documents without fear of name collisions.
No comments:
Post a Comment