使用动作脚本 3 获取所需的 XML 标签和所需的子标签?
我有一个 XML 架构。我只想使用操作 script3 代码读取表标签及其几何标签。任何想法。
<table name="TableBase 1" id="TableBase3010" overflow="false" direction="lr-tb" suppress-empty-lines="false">
<style-ref name="default"/>
<geometry size="absolute" position="absolute">
<location left="117" top="102"/>
<size width="341" height="80"/>
<transform rotation="0"/>
</geometry>
<columns number-of-columns="1" gutter="0" align-bottoms="false"/>
<header>
<row>
<cell>
<objects>
<text name="SingleLineText3081" id="ElxSingleLineText3081">
<style-ref name="default"/>
<geometry size="absolute" position="absolute">
<location left="0" top="0"/>
<size width="341" height="20"/>
<transform rotation="0"/>
</geometry>
<content value="Text"/>
</text>
</objects>
</cell>
</row>
</header>
<body>
<row>
<cell>
<objects>
<text name="SingleLineText3150" id="ElxSingleLineText3150">
<style-ref name="default"/>
<geometry size="absolute" position="absolute">
<location left="0" top="0"/>
<size width="341" height="20"/>
<transform rotation="0"/>
</geometry>
<content value="Text"/>
</text>
</objects>
</cell>
</row>
</body>
<footer>
<row>
<cell>
<objects>
<text name="SingleLineText3279" id="ElxSingleLineText3279">
<style-ref name="default"/>
<geometry size="absolute" position="absolute">
<location left="0" top="0"/>
<size width="341" height="20"/>
<transform rotation="0"/>
</geometry>
<content value="Text"/>
</text>
</objects>
</cell>
</row>
</footer>
</table>
提前致谢 !!!!!!!
I have a XML schema.I want to read only table tag and its geometery tag using action script3 code.Any Idea.
<table name="TableBase 1" id="TableBase3010" overflow="false" direction="lr-tb" suppress-empty-lines="false">
<style-ref name="default"/>
<geometry size="absolute" position="absolute">
<location left="117" top="102"/>
<size width="341" height="80"/>
<transform rotation="0"/>
</geometry>
<columns number-of-columns="1" gutter="0" align-bottoms="false"/>
<header>
<row>
<cell>
<objects>
<text name="SingleLineText3081" id="ElxSingleLineText3081">
<style-ref name="default"/>
<geometry size="absolute" position="absolute">
<location left="0" top="0"/>
<size width="341" height="20"/>
<transform rotation="0"/>
</geometry>
<content value="Text"/>
</text>
</objects>
</cell>
</row>
</header>
<body>
<row>
<cell>
<objects>
<text name="SingleLineText3150" id="ElxSingleLineText3150">
<style-ref name="default"/>
<geometry size="absolute" position="absolute">
<location left="0" top="0"/>
<size width="341" height="20"/>
<transform rotation="0"/>
</geometry>
<content value="Text"/>
</text>
</objects>
</cell>
</row>
</body>
<footer>
<row>
<cell>
<objects>
<text name="SingleLineText3279" id="ElxSingleLineText3279">
<style-ref name="default"/>
<geometry size="absolute" position="absolute">
<location left="0" top="0"/>
<size width="341" height="20"/>
<transform rotation="0"/>
</geometry>
<content value="Text"/>
</text>
</objects>
</cell>
</row>
</footer>
</table>
THANKS IN ADVANCE !!!!!!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
让我们假设您的 XML 存储在名为“xml”的变量中
,现在
xml
将存储您的标签,您可以获取 XMLList 形式的几何详细信息Let us assume your XML is stored in a variable called 'xml'
Now
xml
will store your tag and you can get the geometry details as XMLList