QBXML 上 LineItemAdd 的 Desc 字段是否有任何字符限制

Is there any character restrictions for the Desc field for LineItemAdd on QBXML

我收到此 InvoiceAddRq 的一般外观错误

0x80040400: QuickBooks found an error when parsing the provided XML text stream.

xml 中唯一不寻常的部分似乎是 LineItem 描述(包含 /& 个字符):

<InvoiceLineAdd>
        <ItemRef>
            <FullName>Other</FullName>
        </ItemRef>
        <Desc>Memorial Installation/Layout Inspection fee for John & Jane Doe by Acme Monuments</Desc>
        <Quantity>1</Quantity>
        <Amount>300.00</Amount>
        <SalesTaxCodeRef>
            <FullName>NON</FullName>
        </SalesTaxCodeRef>
    </InvoiceLineAdd>

'Onscreen Reference for Intuit Software Development Kits' 表示 Desc 属于 STRTYPE 并且最多可以包含 4000 个字符

我似乎无法弄清楚是什么触发了这个错误?我所有其他发票似乎都在查找中。

新尝试: @William Lorfing 建议编码,所以我在 Desc 输入上使用了 PHP htmlentities() 发送了这个:

 <Desc>Memorial Installation/Layout Inspection fee for John &amp; Jane Smith by Acme Monuments</Desc>

正斜杠是否也可能需要不同的 PHP 编码?

确保您使用的是编码。有关详细信息,请参阅 Consolibyte 网站 - http://wiki.consolibyte.com/wiki/doku.php/quickbooks_qbxml_questions