Do you mean something like this?
<xml>
<tag1 id="foo" />
<tag2 id="goo" />
<tag3 id="foo" />
</xml>
and you want to do a query on all tags that have "foo" as the id?
Is that what you're looking for?
If so, there isn't any way by default with XML for <SCRIPT> but it shouldn't be too hard to build
a recursive search that will go through all the tags and search for an id attribute that matches
your query.
If you really want to get into the code, you could also modify
DOMDocument.prototype.getElementById in xmlw3cdom.js to return what you're looking for. Right now
(by design) it returns the first node it finds with the correct id. It would be fairly simple to
modify that to return an array (or better yet a DOMNodeList) of nodes that match your search
query.
Hope this helps!
Best regards,
David
--- nurti <nu...@em...> wrote:
> Hi,
> Anyone know if is possible make a query on the xml that return a sublist of tag that match with
> gived id?
> If yes How?
>
>
> --
> Email.it, the professional e-mail, gratis per te: http://www.email.it/f
>
> Sponsor:
> Scopri come investire i tuoi risparmi con Manuali.Net!
> Tutti i trucchi ed i segreti in un comodo corso:
> Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=1809&d=20-1
__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus
|