XML Development

Moderators: None (Apply to moderate this forum)
Number of threads: 252
Number of posts: 451

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Re: How to re-organized XML file and call XML file from my software Posted by bella_11041988 on 11 May 2006 at 7:08 PM
: : Hello, everybody. Sorry to disturb you all.
: : Currently, I have a speech recording and playback software developed by Microsoft Visual C++ 6.0. The software is used to train children with speech problem and scores will be calculated and showed at the end of each practice session. The software is able to record and playback real-time.
: :
: : Children use this software at home and save their practice records in a single floppy disk. Then, children will bring the floppy disk with practice records inside when they return to our centre.
: :
: : I have two problems with the xml programming part. My software automatically created history file (in XML format) to display the scores of the childrens practices. The history file (in XML format) is saved by the children in floppy disk when they return to our centre.
: : But, the data or information in the XML is in a mess where all data are put together. Do you mind to tell me what should I do to create more organized XML format? The therapist needs to scroll in order to read the scores. I have the program codes of XML in four of my cpp files.
: :
: : The second question is how to call or open XML file (the history file) from my software?
: : My codes are as below. After I execute the program, it is error free and the File Open dialog box is popped up but no XML file came out after I select the desired XML file. My codes are as below:
: : void CSpeechDlg::OnScore()
: : {
: : // TODO: Add your command handler code here
: : CFileDialog openfile(TRUE,NULL,NULL,OFN_OVERWRITEPROMPT,"XML File (*.xml)|*.xml|");
: : if (openfile.DoModal()==IDOK)
: : {
: : CString cs=openfile.GetFileName();
: : char* filename=new char[cs.GetLength()+1];
: : strcpy(filename,cs);
: : }
: :
: : }
: :
: : I promise I wont disturb you a lot, I promise I will do my best. Can you please help me?
: : I am totally new to this as the software is written by one of my previous friend who worked together with me in a voluntary speech rehabilitation centre. We need this software to train children in the centre. I work part time there.
: :
: : Hope you can give me some guidances on how to do it. I promise I can learn as independent as possible but I really need your guidance at this very beginning, please.
: : Please, I really appreciate all your help.
: :
: :
: The easiest way to read a specific XML format is to write a string parser for it. If you plan to alter the format of your history files, then you might consider calling the MSXML.DLL to perform the parsing.
: As for the XML mess, you should either add some indentation and line endings (if you write the XML file yourself) or use another XML writing algorithm (if you're depending on a 3rd-party writer).
:

Hi, Zibadian, thanks so much for your reply, appreciate.

Sorry, I dont understand what you mean by calling the MSXML.dll. Could you pelase elaborate a little bit more?
I have four XML cpp files, one of them is the xmlParser.cpp. YOu mean I can add spacing or lines in the XML file? I thought it is impossible to do this,Please forgive me if I am wrong.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.