Simple Entity Converter

I found myself needing a simple entity conversion tool when working with XML files. Not finding exactly what I needed online I finally broke down and created my own. I refined it a bit and posted it up.

Check it out: Simple Entity Converter

Update: 12/18/07

I have been doing a little tweaking:

  1. Minor updates to the layout
  2. Broke the entity list into two groups, the predefined XML set and all the rest. I found converting the core XML entities can come in handy.
  3. I made the entity list selectable so now you can check the entities you would like to convert
  4. Added some toggle controls for each group so its easy to select or deselect them all.

Note: Conversion starts to get a little bit dicey at super high code points. Starting at about 900+, unless the character is listed in the selection table on the right it will automatically be translated to its numbered entity. I’m working on it.



Comments

  1. Marvin March 20th

    Comment Arrow

    Hi Larry, your converter is very helpfull to me but I have many predefined entities that are not listed on it. Can I add the other indentities listed in my DTD in able to help me better? Thanks a lot!


  2. gorn April 3rd

    Comment Arrow

    It doe s does not convert numbered wntities to characters at all. I have tried:

    Konečně jsme tady přišeli, memoto žil a zdrav, navzdory,
    pravděpodobně, bůhům nebe a pekla. Ah ! Ta namáhavá cesta !


  3. J April 20th

    Comment Arrow

    Your link to the convertor seams to be broken.


  4. Larry April 20th

    Comment Arrow

    Sorry. Migrating to a new host. I’m hoping to get it back up soon. Thanks


  5. Riccardo Benetti April 26th

    Comment Arrow

    Hi,
    if you wanna send to me the code and I publish under my blog.


Add Yours

  • Author Avatar

    YOU


Comment Arrow
CommentLuv Enabled



About Author

Larry

A certified PHP developer and architect living and working in Orange County California. Larry specializes in LAMP based platforms and focuses on a wide variety of leading edge web technologies including web service development, AJAX enabled applications as well as Flash based application development.