惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Google DeepMind News
Google DeepMind News
Stack Overflow Blog
Stack Overflow Blog
Hugging Face - Blog
Hugging Face - Blog
博客园_首页
T
The Blog of Author Tim Ferriss
博客园 - 叶小钗
N
Netflix TechBlog - Medium
腾讯CDC
C
Check Point Blog
P
Proofpoint News Feed
Engineering at Meta
Engineering at Meta
GbyAI
GbyAI
S
SegmentFault 最新的问题
F
Fortinet All Blogs
美团技术团队
U
Unit 42
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园 - 司徒正美
F
Full Disclosure
Recorded Future
Recorded Future
D
DataBreaches.Net
博客园 - 【当耐特】
Martin Fowler
Martin Fowler
J
Java Code Geeks
I
InfoQ
Y
Y Combinator Blog
A
About on SuperTechFans
AI
AI
爱范儿
爱范儿
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Forbes - Security
Forbes - Security
W
WeLiveSecurity
M
MIT News - Artificial intelligence
雷峰网
雷峰网
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Simon Willison's Weblog
Simon Willison's Weblog
Schneier on Security
Schneier on Security
The GitHub Blog
The GitHub Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
aimingoo的专栏
aimingoo的专栏
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
G
GRAHAM CLULEY
Know Your Adversary
Know Your Adversary
Latest news
Latest news
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
D
Docker
Recent Commits to openclaw:main
Recent Commits to openclaw:main
量子位
V2EX - 技术
V2EX - 技术
Project Zero
Project Zero

博客园 - pdfw

如何预编译ASP.Net程序 asp.net 输入框在chrome中无法关闭自动提示 sql server不能删除数据库,显示错误:正在使用 如何只更新datetime类型字段中的日期 SQL Server插入或修改数据是中文乱码的问题 怎么解决安装SqlServer2008总是提示Restart computer as failed 分页查询的SQL语句 如何使用Microsoft Enterprise Library里面的Log功能 【转】国外C#开源系统一览表 ,C# Open Source 【转】.NET试题总结二 【转】.NET试题总结一 窗口之间传递消息的一个方法 Dataset Designer在VS 2008里面不工作的解决办法 c#如何监视文件或者文件夹的变化 - pdfw - 博客园 如何在非英文环境中正确显示数字 SQL Server Express中连接字符串的问题 wpf制作毛玻璃效果按钮的代码 WPF中用于Path的Geometry Mini-Language 如何跨线程访问UI控件
Flex中查找XML节点 - pdfw - 博客园
pdfw · 2010-12-24 · via 博客园 - pdfw

1. 根据节点属性查找:

代码

var flexXML:XML = 
        
<RIA>
            
<FlashPlayer>
                
<Flash version="9">Flash CS3</Flash>
                <Flash version="8">Flash 8</Flash>
                <Flash version="7">Flash 2004MX</Flash>
                <Flex>Flex3</Flex>
            </FlashPlayer>
            <Ajax>
                
<GoogleAjax>GoogleAjax1.0</GoogleAjax>
            </Ajax>
        </RIA>;
                
trace(flexXML.FlashPlayer.Flash.(attribute(
"version")>7));

2. 根据节点内容查找:

根据内容查找

var flexXML1:XML=
        
<RIA>
            
<FlashPlayer>
                
<Flash>
                    
<Name>Flash CS3</Name>
                    <Version>9</Version>
                </Flash>
                <Flash>
                    
<Name>Flash 8</Name>
                    <Version>8</Version>
                </Flash>
                <Flash>
                    
<Name>Flash 2004MX</Name>
                    <Version>7</Version>
                </Flash>
                <Flex>Flex3</Flex>
            </FlashPlayer>
        </RIA>            
                trace(flexXML1.FlashPlayer.Flash.(Version>7)); 

查找返回的是 XMLList对象。