amazon web services - XML Format issue for AWS Command cs-configure-from-batches -


i'm using aws cli, in particular cs-configure-from-batches command i'm getting invalid format error per below.

c:\>cs-configure-from-batches -d mysearchdomain --source c:\cloudsearch\awscloudsearchimplementation\xmlminibatch.xml --endpoint cloudsearch.ap-southeast-2.amazonaws.com  --verbose  connecting cloudsearch in region [ap-southeast-2]  sending endpoint [https://cloudsearch.ap-southeast-2.amazonaws.com/] region [ap-southeast-2]  endpoint set cloudsearch.ap-southeast-2.amazonaws.com  analyzing sources. invalid format c:\cloudsearch\awscloudsearchimplementation\xmlminibatch.xml, ignoring. analysis results. 

this xml i'm giving it

<?xml version="1.0" encoding="utf-8"?> <batch>   <add id="96fd3c87-df5c-e511-8167-02cc745dd7d4">     <field name="code">000000000000010000</field>     <field name="description">blah blah</field>     <field name="sprcode">4100</field>     <field name="levelonehierarchy">blah</field>     <field name="leveltwohierarchy">blah</field>   </add> </batch> 

does have sample xml file command accept? or suggestions what's wrong?

this error caused using encoding utf-8, used utf-8 without bom worked! of course, silly me.


Comments

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -