Click here to Skip to main content
15,885,954 members
Home / Discussions / C#
   

C#

 
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 
AnswerRe: C# use linq to parse xml Pin
V.29-Aug-12 2:00
professionalV.29-Aug-12 2:00 
GeneralRe: C# use linq to parse xml Pin
dcof29-Aug-12 10:56
dcof29-Aug-12 10:56 
Questionif webbrowser hangs, then retry, how to check if hanging c# Pin
Member 938944428-Aug-12 13:52
Member 938944428-Aug-12 13:52 
AnswerRe: if webbrowser hangs, then retry, how to check if hanging c# Pin
Shameel28-Aug-12 14:54
professionalShameel28-Aug-12 14:54 
GeneralRe: if webbrowser hangs, then retry, how to check if hanging c# Pin
Member 938944428-Aug-12 16:26
Member 938944428-Aug-12 16:26 
AnswerRe: if webbrowser hangs, then retry, how to check if hanging c# Pin
Shameel28-Aug-12 19:30
professionalShameel28-Aug-12 19:30 
AnswerRe: if webbrowser hangs, then retry, how to check if hanging c# Pin
Eddy Vluggen28-Aug-12 23:09
professionalEddy Vluggen28-Aug-12 23:09 
GeneralRe: if webbrowser hangs, then retry, how to check if hanging c# Pin
Member 88893234-Sep-12 3:52
Member 88893234-Sep-12 3:52 

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.