• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Order of tags in XML

 
Ranch Hand
Posts: 172
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,all. I got a question. Are tags order sensitive in an XML or TLD file? I know <servlet-name> must appear before <servlet-class> in XML. Is it true for all the tags defined by DTD? I noticed when using some tags in a JSP, for example <%@ taglib uri="aa" prefix="bb">; the order of "uri" and "prefix" is exchangable. Could anyone please help me to understand this issure? Thanks
 
Ranch Hand
Posts: 1056
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Whether elements have to be in a particular order depends entirely on the DTD that is associated with your XML file.
As for this:


<%@ taglib uri="aa" prefix="bb">; the order of "uri" and "prefix" is exchangable


The "uri" and "prefix" are attributes, not elements. Attributes can always be in any order.
[ July 25, 2003: Message edited by: Ron Newman ]
 
when your children are suffering from your punishment, tell your them it will help them write good poetry when they are older. Like this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic