QuickBooks在传递值时解析提供的XML文本流时发现错误

2024-06-16 11:18:22 发布

您现在位置:Python中文网/ 问答频道 /正文

我一直在研究QuickBooks与python的集成,当从python在QB桌面上创建值时,我遇到了一个错误“QuickBooks在解析提供的XML文本流时发现了一个错误”。 我的xml输入是

<?xml version='1.0' encoding='UTF-8'?>
<?qbxml version="8.0"?>
<QBXML>
  <QBXMLMsgsRq onError="stopOnError">
    <ItemInventoryAddRq>
      <ItemInventoryAdd>
        <Name>Pencil</Name>
        <IncomeAccountRef>
          <FullName>Other Expenses</FullName>
        </IncomeAccountRef>
        <AssetAccountRef>
          <FullName>Inventory Asset</FullName>
        </AssetAccountRef>
        <COGSAccountRef>
          <FullName>Cost of Goods Sold</FullName>
        </COGSAccountRef>
      </ItemInventoryAdd>
    </ItemInventoryAddRq>
  </QBXMLMsgsRq>
</QBXML>

我需要知道,为什么会发生这种错误,以及如何克服这种错误


Tags: nameversion错误xml桌面上quickbooksfullnameqb