• 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

2 easy questions

 
Ranch Hand
Posts: 4716
9
Scala Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I just read the chapter on XML in my new PHP book. it introduced XML documents and DTD's then showed how to parse them in PHP and display the data(which is surprisingly easy to do).they mentioned 4 rules of well formed XML.
1. tags must be nested properly
2. all start tags must have end tags
3. you must use quotation marks correctly for tag attributes
4. you must be careful using "&" and "<"(isnt ">" also a "special character?)
this sounds exactly like what i recall reading about XHTML except that i remember a 5th rule
5. all tags must be lower case
did the book just forget to mention that?
 
Ranch Hand
Posts: 2166
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Randall Twede:

this sounds exactly like what i recall reading about XHTML except that i remember a 5th rule
5. all tags must be lower case
did the book just forget to mention that?


No they did not. Rule 5 seems to be as special XHTML rule.
Xml tags can be upper, lower-case or mixed-case. Even chinese I would say, if you use unicode.
In every case start-tag end end-tag are case-sensitive.
Axel
don't blindly believe everything what I say, too.
This is my first xml-answer
 
Randall Twede
Ranch Hand
Posts: 4716
9
Scala Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic