Click here to Skip to main content
15,920,602 members
Home / Discussions / XML / XSL
   

XML / XSL

 
AnswerRe: How to make conditions or filter the xml node using XSL Pin
Riaan Lehmkuhl6-Jul-08 19:53
professionalRiaan Lehmkuhl6-Jul-08 19:53 
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 
Yes, you're right.. I was able to cast succesfully but I got a runtime error when I tried to use the setAttribute.. Here's what I did:

// assume I have a loop here
IXMLDOMNodePtr pAttN = pMapAtt->Getitem( y ); 
IXMLDOMElementPtr pAtt;

CString csOutAttName = static_cast<LPCTSTR>( pAttN->nodeName );
CString csOutAttText = static_cast<LPCTSTR>( pAttN->Gettext() );

pAtt = (IXMLDOMElementPtr) pAttN;
BSTR bstrOutAttName = csOutAttName.AllocSysString();
pAtt->setAttribute( bstrOutAttName, static_cast<_variant_t>( csInAttText ) );
::SysFreeString( bstrOutAttName );


I've got an exception in this line:

pAtt->setAttribute( bstrOutAttName, static_cast<_variant_t>( csInAttText ) );


Looking up at setAttribute function, it has this syntax:
setAttribute(BSTR, VARIANT)

I havn't figure out what's causing the problem here and Im thinking that passing the _variant_t to a VARIANT might be the problem?? (Assuming I cast the right way..)So I've tried searching for ways on how to cast CString to VARIANT, but didn't find anything that works..

Any idea please... Thanks!
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 
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 

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.