Added nodeForXpath:namespaceMapping:error method #26

merged 1 commit into from Mar 31, 2014


None yet

2 participants


Hello there,

I'm writing an iOS application parsing some XML with many namespaces and I've been looking very often for single nodes in my XML documents.

I was told to use the method nodesForXpath:namespaceMappings:error: method to work with namespaces, and I found out the nodeForXpath:error: method not resolving the namespaces but returning a single node instead of an array. So I ended up writing a similar method but resolving namespaces as well.

I also took the liberty of changing the @implementation statement to match the one in the header file and in the filenames.

I'm completely new to Objective-C so please tell me if I did something wrong.


@schwa schwa merged commit 391d93c into TouchCode:feature/ARC Mar 31, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment