Ok, here's an example:


I have any number of xml documents, which may be structured in different ways, and I need to select every "translate" node from all levels. I also need to query attributes in those nodes. That's probably the bulk of it. However, I do plan to introduce more complex XML structures with more functionality, so I'd like to get as much flexibility as possible, although I do think the full XPath library is overkill in this case.

Here are some sample queries:

XPath.selectNodes(xmlDoc,"//translate");
XPath.selectNodes(xmlDoc,"//@id");

That should pretty much do it for now.

Alias


On 9/2/05, Peter Hall <[EMAIL PROTECTED]> wrote:
What kinds of xpath queries are you using? You could use 99% of the functionality, by using that one method, depending on the
queries you use...

Peter

www.peterjoel.com


----- Original Message -----
From: "Alias" <[EMAIL PROTECTED]>
To: "Open Source Flash Mailing List" < [email protected]>
Sent: Friday, September 02, 2005 1:34 PM
Subject: [osflash] Creating a slimmed down version of the XfactorstudioXPath library


Hi guys,

I just wanted to see if anyone had any experience with this - I'm currently
using the XFactorStudio XPath library, and it's proved invaluable. However,
I get the feeling that I'm only using a small percentage of its
functionality, and I need to shave off as much filesize from this project as
possible. I'm considering doing a lightweight version of the library - I'm
really only using the XPath.selectNodes method, and I'm wondering if it's
possible to separate this out from the rest of the library.

Has anyone tried this, or is anyone able to point me in the right direction?

Cheers,
Alias



--------------------------------------------------------------------------------


> _______________________________________________
> osflash mailing list
> [email protected]
> http://osflash.org/mailman/listinfo/osflash_osflash.org
>


_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to