Click here to Skip to main content
15,509,914 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 2:58
zxc8920-Dec-05 2:58 
QuestionString vs. XML file Pin
sonicsqwirl11-Dec-05 22:27
sonicsqwirl11-Dec-05 22:27 
AnswerRe: String vs. XML file Pin
Per Nilsson13-Dec-05 23:47
Per Nilsson13-Dec-05 23:47 
GeneralRe: String vs. XML file Pin
Michael Flanakin29-Dec-05 5:01
Michael Flanakin29-Dec-05 5:01 
QuestionXSL/XML space is different from javascript Pin
ChiranjibC9-Dec-05 7:49
ChiranjibC9-Dec-05 7:49 
AnswerRe: XSL/XML space is different from javascript Pin
Michael Flanakin29-Dec-05 5:06
Michael Flanakin29-Dec-05 5:06 
QuestionHow to load xml file from resources using msxml? Pin
onestab9-Dec-05 3:25
onestab9-Dec-05 3:25 
AnswerRe: How to load xml file from resources using msxml? Pin
Per Nilsson14-Dec-05 0:02
Per Nilsson14-Dec-05 0: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 1:44
srimayank11_codeproject9-Dec-05 1:44 
QuestionHow to covnert ByteArray into a JPEG image? Pin
mysorian8-Dec-05 11:53
professionalmysorian8-Dec-05 11:53 
AnswerRe: How to covnert ByteArray into a JPEG image? Pin
Jupiter99-Dec-05 11:45
Jupiter99-Dec-05 11:45 
GeneralRe: How to covnert ByteArray into a JPEG image? Pin
mysorian9-Dec-05 12:31
professionalmysorian9-Dec-05 12:31 
QuestionPara todos Pin
oavalos20056-Dec-05 19:34
oavalos20056-Dec-05 19:34 
QuestionAdd Pin
Iridania3-Dec-05 12:09
Iridania3-Dec-05 12:09 
AnswerRe: Add Pin
ThatsAlok5-Dec-05 2:34
ThatsAlok5-Dec-05 2:34 
Questiontab control Pin
Baskaran Ramasamy3-Dec-05 2:50
Baskaran Ramasamy3-Dec-05 2:50 
AnswerRe: tab control Pin
Chetan Ranpariya4-Dec-05 20:25
Chetan Ranpariya4-Dec-05 20:25 
QuestionImporting xml to quark express Pin
senthilkolandai2-Dec-05 23:33
senthilkolandai2-Dec-05 23:33 
Questionadd XSL Mouse Over to elements Pin
mgmail2-Dec-05 4:45
mgmail2-Dec-05 4:45 
AnswerRe: add XSL Mouse Over to elements Pin
tylikeatcn27-Dec-05 3:08
tylikeatcn27-Dec-05 3:08 
QuestionSort XML Elements? Pin
Robert M Greene1-Dec-05 18:37
Robert M Greene1-Dec-05 18:37 
AnswerRe: Sort XML Elements? Pin
Sushant_Mathur1-Dec-05 21:10
Sushant_Mathur1-Dec-05 21:10 
GeneralRe: Sort XML Elements? Pin
Robert M Greene2-Dec-05 6:09
Robert M Greene2-Dec-05 6:09 
GeneralRe: Sort XML Elements? Pin
sreejith ss nair2-Dec-05 7:07
sreejith ss nair2-Dec-05 7:07 
QuestionXML without end tags and FPML import Pin
satish2229-Nov-05 1:36
satish2229-Nov-05 1: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.