XML namespace

namespace is used for extending XML document that's define by another / different people
for example soap, someone defined soap envelope which is the basic structure / framework <HEADER> <XBODY> ...etc< div>
then user of soap can add his own elements inside the framework --> inside <HEADER> tag or <XBODY> div tag.<>
but the new user elements is defined by different people then soap envolpe, so we need to have another namespace
is that the only reason why we need namespace any other reason we need namespace for each element
Thanks


Answer this question

XML namespace

  • idodo

    Hello,

    Yep, I think you pretty much have it right. XML namespaces help you avoid name collisions when reusing predefined XML markup. For the official answer to your question, check out the Motivations section of the Namespaces in XML 1.1 W3C standard:

    http://www.w3.org/TR/xml-names11/#sec-intro

    Daniel Roth



  • XML namespace