-
Notifications
You must be signed in to change notification settings - Fork 587
New issue
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
Xml.PokeInnerText mangles DOCTYPE definition #1692
Comments
Can you provide a minimal XML sample and the |
Here's some example XML (Info.plist): <?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">
<dict>
<key>CFBundleIdentifier</key>
<string>foo</string>
</dict>
</plist> Here's an example target: Target.Create "testing" (fun _ ->
let plist = srcDir @@ "UI.iOS/Info.plist"
let bundleIdentifier = "whateva"
Xml.PokeInnerText plist "plist/dict/key[text()='CFBundleIdentifier']/following-sibling::string" bundleIdentifier
) And here's the (invalid) output: <?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">
<dict>
<key>CFBundleIdentifier</key>
<string>whateva</string>
</dict>
</plist> |
This is kind of an unfortunate side-effect of using
I changed it in a way that without |
Description
In migrating to FAKE 5, I've switched from
XmlPokeInnerText
toXml.PokeInnerText
. However, the result is that my XML is now left in an invalid state:BEFORE:
AFTER:
Repro steps
Please provide the steps required to reproduce the problem
DOCTYPE
definition usingXml.PokeInnerText
Expected behavior
Should act same as old
XmlPokeInnerText
.Actual behavior
Breaks the XML.
Known workarounds
Use old API.
The text was updated successfully, but these errors were encountered: