aspose file tools*
The moose likes XML and Related Technologies and the fly likes XML Path creation error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XML Path creation error" Watch "XML Path creation error" New topic
Author

XML Path creation error

Shanky Sohar
Ranch Hand

Joined: Mar 17, 2010
Posts: 1051



Hi everybody i am facing the error while creating a path that


JXPath can only create a path if it uses exclusively the child:: and attribute:: axes and has no context-dependent predicates
at org.apache.commons.jxpath.ri.JXPathContextReferenceImpl.createPathAndSetValue


scenerio is i am trying to map a value
like

Running =5
to
a particular XML location,but it is again and again throughing the same error shown above

Could anuyone tell me from where this is occuring,
i am expecting some error in xsd,


SCJP6.0,My blog Ranchers from Delhi
Shanky Sohar
Ranch Hand

Joined: Mar 17, 2010
Posts: 1051

the above error is solved but now i am facing errror "Factory is not set on the JXPathContext - cannot create path"

It been very long i stuck on the same issue please help me out with this,
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10263
    
168

Please post the relevant code and the entire exception stacktrace.

[My Blog] [JavaRanch Journal]
Shanky Sohar
Ranch Hand

Joined: Mar 17, 2010
Posts: 1051


org.apache.commons.jxpath.JXPathException - Exception trying to create xpath /m_content/apps/producer/myclient/runs/comp_money/assumed_month/content; Factory is not set on the JXPathContext - cannot create path: /m_content/apps/producer/myclient/runs/comp_money
Shanky Sohar
Ranch Hand

Joined: Mar 17, 2010
Posts: 1051

please ignore this quote
Shanky Sohar
Ranch Hand

Joined: Mar 17, 2010
Posts: 1051

Factory is not set on the JXPathContext - cannot create path

Could any body tell me why this error occurs.i search a lot but not able to find how to resolve this.
Shanky Sohar
Ranch Hand

Joined: Mar 17, 2010
Posts: 1051

comp_money

This tag is coming null,can anybody tell me,how can i correct it
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9313
    
  17

It looks like you want people to shoot in the dark. You were asked to post the relevant code which you've not done. I'm personally even confused what the problem is, are you still getting an exception?? Where this comp_money is, how you are setting it, why is it null, this is all a mystery as long as there is no code to see...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: XML Path creation error