Xmlpath read boolean from PLIST

I have some issues to get the value (true) of the Apple Plist.
I am able to get the string “Authentication” but what ever i tried there is no way to get the boolean of “SettingsValid”. It would be great if you have some tips for me.

q1 := xmlpath.MustCompile("/plist/dict/key[text()='Authentication']/following-sibling::string[1]/text()"

// My XML Demo Data

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">

The path /plist/dict/key[text()=‘SettingsValid’]/following-sibling::*[1]
works fine in regex tester but not in go lang. The result is empty.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.