How to declare empty or not-empty dtd element?

Yes, your element declaration for File is correct.

Up vote 2 down vote favorite share g+ share fb share tw.

I have found the *-operator, but I can't verify if this can also validate empty elements. I have tried this, but it gives a compilation error in Visual Studio saying that the EMPTY element is not declared: Or I could try the following, but I can't validate if it is ok: ... xml dtd link|improve this question asked Aug 17 '11 at 11:39Marnix2,8611313 94% accept rate.

Yes, your element declaration for File is correct: What you're saying is that File can contain zero or one Annotations element. Also, if you would've used * instead of? , you would've been saying File can contain zero or more Annotations elements.

Valid examples: > > .

That was my question actually... – Marnix Aug 17 '11 at 22:27 Yes. Zero means that you can have an empty element (element with no content). That really has nothing to do with an ending slash being on the same line.

XML editors and/or processors may treat line breaking differently. I've added a couple of examples. – DevNull Aug 17 '11 at 23:01 Thanks for the verification.

The examples are exactly what I was looking for. – Marnix Aug 22 '11 at 15:09.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions