Closed GoogleCodeExporter closed 8 years ago
Original comment by peterj...@gmail.com
on 4 Apr 2009 at 2:24
There is already a property XPathContext.openAllNamespaces, which does a part
of this.
In the version of the flash player that was current when this library was
written,
there was a problem with XML in AS3 where it renamed namespace prefixes
internally.
It meant you couldn't reliably get the original prefix, nor you tell which is
the
default namespace (ie no prefix).
Since then, it seems to behave better, but I haven't had that officially
confirmed,
and I don't know exactly in which version of the Flash Player this can be
depended upon.
So I'm going to look into this and see if we can do something.
Original comment by peterj...@gmail.com
on 4 Apr 2009 at 2:26
I've added a flag, XPathContext.useSourceNamespacePrefixes, which defaults to
false.
Setting it to true will activate the feature and cause the source prefixes (and
default namespaces) to be available to XPath.
This will require some testing still. I've put a request in the forum for
feedback
also on the choice of name and default value.
Original comment by peterj...@gmail.com
on 11 Apr 2009 at 12:32
Original issue reported on code.google.com by
clintdoriot@gmail.com
on 26 Sep 2008 at 3:25