[英]display flex xml with dash
In Flex, how do I display "midi-channel" to s:Label? 在Flex中,如何显示s:Label的“ midi-channel”?
I tried songTitle.text = mainXML.child("movement-title").text();
我尝试了songTitle.text = mainXML.child("movement-title").text();
it worked but unsure how to display for midi-channel part. 它有效,但不确定如何显示中通道部分。
<score-partwise>
<movement-title>zsdf</movement-title>
<part-list>
<score-part id="P1">
<part-name>Piano</part-name>
<score-instrument id="P1-I1">
<instrument-name>Acoustic Grand Piano</instrument-name>
</score-instrument>
<midi-instrument id="P1-I1">
<midi-channel>1</midi-channel>
<midi-program>1</midi-program>
</midi-instrument>
</score-part>
</part-list>
found it after trial and error. 经过反复试验发现它。 I can use mainXML.elements("part-list").children().children()
and point down to the specify descendant and display the value. 我可以使用mainXML.elements("part-list").children().children()
并指向指定的后代并显示值。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.