Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XML not parsing

Status
Not open for further replies.

jonny75904

Programmer
Jun 5, 2007
2
US
I have been frustrated for weeks now because I cannot get this xml string to parse. Can anyone spot the problem?

<?xml version="1.0" ?>
<?qbxml version="6.0"?>
<QBXML>
<QBXMLMsgsRq onError="continueOnError">
<InvoiceAddRq requestID="0">
<InvoiceAdd defMacro="8257-8142">
<ClassRef>
<FullName>City of metropolis</FullName>
</ClassRef>
<ARAccountRef>
<FullName>Accounts Receivable</FullName>
</ARAccountRef>
<TxnDate>2007-06-05</TxnDate>
<RefNumber>8257-8142</RefNumber>
<Memo>ck# 8142</Memo>
<InvoiceLineAdd>
<ItemRef>
<FullName>PPO Savings</FullName>
</ItemRef>
<Desc>jonathan51 | 02000068</Desc>
<Amount>11.24</Amount>
<ServiceDate>2007-02-13</ServiceDate>
<OverrideItemAccountRef>
<FullName>PPO Network</FullName>
</OverrideItemAccountRef>
<Other2>jonathan51 | 02000068</Other2>
</InvoiceLineAdd>
</InvoiceAdd>
</InvoiceAddRq>
</QBXMLMsgsRq>
</QBXML>
 
I figured it out.

The XML was generated by the QuickBooks SDK for use with the Quickbooks WebConnector Web Service.

Although it was returning a parsing error, in reality it was the omission of a required field that was causing the error.

Thanks for looking though. The Intuit forums are fairly worthless as I posted there for two weeks with no replies.

Fight back. Start a Revolution at <a href=" OddMark.com</a>.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top