PHP Classes

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

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 57%Total: 1,954 All time: 2,013 This week: 84Up
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
Age: 46
All time rank: 241 in Tunisia Tunisia
Week rank: 214 Down1 in Tunisia Tunisia Equal
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 (3)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,954
This week:0
All time:2,013
This week:84Up
 User Ratings  
 
 All time
Utility:75%StarStarStarStar
Consistency:71%StarStarStarStar
Documentation:65%StarStarStarStar
Examples:59%StarStarStar
Tests:-
Videos:-
Overall:57%StarStarStar
Rank:1716