Help the world stop coronavirus! Stay home!

Prev Next

Java / XML

What is XML namespace?

XML namespace is similar to package in Java that provides a way to avoid conflict between two xml tags of same name but different sources. XML namespace is defined using xmlns attribute at top of the XML document and has following syntax xmlns:prefix=’URI’. That prefix is used along with actual tag in XML documents.

<root xmlns:javapedia="http://javapedia.net/javapedia-Example">
  <javapedia:email>
      <javapedia:id>javatutorials2016@gmail.com</javapedia:id>
   </javapedia:email>
</root>

❤Cash Back At Stores you Love !!!❤

Earn your $10 reward when you make your first purchase through Ebates by signing up with clicking below button.

Ebates Coupons and Cash Back

More Related questions...

Show more question and Answers...

Garbage collection

Comments & Discussions