Follow us on...
Follow us on Twitter Follow us on Facebook
Register
Results 1 to 2 of 2
  1. #1
    MacLuv is offline Reloaded
    Join Date
    Oct 2002
    Location
    I'm not really here.
    Posts
    760
    Thanks
    0
    Thanked 0 Times in 0 Posts

    XML acronym sweeper?

    I'm trying to find a way to have an xml file sweep for acronyms from a list. (i.e., the xml file finds acronyms that match a list and applies the correct markup tags).

    If anyone has seen anything like this, please help.

    Thanks in advance.

    PS. In case anyone doesn't know about this feature, the <acronym> and <abbr> tags work in Chimera and others, but not IE for Mac (because IE for Mac sucks).

  2. #2
    slur's Avatar
    slur is offline Geek / Hedonist
    Join Date
    Dec 2000
    Location
    Florence, MA
    Posts
    542
    Thanks
    0
    Thanked 1 Time in 1 Post
    I'm not sure what you mean by "having an XML file sweep...." Surely an XML file can't "do" anything, can it?

    If you simply want to strip out these tags to make Explorer happy then this ought to do the trick:

    $clean_xml = preg_replace('!</?(acronym|abbr)[^>]*>!i', '', $my_xml);
    |
    | slur was here
    |

    check out my creative music software

 

 

Similar Threads

  1. XML and Flash
    By twister in forum Design & Media
    Replies: 7
    Last Post: October 21st, 2003, 05:41 PM
  2. XML rollover with flyouts
    By Vard in forum Design & Media
    Replies: 1
    Last Post: July 7th, 2003, 06:04 PM
  3. Thank God the Witch Is Dead
    By Veljo in forum Mac OS X System & Mac Software
    Replies: 2
    Last Post: June 27th, 2003, 05:51 PM
  4. CGI script connected to database. XML.
    By brutfood in forum Software Programming & Web Scripting
    Replies: 2
    Last Post: April 11th, 2002, 10:09 AM
  5. Formatting a database as an XML file
    By mromey in forum Mac OS X System & Mac Software
    Replies: 0
    Last Post: December 4th, 2001, 11:46 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •