0

I am parsing an XML file with a DOM parser and here is the corresponding .dtd:

<!ELEMENT Concept (%ConceptReference;, TermList)>
...
<!ENTITY  % ConceptReference "(ConceptUI,ConceptName,ConceptUMLSUI?)">

I already parsed ConceptReference into an EntityReference object. The point I am stuck is: how do I get ConceptName and ConceptUI?

xlecoustillier
  • 16,183
  • 14
  • 60
  • 85
Alina
  • 146
  • 8
  • I'm a bit lost. A DTD is not valid XML. So how are you able to read it with an XML parser? – Moritz Petersen Jan 15 '13 at 10:50
  • I am reading the actual XML file, .dtd is the structural description. I am lost working with EntityReference interface. – Alina Jan 15 '13 at 11:00
  • Ok, fine. What have you actually tried? Did you use the [`EntityDeclaration`](http://glassfish.java.net/nonav/javaee5/api/javax/xml/stream/events/EntityDeclaration.html) through [`#getDeclaration()`](http://glassfish.java.net/nonav/javaee5/api/javax/xml/stream/events/EntityReference.html#getDeclaration())? – Moritz Petersen Jan 15 '13 at 11:46

0 Answers0