-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi David,
I can not properly understand what your concern is, but I can try to give insights in to the methods you proposed. I introduced the getText util method to get the aggregation of all the texts that can be found under an OMElement. There are couple of things that qualify as OMTexts and MTOMized input streams and namespace qualified texts are some of them. So wherever you introduce those methods you will endup writing the same code which OMText contains now. I am just trying to comments on your proposals. If you can give me some more hints on the problem at hand, I might be able to help as I know a little bit of both Axiom and addressing :). Thanks, Chinthaka David Illsley wrote: > Hi all, > I've been looking at the work that occurs for OMElement.getText() > which is currently used by the Axis2 addressing handlers to extract > the (text) values of certain headers (wsa:To, wsa:Action, > wsa:MessageID). > > I've noticed that this delegates to OMTextImpl.getText() which then > does some fancy processing to identify QNames and expand > prefix:localname to namespace:localname > > The values in these headers are generally http or urn URIs, hence > getText() finds the ":" and looks for an associated namespace. > > This leads to a couple of concerns > 1. The value returned may not be what we're looking for if an > xmlns:http="" or xmlns:urn="" is in scope. This is a very real > problem. > 2. In the 99% case where not such declarations are in scope, the > string is being indexOf()'d and a lookup done when there is probably > nothing to find. > > It appears that I could access the value directly by calling > OMText.getTextCharacters()? However, I'd then have to replicate the > code in OMElement to find the OMText node which I'd prefer not to do. > Would the Axiom team consider adding a char[] getTextCharacters() or > String getActualText() to OMElement? > > Cheers, > David > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF7hyWjON2uBzUhh8RAkJIAJ4siThFKyCvQoXoE3XEU5Cdq11v/gCgp63J e7F59XkCHFOmvpUZN8QgHVo= =hYfH -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
