Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Appending XMLNS prefixes to all XHTML markup
Old 12-08-2007, 09:09 PM Appending XMLNS prefixes to all XHTML markup
Moldarin's Avatar
Extreme Talker

Latest Blog Post:
Keyword Density and Title Tags
Posts: 201
Trades: 0
Hi forum,

Inspired by an O’Reilly article from December 2005 I want to add a XMLNS prefix to all markup in my Atom web feed. However my database only contains plain old XHTML.

How can I append a xhtml: prefix to all XHTML tags in the heystack using PHP? For instance would <p id="something"> have to be changed to <xhtml:p id="something">. That goes for each and every opening and closing element (except for escaped ones).

Any good suggestions?
__________________
I do not share ad revenue.

Last edited by Moldarin; 12-08-2007 at 09:12 PM.. Reason: Disabled smilies.
Moldarin is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Reply     « Reply to Appending XMLNS prefixes to all XHTML markup
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.10471 seconds with 12 queries