开发者

E4X: List document namespaces?

开发者 https://www.devze.com 2023-03-22 17:37 出处:网络
How would开发者_如何学JAVA I get a list of namespaces in an XML document using E4X?Use the namespaceDeclarations() method to get an array of namespaces:

How would开发者_如何学JAVA I get a list of namespaces in an XML document using E4X?


Use the namespaceDeclarations() method to get an array of namespaces:

var bar = new XML('<html:div xmlns:html="about:html"><p></p></html:div>');
bar.namespaceDeclarations().toString(); //about:html

References

  • Providing XML to Controls with E4X (pdf)
0

精彩评论

暂无评论...
验证码 换一张
取 消