Hey there I think I know this one. (Havent tryied it out yet).
In my Post "OT : Xalan-question" my problem basiclly is the same, and I think I found the answer in the faq. ( http://xml.apache.org/xalan-j/faq.html#faq-11 ) You'll have to add a prefix to your namespace, and use that prefix in the XPath. Default namespaces sucks when using XPath... I could still use a xalan mailinglist though... _\|/_ (@ @) -------------oOOo-(_)-oOOo------------ Ren� Jensen [EMAIL PROTECTED] -------------------------------------------- ----- Original Message ----- From: "Naveen Srinivasa Murthy" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, April 20, 2001 2: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]
