Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

XML and Servlets

  1. May 26, 2015 #1
    Before I started self learning servlets I had to learn XML first and I learned that XML has no predefined tags instead they are invented, but while learning servlets I came across tags that are predefined in my eclipse i.e. <servlet-mapping> and <url-pattern>. Am I not understanding this correctly? Can anyone elaborate please?

    Thank you.
  2. jcsd
  3. May 26, 2015 #2
    XML itself has no predefined tags, but XML schema do.

    A schema is a predefined set of XML tags designed to carry a certain type of information in a standard format. For example XBEL (http://pyxml.sourceforge.net/topics/xbel/ [Broken]) is a schema for exchanging bookmarks.
    Last edited by a moderator: May 7, 2017
  4. May 26, 2015 #3


    Staff: Mentor

    As you said, XML has no predefined tags, but eclipse is different from XML. From what little I know about eclipse, it appears to be a development environment, and the people behind eclipse have defined some tags to organize the information a servlet needs.
  5. May 27, 2015 #4


    User Avatar
    Gold Member

    XML is a meta-language - a language to define other markup languages, so it obviously has no predefined tags. But in the various fields that XML is used, some tags get sort of predefined, in order to make it easy for entities that exchange information, to have a common set of rules - usually expressed as an XML Schema, so the procedure of send - receive - process from both sides, can work in a transparent and smooth way. Among the different conventions that are used in each field - different "dialects" of XML, Eclipse has its own in IDE level - configurations of the IDE, saved profiles and so on and plugins for various aspects of development have their own XML, too. These predefined dialects or document types of XML are developed by experts, so they are both easy - as easy as it can be, and effective.
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook