XML & Servlets: Predefined Tags & More

  • Thread starter Thread starter Robben
  • Start date Start date
  • Tags Tags
    xml
AI Thread Summary
XML is a meta-language that does not have predefined tags; instead, tags are created as needed. However, in specific contexts, such as development environments like Eclipse, certain tags are defined to facilitate the organization of information. For instance, tags like <servlet-mapping> and <url-pattern> are part of the servlet specification and are used within the XML configuration files for Java web applications. These predefined tags help standardize communication and processing of data between different systems. XML schemas provide a structured way to define these tags, allowing for consistent data exchange across various applications. Each domain may have its own set of predefined tags or "dialects" of XML, tailored to meet specific needs, which are developed by experts to ensure usability and effectiveness.
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 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 Robben
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I have a quick questions. I am going through a book on C programming on my own. Afterwards, I plan to go through something call data structures and algorithms on my own also in C. I also need to learn C++, Matlab and for personal interest Haskell. For the two topic of data structures and algorithms, I understand there are standard ones across all programming languages. After learning it through C, what would be the biggest issue when trying to implement the same data...
Back
Top