Hi, I am using your cloud SDK. I receive an XML same as mentioned in your API Reference docs here http://ocrsdk.com/documentation/apireference/processBusinessCard/

The question is how do I convert it to my user object in c#

This is my user class for your reference

public class User { public string Phone { get; set; } public string Email { get; set; }

    public string Name { get; set; }
    public string Company { get; set; }

    public string Job { get; set; }

    public string Text { get; set; }


Thanks ST

asked 28 Jan '15, 15:24

supreet's gravatar image


To add to my question this is the code I use to download from the URL & get the text data

var webClient = new WebClient(); webClient.Encoding = Encoding.UTF8; webClient.DownloadStringCompleted += (s, e) => { try { var text = e.Result; } }

(28 Jan '15, 15:28) supreet

& following is a text representation that I finally get in text variable above

<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>\r\n<document xmlns:xsi="\\"http://www.w3.org/2001/XMLSchema-instance\\"" xsi:schemalocation="\\"http://ocrsdk.com/schema/recognizedBusinessCard-1.0.xsd" <a="" href="http://ocrsdk.com/schema/recognizedBusinessCard-1.0.xsd\\" "="">http://ocrsdk.com/schema/recognizedBusinessCard-1.0.xsd\\" xmlns=\\"http://ocrsdk.com/schema/recognizedBusinessCard-1.0.xsd\\">\r\n <businesscard>\r\n <field type="\\"Phone\\"">\r\n <value>+91-8602-005-268</value>\r\n </field>\r\n <field type="\\"Email\\"">\r\n <value>kunal.chowdhury@taritas.com</value>\r\n </field>\r\n <field type="\\"Name\\"">\r\n <value>Kunal Chowdhury</value>\r\n </field>\r\n <field type="\\"Company\\"">\r\n <value>taritas</value>\r\n </field>\r\n <field type="\\"Job\\"">\r\n <value>Technical Lead</value>\r\n </field>\r\n <field type="\\"Text\\"">\r\n <value>KUNAL CHOWDHURY\r\nTechnical Lead\r\nQ +91-8602-005-268\r\n© kunal.chowdhury@taritas.com\r\n?</value>\r\n </field>\r\n </businesscard>\r\n</document>

(28 Jan '15, 15:28) supreet

any updates on this please. We are still stuck here. Thanks

(02 Feb '15, 09:50) supreet


answered 02 Feb '15, 18:09

Lilya%20Chesnova's gravatar image

Lilya Chesnova ♦♦


Above link are not working, Could you please recheck and send it again.


(01 Oct '15, 13:18) Sameer Arya

Hi, the link is OK.

(01 Oct '15, 15:49) Oksana Serdyuk ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 28 Jan '15, 15:24

Seen: 1,582 times

Last updated: 01 Oct '15, 15:49

© 2016 ABBYY. All rights Reserved. www.ABBYY.com | Privacy Policy | Legal