{"id":431,"date":"2008-09-03T00:45:56","date_gmt":"2008-09-02T15:45:56","guid":{"rendered":"http:\/\/clockmaker.jp\/blog\/?p=431"},"modified":"2008-09-03T00:45:56","modified_gmt":"2008-09-02T15:45:56","slug":"delete_xml_e4x_namespace","status":"publish","type":"post","link":"https:\/\/clockmaker.jp\/blog\/2008\/09\/delete_xml_e4x_namespace\/","title":{"rendered":"AS3\u3067XML\u306e\u540d\u524d\u7a7a\u9593\u3092\u524a\u9664\u3059\u308b"},"content":{"rendered":"<p>\u4fd7\u306b\u3044\u3046\u3001ActionScript3.0\u306eXML\u306b\u304a\u3051\u308bNameSpace(\u540d\u524d\u7a7a\u9593)\u554f\u984c\u3002\u540d\u524d\u7a7a\u9593\u3092\u6271\u3046\u306b\u306f\u6b63\u653b\u6cd5\u3067\u3044\u3048\u3070<a title=\"AS3 \u306e XML \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3068 namespace (xmlns) - 8\u664240\u5206\u304c\u8d85\u3048\u3089\u308c\u306a\u3044 - subtech\" href=\"http:\/\/subtech.g.hatena.ne.jp\/secondlife\/20070211\/1171120066\" target=\"_blank\">QName\u3092\u4f7f\u3046\u65b9\u6cd5<\/a>\u3084<a title=\"AS3.0 - \u30c7\u30d5\u30a9\u30eb\u30c8\u540d\u524d\u7a7a\u9593 - pyro | blog\" href=\"http:\/\/www.pyro.jp\/blog\/2008\/02\/as30.html\" target=\"_blank\">\u30c7\u30d5\u30a9\u30eb\u30c8\u540d\u524d\u7a7a\u9593<\/a>\u306a\u3069\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u30d0\u30c3\u30c9\u30ce\u30a6\u30cf\u30a6\u3068\u3082\u3044\u3048\u308b\u6b63\u898f\u8868\u73fe\u3067\u540d\u524d\u7a7a\u9593\u81ea\u4f53\u3092\u524a\u9664\u3057\u3066\u3057\u307e\u3046\u65b9\u6cd5\u3092\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\u3002<br \/>\n<!--more--><\/p>\n<h3>\u6c4e\u7528\u30e1\u30bd\u30c3\u30c9<\/h3>\n<p>URLLoader\u3084HTTPService\u3067\u8aad\u307f\u8fbc\u3093\u3060\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb(String\u578b)\u306eXML\u3092\u5f15\u6570\u306b\u6e21\u3059\u3068\u30cd\u30fc\u30e0\u30b9\u30da\u30fc\u30b9\u3092\u524a\u9664\u3055\u308c\u305fXML\u3092\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\n\/**\n * \u540d\u524d\u7a7a\u9593\u3092\u524a\u9664\u3057\u307e\u3059\n * @param\t\u30aa\u30ea\u30b8\u30ca\u30eb\u30b9\u30c8\u30ea\u30f3\u30b0(XML\u5f62\u5f0f)\n * @return\tnamespace\u5ba3\u8a00\u3092\u53d6\u308a\u53bb\u3063\u305fXML\n *\/\nprivate function deleteNameSpace(xmlText:String):XML\n{\n\t\/\/ remove the namespaces from the string representation of the XML\n\txmlText = xmlText.replace(new RegExp(&quot;xmlns[^&quot;]*&quot;[^&quot;]*&quot;&quot;, &quot;gi&quot;), &quot;&quot;);\n\txmlText = xmlText.replace(new RegExp(&quot;xsi[^&quot;]*&quot;[^&quot;]*&quot;&quot;, &quot;gi&quot;), &quot;&quot;);\n\n\t\/\/ set the string rep. of the XML back to real XML\n\treturn new XML(xmlText);\n}\n<\/pre>\n<h3>\u767a\u60f3\u306e\u5143\u30cd\u30bf\u306f\u3053\u3061\u3089<\/h3>\n<ul>\n<li><a title=\"Remove Annoying XML Namespaces in Flex\/AS3 \u00ab Got RIA?\" href=\"http:\/\/brianmriley.wordpress.com\/2008\/03\/14\/remove-xml-namespaces-in-flex-or-as3\/\" target=\"_blank\">Remove Annoying XML Namespaces in Flex\/AS3 \u00ab Got RIA?<\/a><\/li>\n<li><a title=\"fladdict\u00bb \u30d6\u30ed\u30b0\u30a2\u30fc\u30ab\u30a4\u30d6 \u00bb AS3 XML\u306b\u30cd\u30fc\u30e0\u30b9\u30da\u30fc\u30b9\u304c\u3042\u308b\u3068\u666e\u901a\u306b\u306f\u5024\u304c\u53d6\u5f97\u3067\u304d\u306a\u3044\" href=\"http:\/\/fladdict.net\/blog\/2006\/07\/as3_xml.html\" target=\"_blank\">fladdict\u00bb \u30d6\u30ed\u30b0\u30a2\u30fc\u30ab\u30a4\u30d6 \u00bb AS3 XML\u306b\u30cd\u30fc\u30e0\u30b9\u30da\u30fc\u30b9\u304c\u3042\u308b\u3068\u666e\u901a\u306b\u306f\u5024\u304c\u53d6\u5f97\u3067\u304d\u306a\u3044<\/a><\/li>\n<\/ul>\n<ul><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u4fd7\u306b\u3044\u3046\u3001ActionScript3.0\u306eXML\u306b\u304a\u3051\u308bNameSpace(\u540d\u524d\u7a7a\u9593)\u554f\u984c\u3002\u540d\u524d\u7a7a\u9593\u3092\u6271\u3046\u306b\u306f\u6b63\u653b\u6cd5\u3067\u3044\u3048\u3070QName\u3092\u4f7f\u3046\u65b9\u6cd5\u3084\u30c7\u30d5\u30a9\u30eb\u30c8\u540d\u524d\u7a7a\u9593\u306a\u3069\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u30d0\u30c3\u30c9\u30ce\u30a6\u30cf\u30a6\u3068\u3082\u3044\u3048\u308b\u6b63\u898f\u8868\u73fe\u3067\u540d\u524d [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[],"_links":{"self":[{"href":"https:\/\/clockmaker.jp\/blog\/wp-json\/wp\/v2\/posts\/431"}],"collection":[{"href":"https:\/\/clockmaker.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/clockmaker.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/clockmaker.jp\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/clockmaker.jp\/blog\/wp-json\/wp\/v2\/comments?post=431"}],"version-history":[{"count":0,"href":"https:\/\/clockmaker.jp\/blog\/wp-json\/wp\/v2\/posts\/431\/revisions"}],"wp:attachment":[{"href":"https:\/\/clockmaker.jp\/blog\/wp-json\/wp\/v2\/media?parent=431"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/clockmaker.jp\/blog\/wp-json\/wp\/v2\/categories?post=431"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/clockmaker.jp\/blog\/wp-json\/wp\/v2\/tags?post=431"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}