File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Problem in XPath Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Problem in XPath" Watch "Problem in XPath" New topic

Problem in XPath

Abhijit Das
Ranch Hand

Joined: Sep 25, 2007
Posts: 156
Is there any condition to parse a XML file by using XPath APIs?
I have a .xml file with the following heading ( it is .xpdl file generated from BPMN).

The Above file is not parseing. My codeing is

But, once I change the attribute of <Package> elment by xmlns:journal=""

It works fine.

What is the condition for parsing with XPath APIs?


Abhijit Das
SCJP 5.0 | SCWCD 1.5
I agree. Here's the link:
subject: Problem in XPath
It's not a secret anymore!