We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
When trying to parse the following:
<elementType> <multiCheckBox> <checkBoxes> <checkBox> <text>Text 0</text> <answerCode>Code 0</answerCode> </checkBox> </checkBoxes> </multiCheckBox> </elementType>
Using:
NSString *XPath = @"/elementType/multiCheckBox/checkBoxes/checkBox"; ONOXMLElement *checkBoxElement = [self.document firstChildWithXPath:XPath]; ONOXMLElement *textElement = [checkBoxElement firstChildWithTag:@"text"]; ONOXMLElement *answerCodeElement = [checkBoxElement firstChildWithTag:@"answerCode"];
textElement is nil, but answerCodeElement is not nil!
textElement
nil
answerCodeElement
However using firstChildWithXPath: instead of firstChildWithTag: works!
firstChildWithXPath:
firstChildWithTag:
Bit of a weird issue! I've created a few failing test cases the in the associated pull request...
Any ideas? I've gotten around it for now using firstChildWithXPath:, but I can't see anything going wrong :(
Cheers,
Rich
The text was updated successfully, but these errors were encountered:
Failing test cases related to issue mattt#21 - nil is returned when f…
b00285b
…inding 'text' elements with 'firstChildWithTag'
Moving discussion over to #22.
Sorry, something went wrong.
No branches or pull requests
Hi,
When trying to parse the following:
Using:
textElement
isnil
, butanswerCodeElement
is notnil
!However using
firstChildWithXPath:
instead offirstChildWithTag:
works!Bit of a weird issue! I've created a few failing test cases the in the associated pull request...
Any ideas? I've gotten around it for now using
firstChildWithXPath:
, but I can't see anything going wrong :(Cheers,
Rich
The text was updated successfully, but these errors were encountered: