Microsoft Developer Network > 포럼 홈 > Visual C++ General > TinyXML from xml file to variables/strings
질문하기질문하기
 

답변됨TinyXML from xml file to variables/strings

  • 2009년 11월 4일 수요일 오후 12:32Massenator 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     코드 있음
    Hello,

    I have an XML file which im trying to read with C++ in order to make use of the data stored within the xml file to draw textures.
    The XML file looks like this:
      <?xml version="1.0" ?> 
    - <test>
      <a>5</a> 
      <b>3</b> 
      <c>1</c> 
      <d>0</d> 
      <name>fred</name> 
      </test>
    
    Can anyone tell me how to load the xml file in a way that allows me to use
    printf(a);
    
    and get the value from the file printed?

답변

모든 응답