my dog learned polymorphism
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

Win a copy of Building Microservices this week in the Design forum!
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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Problem in XPath
It's not a secret anymore!