0

I have hundreds of files which don't compile into Microsoft Help Format because there are several minor XML syntax issues: <dd> without </dd> for example.

That's why I want to allow ignoring missing tags in XML so the XML files will pass the test of that conversion program (mshcMigrate Utility). But the question is: how to set OMITTAG to YES?

mzjn
  • 48,958
  • 13
  • 128
  • 248
  • 4
    The whole point of XML is that you **must** have matching tags. `OMITTAG YES` in XML is an oxymoron. – BoltClock Jan 11 '13 at 17:45
  • Or more formally, XML is defined as an application of SGML that has OMITTAG NO in its concrete syntax. In other words, OMITTAG NO is part of what makes XML XML. With OMITTAG YES, it no longer is. – Mr Lister Apr 25 '14 at 05:21

2 Answers2

3

It is not possible. Setting OMITTAG to YES is an SGML feature that is not available in XML.

Reference: http://www.w3.org/TR/NOTE-sgml-xml.

BoltClock's comment is very much to the point. The tags must match; otherwise it's not XML.

mzjn
  • 48,958
  • 13
  • 128
  • 248
1

OMITTAG is an SGML feature. XML does not have it.

If your originals are HTML files, and the markup in them is reasonably sane enough to pass SGML validation, then you might consider using osx to convert them to XML (or "fully-tagged") format.

arayq2
  • 2,502
  • 17
  • 21