I've come across the following xml when dealing with Quickbooks xml integration:
<?xml version="1.0" ?>
<?qbxml version="5.0" ?>
<QBXML>
<QBXMLMsgsRq onError="stopOnError">
<CustomerQueryRq requestID="5001" iterator="Start">
<MaxReturned>10</MaxReturned>
<IncludeRetElement>ListID</IncludeRetElement>
</CustomerQueryRq>
</QBXMLMsgsRq>
</QBXML>
I'm familiar with the <?xml ...?>
declaration, but I'm confused with the <?qbxml version="5.0" ?>
part. I'm assuming this the xml version that Quickbooks understands. Is this xml valid? Can it be managed with regular java parsers and transformer?
I've tried loading the xml with the regular DocumentBuilderFactory and generating output with TransformerFactory but the <?qbxml ...?>
gets lost in the process. Any ideas on how do I need to configure the builders and transformers in order to maintain the <?qbxml ...?>
declaration?