logo

Live Production Software Forums


Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
drklump  
#1 Posted : Tuesday, August 12, 2014 9:21:26 AM(UTC)
drklump

Rank: Newbie

Groups: Registered
Joined: 6/13/2014(UTC)
Posts: 5
Man
Location: Sweden

Was thanked: 2 time(s) in 2 post(s)
Hi,

In an application I'm writing, I'm trying to parse an the XML file provided by the API, and the code I've got thus far is pretty dependent on having the XML schema known.

Would it be possible to get access to a complete XML file, containing everything there can be, or should I rewrite the XML parsing?

Best regards,
Kristoffer
madness  
#2 Posted : Wednesday, August 13, 2014 9:23:21 AM(UTC)
madness

Rank: Advanced Member

Groups: Registered
Joined: 4/16/2013(UTC)
Posts: 406
Man
Location: Iowa

Thanks: 281 times
Was thanked: 32 time(s) in 29 post(s)
Are you using regular expressions to do the parsing? I've actually done some of that and it's much easier than other methods I've used. I've been using Regex in Autohotkey
drklump  
#3 Posted : Thursday, August 14, 2014 9:02:34 AM(UTC)
drklump

Rank: Newbie

Groups: Registered
Joined: 6/13/2014(UTC)
Posts: 5
Man
Location: Sweden

Was thanked: 2 time(s) in 2 post(s)
I used XmlSerializer and a loader class, but I changed to using LINQ instead, which now works perfectly! Thanks anyways!
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.