Hacker News new | ask | show | jobs
by LuxuryMode 5387 days ago
I don't get how to read the answer choices for this question:

<!DOCTYPE A [ <!ELEMENT A (B+, C)> <!ELEMENT B (#PCDATA)> <!ELEMENT C (B?, D)> <!ELEMENT D (#PCDATA)> ]> Which of the following sequences of opening and closing tags matches this DTD? Note: In actual XML, opening and closing tags would be enclosed in angle brackets, and some elements might have text subelements. This quiz focuses on the element sequencing and interleaving specified by the DTD.

What does this mean for example? A B /B B /B C B /B D /D D /D /C /A

1 comments

<A> <B> </B> <B> </B> etc.