RobberBaron Posted February 28, 2010 Share Posted February 28, 2010 I've been looking through the PHP XML Manual, but I'm trying to find a way to create a simple markup language for my website. For example:I want this: <rbml:link id="{int}" type="{class}" href="{string}" text="{string}" /> To translate as this: <a id="{int}" class="{class}" href="{string}">{string}</a> Is there some way to do this with PHP (since my website is run by PHP) Link to comment Share on other sites More sharing options...
boen_robot Posted February 28, 2010 Share Posted February 28, 2010 The easiest way is to use XSLT, and use PHP to execute the transformation. Alternatively, there's always XMLReader, DOM, etc.You can use those to read the XML, and act accordingly with PHP. Link to comment Share on other sites More sharing options...
RobberBaron Posted February 28, 2010 Author Share Posted February 28, 2010 The easiest way is to use XSLT, and use PHP to execute the transformation. Alternatively, there's always XMLReader, DOM, etc.You can use those to read the XML, and act accordingly with PHP.Thanks, those were really useful Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.