也许有人可以在这里帮助我,我想从Quickbooks获得所有的工资详细信息,但我得到0x80040400错误说QuickBooks found an error when parsing the provided XML text stream.
当我执行其他查询时,它只适用于这个查询,我得到了这个错误。
下面是我发送给QB的XML:
<?qbxml version="7.0"?>
<QBXML>
<QBXMLMsgsRq onError="stopOnError">
<PayrollDetailReportQueryRq>
<PayrollDetailReportType>PayrollTransactionDetail</PayrollDetailReportType>
<DisplayReport>true</DisplayReport>
<ReportDateMacro>All</ReportDateMacro>
<ReportClassFilter>
<FullName>Name</FullName>
</ReportClassFilter>
<ReportModifiedDateRangeMacro>All</ReportModifiedDateRangeMacro>
<ReportDetailLevelFilter>All</ReportDetailLevelFilter> <!-- opt, v3.0 -->
</PayrollDetailReportQueryRq>
</QBXMLEvents>
</QBXML>发布于 2014-01-15 00:27:17
即使验证工具在没有xml版本信息的情况下验证文件,也需要包括xml版本信息。下面是我用来生成报告的代码:
<?xml version="1.0" encoding="utf-8"?>
<?qbxml version="7.0"?>
<QBXML>
<QBXMLMsgsRq onError = "stopOnError">
<PayrollDetailReportQueryRq>
<PayrollDetailReportType>PayrollTransactionDetail</PayrollDetailReportType>
<DisplayReport>true</DisplayReport>
<ReportDateMacro>All</ReportDateMacro>
<ReportClassFilter>
<FullName>Name</FullName>
</ReportClassFilter>
<ReportModifiedDateRangeMacro>All</ReportModifiedDateRangeMacro>
<ReportDetailLevelFilter>All</ReportDetailLevelFilter>
</PayrollDetailReportQueryRq>
</QBXMLMsgsRq>
</QBXML>发布于 2014-01-14 05:02:26
您有没有尝试过XML Validator,看看它说了什么?
Line: 14
LinePos: 5
Src Text: </QBXMLEvents>
Reason: End tag 'QBXMLEvents' does not match the start tag 'QBXMLMsgsRq'.您的文档不是有效的XML。修复结束标记<QBXMLEvents>,使其与开始标记QBXMLMsgsRq匹配。
https://stackoverflow.com/questions/21099750
复制相似问题