Pages

Wednesday, May 4, 2011

Convert SGML SDATA entities to XML Unicode entities

Converting your SGML special character DTDs from SDATA entities to XML Unicode entities is really fairly simple. Just remove the SDATA keyword and change the replacement text output to the appropriate Unicode string.

For example, the following SGML entity:

<!ENTITY Alpha SDATA "[Alpha]" >

Would become:

<!ENTITY Alpha "Α" >

That's all there is to it.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.