/ Published in: ActionScript 3

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/** * åå‰ç©ºé–“を削除ã—ã¾ã™ * @param オリジナルストリング(XMLå½¢å¼) * @return namespace宣言をå–り去ã£ãŸXML */ private function deleteNameSpace(xmlText : String) : XML { // remove the namespaces from the string representation of the XML xmlText = xmlText.replace(new RegExp("xmlns[^\"]*\"[^\"]*\"", "gi"), ""); xmlText = xmlText.replace(new RegExp("xsi[^\"]*\"[^\"]*\"", "gi"), ""); // set the string rep. of the XML back to real XML return new XML(xmlText); }
Comments
