O'Reilly logo

XML Companion, The, Third Edition by Neil Bradley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Converting to XML

The wide range of software supporting XML will prompt some to consider converting SGML documents to XML format. Unfortunately, this is not as simple a task as converting the other way. This is due to the fact that SGML has a far wider range of capabilities.

The SGML Declaration

XML uses the same characters for markup delimiters as specified by the default SGML declarations. For example, the characters '</' indicate the start of an end-tag in XML, just as they do in the SGML reference concrete syntax. If the SGML declaration in use redefines any delimiters, both the SGML declaration must be changed to the default case, and all affected DTDs and document instances must be processed accordingly:

 <!-- SGML --> GENERAL SGMLREF STAGO ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required