How can I use XPath with AS3 and get a result that still reffereced to the XMLDocument object?

匿名 (未验证) 提交于 2019-12-03 01:04:01

问题:

I'm parsing a XML string into XMLDocument object. I want to search for a specific node using XPath technology by using XPathQuery.execQuery() - this function returns new XML object which means I need to convert it to a different XMLDocument object and lose the reference, how can I do that without loosing the reference?

I'm using this XPath library of AS3.

回答1:

Amarghosh has a good point. why aren't you using e4x ? here is the livedocs documentation for it http://livedocs.adobe.com/flex/3/html/help.html?content=13_Working_with_XML_01.html



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!