Click here to Skip to main content
15,908,834 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralQuestion on xml encoding in C#, Pin
Bugoy9-Jan-03 10:29
Bugoy9-Jan-03 10:29 
GeneralRe: Question on xml encoding in C#, Pin
Michael A. Barnhart11-Jan-03 12:25
Michael A. Barnhart11-Jan-03 12:25 
QuestionHow to convert data in MFC object to XML Pin
The_wind8-Jan-03 19:21
The_wind8-Jan-03 19:21 
AnswerRe: How to convert data in MFC object to XML Pin
Michael A. Barnhart11-Jan-03 12:27
Michael A. Barnhart11-Jan-03 12:27 
GeneralUsing MSXML from C++ Pin
me7-Jan-03 19:35
me7-Jan-03 19:35 
GeneralRe: Using MSXML from C++ Pin
Michael A. Barnhart11-Jan-03 12:22
Michael A. Barnhart11-Jan-03 12:22 
GeneralRe: Using MSXML from C++ Pin
me12-Jan-03 12:36
me12-Jan-03 12:36 
GeneralRe: Using MSXML from C++ Pin
Michael A. Barnhart12-Jan-03 13:40
Michael A. Barnhart12-Jan-03 13:40 
Here is some code I did awhile back.
You need to remove nondisplay as well as conflicting characters from the display.

CString EnCodeStr(CString ToCode)
{
CString RetStr,AddStr;
int i,max;
unsigned short asc;
unsigned char c;
max = (unsigned int)ToCode.GetLength();
// For binary you need to send the length, The block could have zeros
for(i=0;i<max;i++)
{
c =="" tocode[i];
asc="c;
if(asc">47 && asc<58)
{
RetStr+=c;
}
else if(asc>64 && asc<91)
{
RetStr+=c;
}
else if(asc>96 && asc<123)
{
RetStr+=c;
}
else if(asc==32)
{
RetStr+="+";
}
else
{
AddStr.Format("%%%02x",asc);
RetStr+=AddStr;
}
}
return RetStr;
}

CString DeCodeStr(CString ToCode)
{
CString RetStr,AddStr;
int i,max;
unsigned short asc;
unsigned char c;
max = (unsigned int)ToCode.GetLength();
for(i=0;i<max;)
{
c =="" tocode[i];
asc="c;
if(asc==37)
{
AddStr=ToCode.Mid(i+1,2);
i+=3;
sscanf((LPCTSTR)AddStr,"%2x",&asc);
RetStr+=(char)asc;
}
else" if(asc="=43)
{
RetStr" +=" " ;
i++;
}
else
{
retstr="" retstr;
}

for="" smaller="" blocks="" that="" you="" mention="" this="" should="" be="" ok.

now="" i="" am="" assuming="" a="" mfc="" solution="" is="" ok.
to="" get="" the="" data="" into="" string="" one="" option="" to="" use="" cmemfile="" detach()="" and="" attach()="" functions.

sorry="" do="" not="" have="" time="" sample.="" would="" think="" could="" search="" on="" above.

=""

<b="">"I will find a new sig someday."
GeneralRe: Using MSXML from C++ Pin
me12-Jan-03 13:59
me12-Jan-03 13:59 
GeneralRe: Using MSXML from C++ Pin
Michael A. Barnhart12-Jan-03 14:24
Michael A. Barnhart12-Jan-03 14:24 
GeneralRe: Using MSXML from C++ Pin
Retsof Nawor12-Jan-03 17:58
Retsof Nawor12-Jan-03 17:58 
GeneralRe: Using MSXML from C++ Pin
me12-Jan-03 18:50
me12-Jan-03 18:50 
GeneralRe: Using MSXML from C++ Pin
Michael A. Barnhart13-Jan-03 13:03
Michael A. Barnhart13-Jan-03 13:03 
GeneralHuman readable XML Pin
michaKFromParis7-Jan-03 6:42
michaKFromParis7-Jan-03 6:42 
GeneralRe: Human readable XML Pin
Michael A. Barnhart11-Jan-03 12:14
Michael A. Barnhart11-Jan-03 12:14 
GeneralPlease Help: I cannot figure this out Pin
lnong23-Dec-02 1:59
lnong23-Dec-02 1:59 
GeneralSaving HTML Form Data to XML....... Need Help...... Pin
zhixiong19-Dec-02 19:12
zhixiong19-Dec-02 19:12 
GeneralRe: Saving HTML Form Data to XML....... Need Help...... Pin
Victor Boctor22-Dec-02 13:06
Victor Boctor22-Dec-02 13:06 
GeneralMSXML 4.0 deployment Pin
act_x19-Dec-02 9:13
act_x19-Dec-02 9:13 
GeneralRe: MSXML 4.0 deployment Pin
Richard Deeming20-Dec-02 0:34
mveRichard Deeming20-Dec-02 0:34 
GeneralRe: MSXML 4.0 deployment Pin
Michael A. Barnhart20-Dec-02 1:11
Michael A. Barnhart20-Dec-02 1:11 
GeneralRe: MSXML 4.0 deployment Pin
act_x20-Dec-02 4:36
act_x20-Dec-02 4:36 
GeneralRe: MSXML 4.0 deployment Pin
Michael A. Barnhart20-Dec-02 5:14
Michael A. Barnhart20-Dec-02 5:14 
GeneralDTD Repository Pin
Victor Boctor18-Dec-02 17:04
Victor Boctor18-Dec-02 17:04 
GeneralRe: DTD Repository Pin
Christian Graus18-Dec-02 17:24
protectorChristian Graus18-Dec-02 17:24 

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.