Quantcast
Channel: MSBuild Extension Pack
Viewing all articles
Browse latest Browse all 1211

Commented Issue: [MSBuild.ExtensionPack.Xml.XmlFile] Adding element to plist file with doctype results in weird '[]' added to the doctype [11119]

$
0
0
I have attached end result plist, you can just remove the "[]" and childbrowser key/value pair and try the code.
Removing the doctype fixed the problem for us.

<ItemGroup>
<CordovaPlistInsert_AddElement Include="dummy">
<Element>key</Element>
<InnerText>ChildBrowser</InnerText>
</CordovaPlistInsert_AddElement>

<CordovaPlistInsert_AddElement Include="dummy">
<Element>string</Element>
<InnerText>ChildBrowserCommand</InnerText>
</CordovaPlistInsert_AddElement>
</ItemGroup>


<MSBuild.ExtensionPack.Xml.XmlFile
TaskAction="AddElement"
File="$(PathToCordovaPlist)"
Element="%(CordovaPlistInsert_AddElement.Element)"
XPath="/plist/dict/dict"
InnerText="%(CordovaPlistInsert_AddElement.InnerText)" />
Comments: Associated with changeset 79392.

Viewing all articles
Browse latest Browse all 1211

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>