>>I get this raw string (see attached) when I draw up the customFields in the customers table of quickbooks. Is there a "best practices" way to decode/encode this into/from a customFieldsObject{string countryIsocode; string companyId}, or is it ok if use "brute force" string manipulations in this instance.
>>
>>And is it just me, or this _not_ a well formed xml, there should be (at least) encapsulating customFields tags no, for this to be submitted to xml encoding/decoding routines.
>
>I typically use the XDocument and XElement classes to parse the QuickBooks XML. It does appear to be well formed XML. The CustomField element contains Name and Value elements. The CustomField element can repeat. As far as I know repeating elements do not need to be enclosed in a separate structure.
Hi Rob, many thanks for your answer.
I did try it what you suggested, it would be my preferred approach, but it complained that "the root is not unique". which is why I had my doubt about the well formedness of the xml.
If things have the tendency to go your way, do not worry. It won't last. Jules Renard.