This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes NMTOKENS as element's datatype Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "NMTOKENS as element Watch "NMTOKENS as element New topic

NMTOKENS as element's datatype

Sudhanshu Mishra
Ranch Hand

Joined: May 28, 2011
Posts: 215

Hi all,
I read in RMH book that attributes only can be of NMTOKEN type,but i tried on eclipse xml editor with elements ,and elements could also have NMTOKENS type as their data type.
Is the fact correct that only attributes can have NMTOKENS data type?

I agree. Here's the link:
subject: NMTOKENS as element's datatype
Similar Threads
Questions from
Complex Type creation
NMTOKENS (supports seperation with tabs, CRs, extra whitespaces OR not?)