Click here to Skip to main content
15,914,416 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralRecommendations for C# / XML Documentation Tools Pin
handplane18-Jun-03 1:53
handplane18-Jun-03 1:53 
GeneralRe: Recommendations for C# / XML Documentation Tools Pin
J. Dunlap18-Jun-03 8:20
J. Dunlap18-Jun-03 8:20 
GeneralRe: Recommendations for C# / XML Documentation Tools Pin
handplane18-Jun-03 8:29
handplane18-Jun-03 8:29 
GeneralRe: I Found Some... Pin
handplane19-Jun-03 4:45
handplane19-Jun-03 4:45 
GeneralHi Everybody Pin
jphuphilly17-Jun-03 8:48
jphuphilly17-Jun-03 8:48 
GeneralRe: Hi Everybody Pin
J. Dunlap17-Jun-03 8:50
J. Dunlap17-Jun-03 8:50 
GeneralRe: Hi Everybody Pin
Philip Fitzsimons18-Jun-03 3:16
Philip Fitzsimons18-Jun-03 3:16 
QuestionHow do I extract a hexBinary attribute value? Pin
Jambolo16-Jun-03 13:50
Jambolo16-Jun-03 13:50 
I wrote a function that gets a attribute value that is in hex. Am I reinventing the wheel? The problem is that I can't get it to work.

Here was my first attempt which failed because it didn't convert to hex (even though the the type is xsd:hexBinary):
HRESULT     hr;
CComVariant value;

hr = pElement->getAttribute( CComBSTR( sName ), &value );
hr = value.ChangeType( VT_UINT );

Here is my second attempt which works for values using digits '0'-'9' but fails for values using digits 'a'-'f' (and 'A'-'F') (VarParseNumFromStr returns DISP_E_TYPEMISMATCH):
HRESULT     hr;
CComVariant value;
NUMPARSE        np  = { 10, NUMPRS_HEX_OCT|NUMPRS_USE_ALL, 0, 0, 4 };
unsigned char   digits[10];
CComVariant vHex;

hr = pElement->getAttribute( CComBSTR( sName ), &value );

hr = VarParseNumFromStr( value.bstrVal, GetUserDefaultLCID(),
             NUMPRS_HEX_OCT|NUMPRS_USE_ALL,
             &np, digits );
np.nBaseShift = 4;
hr = VarNumFromParseNum( &np, digits, VTBIT_UI4, &vHex );
hr = vHex.ChangeType( VT_UINT );


Anyone know what is wrong or what the right way to do this is?
QuestionHow to insert XML data into SQL server using Javascript Pin
emriyaz10-Jun-03 21:46
emriyaz10-Jun-03 21:46 
Generalproblems witn MSXML in multi-threading applications Pin
Bash10-Jun-03 19:43
Bash10-Jun-03 19:43 
GeneralXML MFC/C++ Pin
Vikas K.7-Jun-03 0:30
Vikas K.7-Jun-03 0:30 
GeneralRe: XML MFC/C++ Pin
Retsof Nawor8-Jun-03 10:28
Retsof Nawor8-Jun-03 10:28 
GeneralXML Data Editor problem Pin
fpoyavo6-Jun-03 6:25
fpoyavo6-Jun-03 6:25 
GeneralExpat XML Pin
Madmaximus3-Jun-03 14:06
Madmaximus3-Jun-03 14:06 
GeneralRe: Expat XML Pin
ZoogieZork8-Jun-03 10:50
ZoogieZork8-Jun-03 10:50 
QuestionFast XML? Pin
Peter Weyzen27-May-03 7:52
Peter Weyzen27-May-03 7:52 
AnswerRe: Fast XML? Pin
Philip Fitzsimons28-May-03 2:06
Philip Fitzsimons28-May-03 2:06 
GeneralRe: Fast XML? Pin
Peter Weyzen30-May-03 22:11
Peter Weyzen30-May-03 22:11 
GeneralSerializing XML element with scope in .NET Pin
Chris Maunder24-May-03 18:46
cofounderChris Maunder24-May-03 18:46 
GeneralRe: Serializing XML element with scope in .NET Pin
Philip Fitzsimons27-May-03 22:30
Philip Fitzsimons27-May-03 22:30 
GeneralRe: Serializing XML element with scope in .NET Pin
Chris Maunder30-May-03 16:08
cofounderChris Maunder30-May-03 16:08 
GeneralSeti@Home XML/DTD Pin
Steve McLenithan16-May-03 3:17
Steve McLenithan16-May-03 3:17 
QuestionHow do I move XML nodes? Pin
lnong15-May-03 10:16
lnong15-May-03 10:16 
AnswerRe: How do I move XML nodes? Pin
Richard Deeming21-May-03 8:47
mveRichard Deeming21-May-03 8:47 
Generalxml documentacion problem Pin
simwiz15-May-03 0:08
simwiz15-May-03 0:08 

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.