Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Quickbooks CustomFields blues
Message
General information
Forum:
ASP.NET
Category:
XML
Environment versions
Environment:
C# 4.0
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01613140
Message ID:
01613191
Views:
46
It's not valid XML actually - there should be a root node.

I think the .NET XML parsers can deal with this if you import the XML as a fragment (or a NodeList) and not as document.

Since you're dealing with a string you can also add the root node yourself by prepending/appending < doc >< /doc > before loading the XML.

+++ Rick ---

>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.
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform