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

Recommend this page to a friend!
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 59%Total: 1,950 All time: 1,999 This week: 327Up
Version License Categories
dtd2php 1.0.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
Innovation award
Innovation award
Nominee: 4x

Details
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,950
This week:0
All time:1,999
This week:327Up
 User Ratings  
 
 All time
Utility:78%StarStarStarStar
Consistency:75%StarStarStarStar
Documentation:67%StarStarStarStar
Examples:60%StarStarStarStar
Tests:-
Videos:-
Overall:59%StarStarStar
Rank:1393
  

For more information send a message to info at phpclasses dot org.