Unfortunately, I don't think the module will work. I need the output to look something like:

<?xml version="1.0" standalone="no"?> <!DOCTYPE QBXML PUBLIC '-//INTUIT//DTD QBXML QBD 1.1//EN'> <QBXML> <QBXMLMsgsRq onError="stopOnError"> <TimeTrackingAddRq requestID="1"> <TimeTrackingAdd> <TxnDate>2003-01-01</TxnDate> <EntityRef> <ListID>40000-1022206382</ListID> </EntityRef> <CustomerRef> <FullName>Cahoots Sports Bar &amp; Grill</FullName> </CustomerRef> <ItemServiceRef> <FullName>AR</FullName> </ItemServiceRef> <Duration>PT00H01M</Duration> </TimeTrackingAdd> </TimeTrackingAddRq> </QBXMLMsgsRq> </QBXML>

For each line, a separate XML needs to be sent to QB because QB is a little quirky with their errors, even if I change "stopOnError" to "continueOnError". I also need to do things with the data before it goes to XML (the Duration and Date are formatted from something else to what you see in the data)

The module you recommended produces something like:

<records> <record> <Customer>Cahoots Sports Bar &amp; Grill</Customer> <Service>AP</Service> <Duration>PT00H01M</Duration> <Date>2003-01-01</Date> </record> <record> <Customer>Cahoots Sports Bar &amp; Grill</Customer> <Service>AP</Service> <Duration>PT00H01M</Duration> <Date>2003-01-01</Date> </record> <record> <Customer>Cahoots Sports Bar &amp; Grill</Customer> <Service>AR</Service> <Duration>PT00H01M</Duration> <Date>2003-01-01</Date> </record> </records>

And I'm a little confused by the documentation. But I will keep trying with this module anyway. I'm sure I'm missing some kind of customization point or hack to make it work the way I need it to.


In reply to Re: Re: DBI and Win32::OLE Conflict? by Anonymous Monk
in thread DBI and Win32::OLE Conflict? by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.