2

I would like to get information from an SGML DTD (element, attribute, etc.) I tried to get the element with the help of module use SGML::DTD, which is not working. Suppose, if the DTD contains duplicate elements with distinct attribute, I get an element as only one time.

I tried this: @allelements=$dtd->get_elements(0);

Are there any other modules I can use to retrieve the values from SGML DTD and SGML parser?

Michael Petrotta
  • 59,888
  • 27
  • 145
  • 179
sakthi
  • 21
  • 2
  • Can you add some examples of input and output? Why do you expect an element to be different to the same element, if it has a different attribute? – choroba Jun 21 '12 at 13:12

1 Answers1

0

Another module which may work is SGML-DTDParse:

Paul Sweatte
  • 24,148
  • 7
  • 127
  • 265