Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
HELP ME PLZ! nodesForXPath just not working
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
mike  
View profile  
 More options Mar 3 2010, 11:37 am
From: mike <mikeyhard...@gmail.com>
Date: Wed, 3 Mar 2010 08:37:54 -0800 (PST)
Local: Wed, Mar 3 2010 11:37 am
Subject: HELP ME PLZ! nodesForXPath just not working
Hi All,

I have an DDXMLNode 'message' which contains the following XML:

<event xmlns="http://jabber.org/protocol/pubsub#event">
<items node="/xxx/3eeaaab0-fb1f-4ed7-b539-cb2f42ee8f75">
<item id="1PPv7xIGBL4dS9J">
<data xmlns="http://jabber.org/protocol/pubsub">qqq</data>
</item>
</items>
</event>

Im using kissxml with xmppframework. When i use the nodesForXPath like
so to access the data node i get no results returned:

        NSArray *event = [message nodesForXPath:@"//event/items/item/data"
error:&error];

the message node does have the namespace when i do [message
namespaces] registered, but i cant seem to find a way to define a
prefix if thats what i need to do?
I havent a clue what else to try. Please help.

Thanks M


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mike  
View profile  
 More options Mar 3 2010, 12:08 pm
From: mike <mikeyhard...@gmail.com>
Date: Wed, 3 Mar 2010 09:08:11 -0800 (PST)
Local: Wed, Mar 3 2010 12:08 pm
Subject: Re: HELP ME PLZ! nodesForXPath just not working
sorted this with local-name()

Mike

On Mar 3, 4:37 pm, mike <mikeyhard...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »