XML解析错误:XML解析:第1行,第169个字符,等于预期

时间:2016-05-03 05:56:21

标签: sql-server xml

您好我在以下字符串中收到XML分析错误。

如何找到错误。

<ControllerSetupData>
    <MasterSetupData ControllerId="0" ControllerModelId="1" ControllerTypeId="2"
        EcolabAccountNumber="040242802" TabId="0" TopicName="test 78" Factors Multiplier="10"
        ControllerNumber="78" OZSecondMultiplier="10" InjectionQuantityMultiplier="10"
        InstallDate="05/02/2016" Active="false"/>
    <DynamicSetupData>
        <Data ControllerId="0" ControllerModelId="1" FieldGroupId="6" FieldId="21"
            Value="10.225.134.21.1.1" FieldTagValue="" EcolabAccountNumber="040242802"/>
        <Data ControllerId="0" ControllerModelId="1" FieldGroupId="6" FieldId="79" Value="78"
            FieldTagValue="" EcolabAccountNumber="040242802"/>
    </DynamicSetupData>
</ControllerSetupData>

1 个答案:

答案 0 :(得分:2)

的XML中
<ControllerSetupData>
    <MasterSetupData ControllerId="0" ControllerModelId="1" ControllerTypeId="2"
        EcolabAccountNumber="040242802" TabId="0" TopicName="test 78" Factors Multiplier="10"
                                                                      ^^^^^^^

属性名称Factors必须后跟=和值