Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development > iPhone SDK Development - Advanced Discussion

Reply
 
LinkBack Thread Tools Display Modes
Old 05-09-2011, 11:58 AM   #1 (permalink)
Registered Member
 
Join Date: Sep 2010
Posts: 324
mariano_donati is on a distinguished road
Default How to create a xpath context from a node - libxml

I need to evaluate a xpath expression within a given node context, not the entire document. I'm able to create the document context with xmlXPathNewContext. However it expects a document pointer and I can't find a similar function to accept any node pointer and returns a valid xpath context.
Is there any? I could find this:

Code:
xmlXPathNewParserContext(const xmlChar *str, xmlXPathContextPtr ctxt)
But I can't figure it out the right parameters.
mariano_donati is offline   Reply With Quote
Old 07-05-2011, 06:57 AM   #2 (permalink)
Registered Member
 
franium's Avatar
 
Join Date: Nov 2010
Posts: 68
franium is on a distinguished road
Default

Quote:
Originally Posted by mariano_donati View Post
I need to evaluate a xpath expression within a given node context, not the entire document. I'm able to create the document context with xmlXPathNewContext. However it expects a document pointer and I can't find a similar function to accept any node pointer and returns a valid xpath context.
Is there any? I could find this:

Code:
xmlXPathNewParserContext(const xmlChar *str, xmlXPathContextPtr ctxt)
But I can't figure it out the right parameters.
Did you succeed in finding a solution?
I'm trying to modify the Matt Gallagher functions and I need something like xmlXPathNewContext on a xmlNodePtr.
Thanks in advance,
Fran
franium is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 395
20 members and 375 guests
Absentia, AyClass, baja_yu, checkright, Diligent, dre, epaga, fvisticot, givensur, jbro, jPuzzle, momolgtm, Newbie123, Punkjumper, revg, sacha1996, skrew88, taylor202, tomtom100
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,643
Threads: 94,110
Posts: 402,858
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Diligent
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 04:37 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0