Programming Tools
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingProgramming Tools

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old January 4th, 2004, 03:51 AM
GeertVc GeertVc is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 2 GeertVc User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thumbs up A Quick Primer

Nice explanation of the XML layout, certainly for someone (almost) completely new to the materials...

Some remarks:

1. Somewhere, you're telling the following:

The term #PCDATA refers to the "Parsed Character Data," which indicates that an element can contain only text.

This is partly correct, but it tells more: HTML-alike characters will also be listed correctly. And that's an extra information I'm missing in this sentence.

2. Using the CODE tag for your code examples would avoid misreadings of certain characters (especially the "!" in the code listings).
I find it strange to see <IELEMENT... in stead of <!ELEMENT... in your dtd file.

3. About your DTD. Would it not be better to use the following approach to describe your data type:

Code:
// mail. dtd 
<!ELEMENT mail EMPTY> 
<!ATTLIST mail
          From      PCDATA # REQUIRED 
          To        PCDATA # REQUIRED 
          Cc        PCDATA # IMPLIED  
          Date      PCDATA # REQUIRED 
          Subject   PCDATA # REQUIRED 
          Signature PCDATA # IMPLIED 
          Body      PCDATA!Signature>

Don't know if the syntax is completely correct, but I saw something similar in another article and I find it much more clear...

Rgds,

Geert

Reply With Quote
  #2  
Old January 4th, 2004, 06:46 AM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Posts: 2,056 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 44 m 22 sec
Reputation Power: 0
Hey GeertVc - can you please use the "Discuss Article" link at the end of the article when referring to articles, otherwise we won't know what you are talking about! - thanks

PS - I assume it's this one: http://www.devarticles.com/c/a/XML/...A_Quick_Primer/ ?

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingProgramming Tools > A Quick Primer


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap