Click here to Skip to main content
15,894,646 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Rotating Controls Pin
_AnsHUMAN_ 17-May-09 21:37
_AnsHUMAN_ 17-May-09 21:37 
GeneralRe: Rotating Controls Pin
Ayman Alterawi17-May-09 21:56
Ayman Alterawi17-May-09 21:56 
GeneralRe: Rotating Controls Pin
_AnsHUMAN_ 17-May-09 22:07
_AnsHUMAN_ 17-May-09 22:07 
GeneralRe: Rotating Controls Pin
Ayman Alterawi19-May-09 20:37
Ayman Alterawi19-May-09 20:37 
QuestionGetShortPathName not working on x64 system Pin
Ranojay17-May-09 20:58
Ranojay17-May-09 20:58 
AnswerRe: GetShortPathName not working on x64 system Pin
Stuart Dootson17-May-09 21:06
professionalStuart Dootson17-May-09 21:06 
QuestionRE: how to run C++ code on linux Pin
savitha87k17-May-09 20:44
savitha87k17-May-09 20:44 
AnswerRe: RE: how to run C++ code on linux Pin
Stuart Dootson17-May-09 21:02
professionalStuart Dootson17-May-09 21:02 
GeneralRe: RE: how to run C++ code on linux Pin
savitha87k17-May-09 21:18
savitha87k17-May-09 21:18 
QuestionRe: RE: how to run C++ code on linux Pin
CPallini17-May-09 21:33
mveCPallini17-May-09 21:33 
AnswerRe: RE: how to run C++ code on linux Pin
savitha87k17-May-09 21:57
savitha87k17-May-09 21:57 
GeneralRe: RE: how to run C++ code on linux Pin
CPallini17-May-09 22:00
mveCPallini17-May-09 22:00 
GeneralRe: RE: how to run C++ code on linux Pin
savitha87k17-May-09 22:14
savitha87k17-May-09 22:14 
GeneralRe: RE: how to run C++ code on linux Pin
CPallini17-May-09 22:24
mveCPallini17-May-09 22:24 
GeneralRe: RE: how to run C++ code on linux Pin
savitha87k17-May-09 22:39
savitha87k17-May-09 22:39 
GeneralRe: RE: how to run C++ code on linux Pin
CPallini17-May-09 23:02
mveCPallini17-May-09 23:02 
GeneralRe: RE: how to run C++ code on linux Pin
Stuart Dootson17-May-09 23:27
professionalStuart Dootson17-May-09 23:27 
GeneralRe: RE: how to run C++ code on linux Pin
savitha87k21-May-09 2:44
savitha87k21-May-09 2:44 
GeneralRe: RE: how to run C++ code on linux Pin
Stuart Dootson21-May-09 2:49
professionalStuart Dootson21-May-09 2:49 
GeneralRe: RE: how to run C++ code on linux Pin
savitha87k21-May-09 3:06
savitha87k21-May-09 3:06 
GeneralRe: RE: how to run C++ code on linux Pin
Stuart Dootson21-May-09 3:16
professionalStuart Dootson21-May-09 3:16 
GeneralRe: RE: how to run C++ code on linux Pin
savitha87k21-May-09 3:27
savitha87k21-May-09 3:27 
GeneralRe: RE: how to run C++ code on linux Pin
Stuart Dootson21-May-09 4:33
professionalStuart Dootson21-May-09 4:33 
From the TinyXML documentation[^]:

TinyXML is a simple, small, C++ XML parser that can be easily integrated into other programs


savitha87k wrote:
But when i run tinxml it will automatically takes input file..


If i want to give any other xml file so,, how can i do that in tinxml


Again, looking at the TinyXML documentation, specifically TiXmlDocument::Parse[^]

Parse the given null terminated block of xml data.

Passing in an encoding to this method (either TIXML_ENCODING_LEGACY or TIXML_ENCODING_UTF8 will force TinyXml to use that encoding, regardless of what TinyXml might otherwise try to detect.



i.e. you can pass a string to the Parse method of TiXmlDocument. That string can have come from anywhere. If you look at the xmltest.cpp file that comes in the source distribution of TinyXml, you'll see code that looks like this (I've left some code out where it doesn't have any impact on this bit):

const char* demoStart =
    "<?xml version=\"1.0\"  standalone='no' >\n"
    "<!-- Our to do list data -->"
    "<ToDo>\n"
    "<!-- Do I need a secure PDA? -->\n"
    "<Item priority=\"1\" distance='close'> Go to the <bold>Toy store!</bold></Item>"
    "<Item priority=\"2\" distance='none'> Do bills   </Item>"
    "<Item priority=\"2\" distance='far &amp; back'> Look for Evil Dinosaurs! </Item>"
    "</ToDo>";

{
        TiXmlDocument doc( "demotest.xml" );
        doc.Parse( demoStart );


That bit of code parses a string to produce an XML DOM in the variable called doc.

Another XML library option is RapidXML[^].

Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

AnswerRe: RE: how to run C++ code on linux Pin
N a v a n e e t h17-May-09 22:29
N a v a n e e t h17-May-09 22:29 
GeneralRe: RE: how to run C++ code on linux Pin
savitha87k17-May-09 22:43
savitha87k17-May-09 22:43 

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.