Click here to Skip to main content
15,918,049 members
Home / Discussions / XML / XSL
   

XML / XSL

 
QuestionUsing XSLT contains() Pin
Rob Grainger4-Jul-08 5:06
Rob Grainger4-Jul-08 5:06 
QuestionColorfull string Pin
half-life2-Jul-08 19:39
half-life2-Jul-08 19:39 
AnswerRe: Colorfull string Pin
led mike3-Jul-08 6:00
led mike3-Jul-08 6:00 
GeneralRe: Colorfull string Pin
half-life3-Jul-08 6:08
half-life3-Jul-08 6:08 
Questionchange the att value and name of a node (Visual C++ && DOM - ) Pin
SimplySane2-Jul-08 7:09
SimplySane2-Jul-08 7:09 
AnswerRe: change the att value and name of a node (Visual C++ && DOM - ) Pin
led mike2-Jul-08 10:11
led mike2-Jul-08 10:11 
GeneralRe: change the att value and name of a node (Visual C++ && DOM - ) Pin
SimplySane6-Jul-08 6:18
SimplySane6-Jul-08 6:18 
GeneralRe: change the att value and name of a node (Visual C++ && DOM - ) Pin
led mike7-Jul-08 11:15
led mike7-Jul-08 11:15 
first why use CString unless you are manipulating the string value?

this should work

pAtt->setAttribute( pAttN->nodeName, pAttN->Gettext());

When you must have a BSTR variable prefer using _bstr_t rather than LPCSTR or
CString<br />
<br />
_bstr_t sname = pAttN->nodeName;<br />
_bstr_t svalue = pAttN->Gettext();<br />
<br />
pAtt->setAttribute(sname,svalue);<br />


Take a look at _bstr_t it has built in conversions to/from BSTRT-LPCTSTR I believe, I haven't worked with this stuff for a couple years now, but I think it's comprehensive, ctors that take either and conversion operators that get either so all you do is cast to the type you want.


led mike

QuestionCalculating DigestValue over URI - URGENT HELP VERY MUCH APPRECIATED Pin
Andy H2-Jul-08 4:34
Andy H2-Jul-08 4:34 
AnswerRe: Calculating DigestValue over URI - URGENT HELP VERY MUCH APPRECIATED Pin
led mike2-Jul-08 4:45
led mike2-Jul-08 4:45 
GeneralRe: Calculating DigestValue over URI - URGENT HELP VERY MUCH APPRECIATED Pin
Andy H2-Jul-08 5:14
Andy H2-Jul-08 5:14 
GeneralRe: Calculating DigestValue over URI - URGENT HELP VERY MUCH APPRECIATED Pin
led mike2-Jul-08 6:36
led mike2-Jul-08 6:36 
GeneralRe: Calculating DigestValue over URI - URGENT HELP VERY MUCH APPRECIATED Pin
Andy H2-Jul-08 10:08
Andy H2-Jul-08 10:08 
GeneralRe: Calculating DigestValue over URI - URGENT HELP VERY MUCH APPRECIATED Pin
led mike2-Jul-08 10:18
led mike2-Jul-08 10:18 
GeneralRe: Calculating DigestValue over URI - URGENT HELP VERY MUCH APPRECIATED Pin
Andy H2-Jul-08 10:46
Andy H2-Jul-08 10:46 
GeneralRe: Calculating DigestValue over URI - URGENT HELP VERY MUCH APPRECIATED Pin
led mike2-Jul-08 11:07
led mike2-Jul-08 11:07 
GeneralRe: Calculating DigestValue over URI - URGENT HELP VERY MUCH APPRECIATED Pin
Andy H2-Jul-08 12:26
Andy H2-Jul-08 12:26 
AnswerRe: Calculating DigestValue over URI - URGENT HELP VERY MUCH APPRECIATED Pin
Andy H3-Jul-08 3:03
Andy H3-Jul-08 3:03 
GeneralRe: Calculating DigestValue over URI - URGENT HELP VERY MUCH APPRECIATED Pin
led mike3-Jul-08 5:58
led mike3-Jul-08 5:58 
GeneralRe: Calculating DigestValue over URI - URGENT HELP VERY MUCH APPRECIATED Pin
Andy H3-Jul-08 6:27
Andy H3-Jul-08 6:27 
GeneralRe: Calculating DigestValue over URI - URGENT HELP VERY MUCH APPRECIATED Pin
led mike3-Jul-08 6:41
led mike3-Jul-08 6:41 
GeneralRe: Calculating DigestValue over URI - URGENT HELP VERY MUCH APPRECIATED Pin
Andy H3-Jul-08 7:56
Andy H3-Jul-08 7:56 
GeneralRe: Calculating DigestValue over URI - URGENT HELP VERY MUCH APPRECIATED Pin
led mike3-Jul-08 8:17
led mike3-Jul-08 8:17 
GeneralRe: Calculating DigestValue over URI - URGENT HELP VERY MUCH APPRECIATED Pin
Andy H3-Jul-08 8:55
Andy H3-Jul-08 8:55 
QuestionHow to add a tag &lt;tag val="N"&gt; to an xml file Pin
SWDevil1-Jul-08 8:57
SWDevil1-Jul-08 8:57 

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.