Converting SGML to XML

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
phenam
Forum Newbie
Posts: 3
Joined: Thu Oct 14, 2010 4:15 pm

Converting SGML to XML

Post by phenam »

Hi, I have a file in SGML format, so there are a lot of open tags that are not closed, and I'd like to convert it to XML. Is preg_replace the only way to close these open tags? If so, does anyone have any pointers to help get me going in the right direction? Cheers.
Post Reply