Solved

DTD empty elements

Posted on 2003-11-17
3
319 Views
Last Modified: 2013-11-19
How can I forbid empty elements in a DTD? So <elementname/> is not allowed in the XML.
0
Comment
Question by:paulineb
3 Comments
 
LVL 3

Accepted Solution

by:
savalou earned 125 total points
ID: 9765593
Unless you specify an element content, you cannot do this in a DTD.  You have to use a schema.  A possible workaround would be to make the required content an attribute since CDATA attributes cannot be empty strings.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
site launch date and last modified date 3 99
Fixed div within Bootstrap carousel item 11 61
Online tools to transform xml to excel using xsl 1 48
XSLT XML 4 28
Shoutout to Emily Plummer (http://www.experts-exchange.com/members/eplummer26.html) for giving me this article! She did most of it, I just finished it up and posted it for her :)    Introduction In a previous article (http://www.experts-exchang…
I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question