Posted By

chrisaiv on 03/19/10


Tagged

xml as3


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

tspitzr


AS3: Cleaning up NameSpaces


 / Published in: ActionScript 3
 

URL: http://www.stevensacks.net/?s=parsing+xhtml+with+e4x+in+as3

removeNamespace() doesn't always do the trick. Here's a bombizzle regexp.

  1. str = str.replace(/\s+xmlns(:[^=]+)?="[^"]*"/g, "");

Report this snippet  

You need to login to post a comment.