PHP Classes
elePHPant
Icontem

DTD 2 PHP: Generate a class to output DTD compliant documents

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2004-06-17 (11 years ago) RSS 2.0 feedStarStarStar 59%Total: 1,926 All time: 1,932 This week: 1,082Up
Version License Categories  
dtd2php 1.0Free for non-comm...XML, Code Generation
Description Author  

This class is meant to generate new PHP classes that are capable of outputting SGML/XML documents compliant with a given DTD definition.

DTD 2 PHP class is used in the PHPVoice package.

Picture of Ben Yacoub Hatem
Name: Ben Yacoub Hatem <contact>
Classes: 18 packages by
Country: Tunisia Tunisia
Age: 37
All time rank: 211 in Tunisia Tunisia
Week rank: 160 Down2 in Tunisia Tunisia Down
Innovation award
Innovation award
Nominee: 4x

Details provided by the author  
DTD2PHP
Author : Ben Yacoub Hatem <hatem@php.net>

This class is meant to generate php class based on DTD description.

dtd2php class is used with PHPVoice package (vxml.sf.net).


Sample usage is available in the phpvoice.php script :

* create dtd/PHPVoice/ folder and copy you *.dtd files there
* then create output/ folder 
* and finally run the script

Due to dtd specifications, you should make only small changes in dtd file before generating the class. For example with ccxml.dtd, you'll find ELEMENT and ATTLIST of ccxml in the middle of the file. bring them in the beginning of the file, and then run the generator.

Your comments & suggestions are welcome
Hatem
  Files folder image Files  
File Role Description
Plain text file dtd2php.class.php Class The main class
Accessible without login Plain text file phpvoice.class.php Example sample usage of the class
Accessible without login Plain text file readme.txt Doc. Readme file

 Version Control Unique User Downloads Download Rankings  
 0%Total:1,926All time:1,932
 This week:0This week:1,082Up
 User Ratings  
 
 All time
Utility:78%StarStarStarStar
Consistency:75%StarStarStarStar
Documentation:67%StarStarStarStar
Examples:60%StarStarStarStar
Tests:-
Videos:-
Overall:59%StarStarStar
Rank:960