1

I need some help for extracting information out of an .sgm file using Python. Is there a specific library suitable for this specific kind of file? Or will libraries used to extract infos from .xml files work as well? If there are no libraries available, can you please suggest me a good module I can download to work with .sgm files?

And above all, if any, can you please explain me the difference between an .xml and a .sgm file?

Thank you!

user1718064
  • 475
  • 1
  • 9
  • 23

1 Answers1

2

Here are a few libraries which can be used to parse .sgm files:

The major difference between the two is that SGML permits the following:

Unclosed start-tags

Unclosed end-tags

Empty start-tags

Empty end-tags

References

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