XML & Servlets: Predefined Tags & More

  • Thread starter Thread starter Robben
  • Start date Start date
  • Tags Tags
    xml
Click For Summary

Discussion Overview

The discussion revolves around the relationship between XML and predefined tags, particularly in the context of servlets and the Eclipse development environment. Participants explore the nature of XML as a meta-language and the implications of using predefined tags within specific applications like servlets.

Discussion Character

  • Conceptual clarification
  • Debate/contested

Main Points Raised

  • One participant asserts that XML has no predefined tags and questions the presence of tags like and in Eclipse, seeking clarification.
  • Another participant clarifies that while XML itself lacks predefined tags, XML schemas do provide predefined sets of tags for specific purposes, such as XBEL for bookmarks.
  • A third participant reiterates the initial confusion about predefined tags in Eclipse, suggesting that Eclipse defines certain tags for organizing servlet information, distinguishing it from standard XML.
  • A fourth participant explains that XML is a meta-language and emphasizes that while XML has no predefined tags, various fields using XML may establish common tags through XML Schemas to facilitate information exchange.

Areas of Agreement / Disagreement

Participants generally agree that XML does not have predefined tags, but there is disagreement regarding the nature and role of predefined tags in specific contexts like Eclipse and servlets. The discussion remains unresolved regarding the implications of these predefined tags.

Contextual Notes

There are limitations in the discussion regarding the definitions of XML and XML schemas, as well as the specific roles of Eclipse in defining tags for servlet configurations. These aspects are not fully explored or clarified.

Robben
Messages
166
Reaction score
2
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.
 
Technology news on Phys.org
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/ ) is a schema for exchanging bookmarks.
 
Last edited by a moderator:
  • Like
Likes   Reactions: Robben
Robben said:
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.
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.
 
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.
 
  • Like
Likes   Reactions: Robben

Similar threads

  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 1 ·
Replies
1
Views
6K
  • · Replies 31 ·
2
Replies
31
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
Replies
9
Views
4K
  • · Replies 1 ·
Replies
1
Views
4K
Replies
1
Views
2K
Replies
19
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K