I have been trying to select objects with an attribute @beanIdentity
that has a colon in it. I've tried escaping the colon but that doesn't
work either. When I use another field (like the commented out createdBy
field) I get results. Is there a way to search with string that has a
":" in it? I've tried escaping the colon but that didn't work either.
JXPathContext context = JXPathContext.newContext(container);
//String xpath = "[EMAIL PROTECTED] = 'KUCZUN, LAURIE ']";
String xpath = "[EMAIL PROTECTED] =
'com.mckesson.hcs.poc.author.domain.Ipc:com.mckesson.hcs.poc.author.doma
in.Ipc#62808']";
//String xpath = "[EMAIL PROTECTED] =
'com.mckesson.hcs.poc.author.domain.Ipc:com.mckesson.hcs.poc.author.
domain.Ipc#62808']";
Iterator i = context.iterate(xpath);
while(i.hasNext()) {
IpcV ipc = (IpcV) i.next();
log.debug("Ipc " + ipc.getBeanIdentity());
}
Gordon Pike
Tech Lead, Horizon Expert Plan
McKesson Provider Technologies