Click here to Skip to main content
15,885,767 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralRe: How To Load & Validat XML file with XSD file using XML .Net Parser Pin
zxc8920-Dec-05 1:58
zxc8920-Dec-05 1:58 
QuestionString vs. XML file Pin
sonicsqwirl11-Dec-05 21:27
sonicsqwirl11-Dec-05 21:27 
AnswerRe: String vs. XML file Pin
Per Nilsson13-Dec-05 22:47
Per Nilsson13-Dec-05 22:47 
GeneralRe: String vs. XML file Pin
Michael Flanakin29-Dec-05 4:01
Michael Flanakin29-Dec-05 4:01 
QuestionXSL/XML space is different from javascript Pin
ChiranjibC9-Dec-05 6:49
ChiranjibC9-Dec-05 6:49 
AnswerRe: XSL/XML space is different from javascript Pin
Michael Flanakin29-Dec-05 4:06
Michael Flanakin29-Dec-05 4:06 
QuestionHow to load xml file from resources using msxml? Pin
onestab9-Dec-05 2:25
onestab9-Dec-05 2:25 
AnswerRe: How to load xml file from resources using msxml? Pin
Per Nilsson13-Dec-05 23:02
Per Nilsson13-Dec-05 23:02 
It should not be much of a problem. I do it like this in a project (With all error handling removed. It just clutters up the example.)

int CHookApp::LoadXML (int rsrc, MSXML2::IXMLDOMDocument2Ptr& xml, CString& errMsg)
{
  HRSRC   hXSLResourceInfoBlock;
  HGLOBAL hXSLResource;<br>

  hXSLResourceInfoBlock = ::FindResource (m_hInstance, MAKEINTRESOURCE(rsrc), "XSL");<br>

  if (hXSLResourceInfoBlock)
    hXSLResource = LoadResource (m_hInstance, hXSLResourceInfoBlock);<br>

  if (hXSLResourceInfoBlock == NULL || hXSLResource == NULL) 
      return -1;<br>

  try {
    _bstr_t xmlText ((char*)LockResource (hXSLResource));
    if (xml->loadXML ( xmlText ) == VARIANT_FALSE)
      return -1;<br>
  }
  catch (...) {
    return -1;<br>
  }<br>

return 0;
}




I wonder why my empty lines are removed from the <pre> block above. It remained in another reply of mine.......



-- modified at 5:03 Wednesday 14th December, 2005
QuestionDynamic updation of XML file Pin
srimayank11_codeproject9-Dec-05 0:44
srimayank11_codeproject9-Dec-05 0:44 
QuestionHow to covnert ByteArray into a JPEG image? Pin
mysorian8-Dec-05 10:53
professionalmysorian8-Dec-05 10:53 
AnswerRe: How to covnert ByteArray into a JPEG image? Pin
Jupiter99-Dec-05 10:45
Jupiter99-Dec-05 10:45 
GeneralRe: How to covnert ByteArray into a JPEG image? Pin
mysorian9-Dec-05 11:31
professionalmysorian9-Dec-05 11:31 
QuestionPara todos Pin
oavalos20056-Dec-05 18:34
oavalos20056-Dec-05 18:34 
QuestionAdd Pin
Iridania3-Dec-05 11:09
Iridania3-Dec-05 11:09 
AnswerRe: Add Pin
ThatsAlok5-Dec-05 1:34
ThatsAlok5-Dec-05 1:34 
Questiontab control Pin
Baskaran Ramasamy3-Dec-05 1:50
Baskaran Ramasamy3-Dec-05 1:50 
AnswerRe: tab control Pin
Chetan Ranpariya4-Dec-05 19:25
Chetan Ranpariya4-Dec-05 19:25 
QuestionImporting xml to quark express Pin
senthilkolandai2-Dec-05 22:33
senthilkolandai2-Dec-05 22:33 
Questionadd XSL Mouse Over to elements Pin
mgmail2-Dec-05 3:45
mgmail2-Dec-05 3:45 
AnswerRe: add XSL Mouse Over to elements Pin
tylikeatcn27-Dec-05 2:08
tylikeatcn27-Dec-05 2:08 
QuestionSort XML Elements? Pin
Robert M Greene1-Dec-05 17:37
Robert M Greene1-Dec-05 17:37 
AnswerRe: Sort XML Elements? Pin
Sushant_Mathur1-Dec-05 20:10
Sushant_Mathur1-Dec-05 20:10 
GeneralRe: Sort XML Elements? Pin
Robert M Greene2-Dec-05 5:09
Robert M Greene2-Dec-05 5:09 
GeneralRe: Sort XML Elements? Pin
sreejith ss nair2-Dec-05 6:07
sreejith ss nair2-Dec-05 6:07 
QuestionXML without end tags and FPML import Pin
satish2229-Nov-05 0:36
satish2229-Nov-05 0:36 

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.