Click here to Skip to main content
15,906,628 members
Home / Discussions / C#
   

C#

 
GeneralRe: Blank lines in a rich text box from a Serial Device, am I getting rid of them correctly..... Pin
glennPattonWork329-Aug-12 5:42
professionalglennPattonWork329-Aug-12 5:42 
GeneralRe: Blank lines in a rich text box from a Serial Device, am I getting rid of them correctly..... Pin
glennPattonWork329-Aug-12 6:14
professionalglennPattonWork329-Aug-12 6:14 
GeneralRe: Blank lines in a rich text box from a Serial Device, am I getting rid of them correctly..... Pin
PIEBALDconsult29-Aug-12 6:54
mvePIEBALDconsult29-Aug-12 6:54 
GeneralRe: Blank lines in a rich text box from a Serial Device, am I getting rid of them correctly..... Pin
glennPattonWork329-Aug-12 22:01
professionalglennPattonWork329-Aug-12 22:01 
GeneralRe: Blank lines in a rich text box from a Serial Device, am I getting rid of them correctly..... Pin
glennPattonWork329-Aug-12 23:19
professionalglennPattonWork329-Aug-12 23:19 
QuestionExtract excel from SQLDB Pin
dabuskol29-Aug-12 2:31
dabuskol29-Aug-12 2:31 
AnswerRe: Extract excel from SQLDB Pin
Eddy Vluggen29-Aug-12 2:42
professionalEddy Vluggen29-Aug-12 2:42 
GeneralRe: Extract excel from SQLDB Pin
dabuskol29-Aug-12 2:45
dabuskol29-Aug-12 2:45 
GeneralRe: Extract excel from SQLDB Pin
Eddy Vluggen29-Aug-12 3:01
professionalEddy Vluggen29-Aug-12 3:01 
Questionworking with xml Pin
sc steinhayse29-Aug-12 2:27
sc steinhayse29-Aug-12 2:27 
AnswerRe: working with xml Pin
Pete O'Hanlon29-Aug-12 2:35
mvePete O'Hanlon29-Aug-12 2:35 
GeneralRe: working with xml Pin
sc steinhayse29-Aug-12 3:49
sc steinhayse29-Aug-12 3:49 
GeneralRe: working with xml Pin
Pete O'Hanlon29-Aug-12 4:04
mvePete O'Hanlon29-Aug-12 4:04 
QuestionHow to get print from Zebra printng machine Tpl 2844 Pin
Mohammed Abdul Muqeet28-Aug-12 20:03
Mohammed Abdul Muqeet28-Aug-12 20:03 
AnswerRe: How to get print from Zebra printng machine Tpl 2844 Pin
Pete O'Hanlon28-Aug-12 23:08
mvePete O'Hanlon28-Aug-12 23:08 
QuestionC# take xml and store in sql server Pin
dcof28-Aug-12 18:00
dcof28-Aug-12 18:00 
I am writing a C# 2010 application where I am obtaining a response from a web service and placing the data into a string called XmlizedString listed below.

// Method used to Serialize C# Objects into XML
        private string serializeXML(object objToSerialize)
        {
            String XmlizedString = null;
            MemoryStream mStream = new MemoryStream();
            XmlSerializer xs = new XmlSerializer(objToSerialize.GetType());

            XmlTextWriter xmlTextWriter = new XmlTextWriter(mStream, Encoding.UTF8);
            xs.Serialize(xmlTextWriter, objToSerialize);
            mStream = (MemoryStream)xmlTextWriter.BaseStream;
            XmlizedString = U8ByteArrayToString(mStream.ToArray());
           

 // Method used to Convert UTF8 ByteArray into a String
        private String U8ByteArrayToString(Byte[] characters)
        {

            UTF8Encoding encoding = new UTF8Encoding();
            String conString = encoding.GetString(characters);
            return (conString);
        }

My next step is to place what I have in the field called XmlizedString
into one or two sql server 2008 database tables.
Thus my question is how would you parse out the data that is in the
XmlizedString? Would you save the data to a text file?
Basically can you tell me how you would take the XmlizedString data and
get the parts I need for the database? I do not want to keep calling the
web service.
AnswerRe: C# take xml and store in sql server Pin
PIEBALDconsult28-Aug-12 19:19
mvePIEBALDconsult28-Aug-12 19:19 
AnswerRe: C# take xml and store in sql server Pin
BobJanova28-Aug-12 23:39
BobJanova28-Aug-12 23:39 
GeneralRe: C# take xml and store in sql server Pin
sc steinhayse29-Aug-12 3:51
sc steinhayse29-Aug-12 3:51 
GeneralRe: C# take xml and store in sql server Pin
BobJanova29-Aug-12 4:52
BobJanova29-Aug-12 4:52 
AnswerRe: C# take xml and store in sql server Pin
V.29-Aug-12 2:04
professionalV.29-Aug-12 2:04 
GeneralRe: C# take xml and store in sql server Pin
sc steinhayse29-Aug-12 3:51
sc steinhayse29-Aug-12 3:51 
AnswerRe: C# take xml and store in sql server Pin
jschell30-Aug-12 8:59
jschell30-Aug-12 8:59 
QuestionC# use linq to parse xml Pin
dcof28-Aug-12 17:28
dcof28-Aug-12 17:28 
AnswerRe: C# use linq to parse xml Pin
PIEBALDconsult28-Aug-12 19:21
mvePIEBALDconsult28-Aug-12 19:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.