Had the same problem here, last time. It fails only when the namespace is at the root element. Never did solve the problem. In the end, we just decided not to support namespaces.
You should have no problems if the namespace declaration is under the root element. Can't remember if the problem is from xerces or xalan. Did some testing last time, but couldn't remember the result. Regards, Calvin Loh ----- Original Message ----- From: "Naveen Srinivasa Murthy" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, April 20, 2001 8:59 PM Subject: Xerces-Xalan XPath utility problem if it is used to parse xml with namespace att > Hello friends, > > I am using xerces-xalan xpath utility to do some elimentary xml > parsing. But im finding that when I am trying to parse an > xml with namespace like > <root xmlns="http://xx.ww.com/aaa"> > </root> > > the parsing fails and i get an empty string result. It is not > throwing any exception, but the result > if I remove that xmlns attribute and then do the xpath parse, > then i get the correct results. > > Any idea of on this limitation? Can u suggest any > workaround if any of u guys have previouly seen this happen? Is there > any extra care to be taken when we parse xml with namespaces? > > Thanks and regards > Naveen > > > Get 250 color business cards for FREE! > http://businesscards.lycos.com/vp/fastpath/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
