<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'How to re-organized XML file and call XML file from my software' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'How to re-organized XML file and call XML file from my software' posted on the 'XML Development' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Wed, 19 Jun 2013 16:54:43 -0700</pubDate>
    <lastBuildDate>Wed, 19 Jun 2013 16:54:44 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>How to re-organized XML file and call XML file from my software</title>
      <link>http://www.programmersheaven.com/mb/xml/336751/336751/how-to-re-organized-xml-file-and-call-xml-file-from-my-software/</link>
      <description>Hello, everybody. Sorry to disturb you all.&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
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. &lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
The second question is how to call or open XML file (the history file) from my software?&lt;br /&gt;
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:&lt;br /&gt;
void CSpeechDlg::OnScore() &lt;br /&gt;
{&lt;br /&gt;
	// TODO: Add your command handler code here&lt;br /&gt;
CFileDialog openfile(TRUE,NULL,NULL,OFN_OVERWRITEPROMPT,"XML File (*.xml)|*.xml|");&lt;br /&gt;
	if (openfile.DoModal()==IDOK)&lt;br /&gt;
	{&lt;br /&gt;
		CString cs=openfile.GetFileName();&lt;br /&gt;
		char* filename=new char[cs.GetLength()+1];&lt;br /&gt;
		strcpy(filename,cs);&lt;br /&gt;
	}&lt;br /&gt;
	&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
I promise I wont disturb you a lot, I promise I will do my best. Can you please help me?   &lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
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. &lt;br /&gt;
Please, I really appreciate all your help.&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/xml/336751/336751/how-to-re-organized-xml-file-and-call-xml-file-from-my-software/</guid>
      <pubDate>Thu, 11 May 2006 01:58:02 -0700</pubDate>
      <category>XML Development</category>
    </item>
    <item>
      <title>Re: How to re-organized XML file and call XML file from my software</title>
      <link>http://www.programmersheaven.com/mb/xml/336751/336754/re-how-to-re-organized-xml-file-and-call-xml-file-from-my-software/#336754</link>
      <description>: Hello, everybody. Sorry to disturb you all.&lt;br /&gt;
: 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.&lt;br /&gt;
: &lt;br /&gt;
: 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. &lt;br /&gt;
: &lt;br /&gt;
: 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.&lt;br /&gt;
: 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.&lt;br /&gt;
: &lt;br /&gt;
: The second question is how to call or open XML file (the history file) from my software?&lt;br /&gt;
: 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:&lt;br /&gt;
: void CSpeechDlg::OnScore() &lt;br /&gt;
: {&lt;br /&gt;
: 	// TODO: Add your command handler code here&lt;br /&gt;
: CFileDialog openfile(TRUE,NULL,NULL,OFN_OVERWRITEPROMPT,"XML File (*.xml)|*.xml|");&lt;br /&gt;
: 	if (openfile.DoModal()==IDOK)&lt;br /&gt;
: 	{&lt;br /&gt;
: 		CString cs=openfile.GetFileName();&lt;br /&gt;
: 		char* filename=new char[cs.GetLength()+1];&lt;br /&gt;
: 		strcpy(filename,cs);&lt;br /&gt;
: 	}&lt;br /&gt;
: 	&lt;br /&gt;
: }&lt;br /&gt;
: &lt;br /&gt;
: I promise I wont disturb you a lot, I promise I will do my best. Can you please help me?   &lt;br /&gt;
: 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.&lt;br /&gt;
: &lt;br /&gt;
: 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. &lt;br /&gt;
: Please, I really appreciate all your help.&lt;br /&gt;
: &lt;br /&gt;
: &lt;br /&gt;
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.&lt;br /&gt;
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).&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/xml/336751/336754/re-how-to-re-organized-xml-file-and-call-xml-file-from-my-software/#336754</guid>
      <pubDate>Thu, 11 May 2006 02:26:28 -0700</pubDate>
      <category>XML Development</category>
    </item>
    <item>
      <title>Re: How to re-organized XML file and call XML file from my software</title>
      <link>http://www.programmersheaven.com/mb/xml/336751/336779/re-how-to-re-organized-xml-file-and-call-xml-file-from-my-software/#336779</link>
      <description>: 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. &lt;br /&gt;
&lt;br /&gt;
I don't do C++, so I can't help there.  I can help with the XML format, though.  Can you post an example of the XML data you have to work with so we can provide suggestions?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-size: large;"&gt;&lt;em&gt;&lt;span style="color: Blue;"&gt;&lt;span style="color: Red;"&gt;i&lt;/span&gt;nfidel&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
$ select * from users where clue &amp;gt; 0
no rows returned
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/xml/336751/336779/re-how-to-re-organized-xml-file-and-call-xml-file-from-my-software/#336779</guid>
      <pubDate>Thu, 11 May 2006 07:45:55 -0700</pubDate>
      <category>XML Development</category>
    </item>
    <item>
      <title>Re: How to re-organized XML file and call XML file from my software</title>
      <link>http://www.programmersheaven.com/mb/xml/336751/336831/re-how-to-re-organized-xml-file-and-call-xml-file-from-my-software/#336831</link>
      <description>: : 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. &lt;br /&gt;
: &lt;br /&gt;
: I don't do C++, so I can't help there.  I can help with the XML format, though.  Can you post an example of the XML data you have to work with so we can provide suggestions?&lt;br /&gt;
: &lt;br /&gt;
: &lt;br /&gt;
: &lt;span style="font-size: large;"&gt;&lt;em&gt;&lt;span style="color: Blue;"&gt;&lt;span style="color: Red;"&gt;i&lt;/span&gt;nfidel&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;
: &lt;br /&gt;
: &lt;pre class="sourcecode"&gt;
: $ select * from users where clue &amp;gt; 0
: no rows returned
: &lt;/pre&gt;&lt;br /&gt;
: &lt;br /&gt;
: &lt;br /&gt;
&lt;br /&gt;
Hi, Infidel, thank you very much for your reply, appreciate.&lt;br /&gt;
&lt;br /&gt;
I attached the XML file created by my program. As you can see, it is created in an unorganized format. I hope it can be created with spacing between sentences so that it can be more easier to read. And, I hope therapist does not need to scroll to the far right end in order to read the children's scoring.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt; &amp;lt;xml version="1.0" &amp;gt;
&amp;lt;UserName&amp;gt;tyty&amp;lt;/UserName&amp;gt;
&amp;lt;test Technique="1" Sentence="1" Date="04/27/06" Time="16:11:10" StartScore="100" Endscore="100" MaximumMagnitudeScore="0" DurationScore="100" AverageScore="75" /&amp;gt;
&amp;lt;test Technique="1" Sentence="2" Date="04/27/06" Time="16:11:27" StartScore="70" Endscore="30" MaximumMagnitudeScore="50" DurationScore="0" AverageScore="37" /&amp;gt;
&amp;lt;test Technique="1" Sentence="3" Date="04/27/06" Time="16:11:44" StartScore="80" Endscore="0" MaximumMagnitudeScore="20" DurationScore="0" AverageScore="25" /&amp;gt;
&amp;lt;test Technique="1" Sentence="4" Date="04/27/06" Time="16:11:59" StartScore="50" Endscore="90" MaximumMagnitudeScore="0" DurationScore="40" AverageScore="45" /&amp;gt;
&amp;lt;test Technique="1" Sentence="5" Date="04/27/06" Time="16:12:15" StartScore="100" Endscore="90" MaximumMagnitudeScore="70" DurationScore="90" AverageScore="87" /&amp;gt;
&amp;lt;Score Technique="1" Date="04/27/06" Time="16:12:21" StartScore="80" Endscore="62" MaximumMagnitudeScore="28" DurationScore="46" AverageScore="54" /&amp;gt;
&amp;lt;test Technique="2" Sentence="1" Date="04/27/06" Time="16:12:37" StartScore="70" Endscore="50" MaximumMagnitudeScore="90" DurationScore="90" AverageScore="75" /&amp;gt;
&amp;lt;test Technique="2" Sentence="2" Date="04/27/06" Time="16:12:55" StartScore="90" Endscore="0" MaximumMagnitudeScore="80" DurationScore="0" AverageScore="42" /&amp;gt;
&amp;lt;test Technique="2" Sentence="3" Date="04/27/06" Time="16:13:11" StartScore="100" Endscore="0" MaximumMagnitudeScore="0" DurationScore="0" AverageScore="25" /&amp;gt;
&amp;lt;test Technique="2" Sentence="4" Date="04/27/06" Time="16:13:25" StartScore="100" Endscore="100" MaximumMagnitudeScore="0" DurationScore="90" AverageScore="72" /&amp;gt;
&amp;lt;test Technique="2" Sentence="5" Date="04/27/06" Time="16:13:46" StartScore="90" Endscore="40" MaximumMagnitudeScore="60" DurationScore="50" AverageScore="60" /&amp;gt;
&amp;lt;Score Technique="2" Date="04/27/06" Time="16:13:50" StartScore="90" Endscore="38" MaximumMagnitudeScore="46" DurationScore="46" AverageScore="55" /&amp;gt;
&amp;lt;test Technique="3" Sentence="1" Date="04/27/06" Time="16:14:07" StartScore="90" Endscore="0" MaximumMagnitudeScore="100" DurationScore="0" AverageScore="47" /&amp;gt;
&amp;lt;test Technique="3" Sentence="2" Date="04/27/06" Time="16:14:22" StartScore="80" Endscore="40" MaximumMagnitudeScore="30" DurationScore="10" AverageScore="40" /&amp;gt;
&amp;lt;test Technique="3" Sentence="3" Date="04/27/06" Time="16:14:38" StartScore="100" Endscore="30" MaximumMagnitudeScore="0" DurationScore="30" AverageScore="40" /&amp;gt;
&amp;lt;test Technique="3" Sentence="4" Date="04/27/06" Time="16:15:04" StartScore="90" Endscore="100" MaximumMagnitudeScore="0" DurationScore="100" AverageScore="72" /&amp;gt;
&amp;lt;test Technique="3" Sentence="5" Date="04/27/06" Time="16:15:22" StartScore="90" Endscore="100" MaximumMagnitudeScore="70" DurationScore="100" AverageScore="90" /&amp;gt;
&amp;lt;Score Technique="3" Date="04/27/06" Time="16:15:24" StartScore="90" Endscore="54" MaximumMagnitudeScore="40" DurationScore="48" AverageScore="58" /&amp;gt; &lt;pre class="sourcecode"&gt;

I really need your help at this very beginning, please help, please.

&lt;/pre&gt;&lt;/pre&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/xml/336751/336831/re-how-to-re-organized-xml-file-and-call-xml-file-from-my-software/#336831</guid>
      <pubDate>Thu, 11 May 2006 19:03:51 -0700</pubDate>
      <category>XML Development</category>
    </item>
    <item>
      <title>Re: How to re-organized XML file and call XML file from my software</title>
      <link>http://www.programmersheaven.com/mb/xml/336751/336832/re-how-to-re-organized-xml-file-and-call-xml-file-from-my-software/#336832</link>
      <description>: : Hello, everybody. Sorry to disturb you all.&lt;br /&gt;
: : 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.&lt;br /&gt;
: : &lt;br /&gt;
: : 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. &lt;br /&gt;
: : &lt;br /&gt;
: : 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.&lt;br /&gt;
: : 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.&lt;br /&gt;
: : &lt;br /&gt;
: : The second question is how to call or open XML file (the history file) from my software?&lt;br /&gt;
: : 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:&lt;br /&gt;
: : void CSpeechDlg::OnScore() &lt;br /&gt;
: : {&lt;br /&gt;
: : 	// TODO: Add your command handler code here&lt;br /&gt;
: : CFileDialog openfile(TRUE,NULL,NULL,OFN_OVERWRITEPROMPT,"XML File (*.xml)|*.xml|");&lt;br /&gt;
: : 	if (openfile.DoModal()==IDOK)&lt;br /&gt;
: : 	{&lt;br /&gt;
: : 		CString cs=openfile.GetFileName();&lt;br /&gt;
: : 		char* filename=new char[cs.GetLength()+1];&lt;br /&gt;
: : 		strcpy(filename,cs);&lt;br /&gt;
: : 	}&lt;br /&gt;
: : 	&lt;br /&gt;
: : }&lt;br /&gt;
: : &lt;br /&gt;
: : I promise I wont disturb you a lot, I promise I will do my best. Can you please help me?   &lt;br /&gt;
: : 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.&lt;br /&gt;
: : &lt;br /&gt;
: : 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. &lt;br /&gt;
: : Please, I really appreciate all your help.&lt;br /&gt;
: : &lt;br /&gt;
: : &lt;br /&gt;
: 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.&lt;br /&gt;
: 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).&lt;br /&gt;
: &lt;br /&gt;
&lt;br /&gt;
Hi, Zibadian, thanks so much for your reply, appreciate.&lt;br /&gt;
&lt;br /&gt;
Sorry, I dont understand what you mean by calling the MSXML.dll. Could you pelase elaborate a little bit more? &lt;br /&gt;
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.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/xml/336751/336832/re-how-to-re-organized-xml-file-and-call-xml-file-from-my-software/#336832</guid>
      <pubDate>Thu, 11 May 2006 19:08:24 -0700</pubDate>
      <category>XML Development</category>
    </item>
    <item>
      <title>Re: How to re-organized XML file and call XML file from my software</title>
      <link>http://www.programmersheaven.com/mb/xml/336751/336835/re-how-to-re-organized-xml-file-and-call-xml-file-from-my-software/#336835</link>
      <description>: : : Hello, everybody. Sorry to disturb you all.&lt;br /&gt;
: : : 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.&lt;br /&gt;
: : : &lt;br /&gt;
: : : 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. &lt;br /&gt;
: : : &lt;br /&gt;
: : : 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.&lt;br /&gt;
: : : 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.&lt;br /&gt;
: : : &lt;br /&gt;
: : : The second question is how to call or open XML file (the history file) from my software?&lt;br /&gt;
: : : 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:&lt;br /&gt;
: : : void CSpeechDlg::OnScore() &lt;br /&gt;
: : : {&lt;br /&gt;
: : : 	// TODO: Add your command handler code here&lt;br /&gt;
: : : CFileDialog openfile(TRUE,NULL,NULL,OFN_OVERWRITEPROMPT,"XML File (*.xml)|*.xml|");&lt;br /&gt;
: : : 	if (openfile.DoModal()==IDOK)&lt;br /&gt;
: : : 	{&lt;br /&gt;
: : : 		CString cs=openfile.GetFileName();&lt;br /&gt;
: : : 		char* filename=new char[cs.GetLength()+1];&lt;br /&gt;
: : : 		strcpy(filename,cs);&lt;br /&gt;
: : : 	}&lt;br /&gt;
: : : 	&lt;br /&gt;
: : : }&lt;br /&gt;
: : : &lt;br /&gt;
: : : I promise I wont disturb you a lot, I promise I will do my best. Can you please help me?   &lt;br /&gt;
: : : 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.&lt;br /&gt;
: : : &lt;br /&gt;
: : : 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. &lt;br /&gt;
: : : Please, I really appreciate all your help.&lt;br /&gt;
: : : &lt;br /&gt;
: : : &lt;br /&gt;
: : 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.&lt;br /&gt;
: : 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).&lt;br /&gt;
: : &lt;br /&gt;
: &lt;br /&gt;
: Hi, Zibadian, thanks so much for your reply, appreciate.&lt;br /&gt;
: &lt;br /&gt;
: Sorry, I dont understand what you mean by calling the MSXML.dll. Could you pelase elaborate a little bit more? &lt;br /&gt;
: 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.&lt;br /&gt;
: &lt;br /&gt;
You may add spaces, tabs, comments to XML as you like (see &lt;a href="http://www.w3schools.com/xml/default.asp"&gt;http://www.w3schools.com/xml/default.asp&lt;/a&gt; for more info and examples).&lt;br /&gt;
MSXML.DLL is a standard library which comes with windows. I don't program in C, so I cannot give you any code how to call external routines. The MSXML.DLL library implements a number of interfaces, which can be used to read/write XML files in an object-tree structure, where each branch of the XML file is represented by an IXMLDOMNode interface instance.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/xml/336751/336835/re-how-to-re-organized-xml-file-and-call-xml-file-from-my-software/#336835</guid>
      <pubDate>Thu, 11 May 2006 19:26:49 -0700</pubDate>
      <category>XML Development</category>
    </item>
    <item>
      <title>Re: How to re-organized XML file and call XML file from my software</title>
      <link>http://www.programmersheaven.com/mb/xml/336751/336869/re-how-to-re-organized-xml-file-and-call-xml-file-from-my-software/#336869</link>
      <description>: : : : Hello, everybody. Sorry to disturb you all.&lt;br /&gt;
: : : : 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.&lt;br /&gt;
: : : : &lt;br /&gt;
: : : : 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. &lt;br /&gt;
: : : : &lt;br /&gt;
: : : : 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.&lt;br /&gt;
: : : : 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.&lt;br /&gt;
: : : : &lt;br /&gt;
: : : : The second question is how to call or open XML file (the history file) from my software?&lt;br /&gt;
: : : : 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:&lt;br /&gt;
: : : : void CSpeechDlg::OnScore() &lt;br /&gt;
: : : : {&lt;br /&gt;
: : : : 	// TODO: Add your command handler code here&lt;br /&gt;
: : : : CFileDialog openfile(TRUE,NULL,NULL,OFN_OVERWRITEPROMPT,"XML File (*.xml)|*.xml|");&lt;br /&gt;
: : : : 	if (openfile.DoModal()==IDOK)&lt;br /&gt;
: : : : 	{&lt;br /&gt;
: : : : 		CString cs=openfile.GetFileName();&lt;br /&gt;
: : : : 		char* filename=new char[cs.GetLength()+1];&lt;br /&gt;
: : : : 		strcpy(filename,cs);&lt;br /&gt;
: : : : 	}&lt;br /&gt;
: : : : 	&lt;br /&gt;
: : : : }&lt;br /&gt;
: : : : &lt;br /&gt;
: : : : I promise I wont disturb you a lot, I promise I will do my best. Can you please help me?   &lt;br /&gt;
: : : : 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.&lt;br /&gt;
: : : : &lt;br /&gt;
: : : : 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. &lt;br /&gt;
: : : : Please, I really appreciate all your help.&lt;br /&gt;
: : : : &lt;br /&gt;
: : : : &lt;br /&gt;
: : : 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.&lt;br /&gt;
: : : 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).&lt;br /&gt;
: : : &lt;br /&gt;
: : &lt;br /&gt;
: : Hi, Zibadian, thanks so much for your reply, appreciate.&lt;br /&gt;
: : &lt;br /&gt;
: : Sorry, I dont understand what you mean by calling the MSXML.dll. Could you pelase elaborate a little bit more? &lt;br /&gt;
: : 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.&lt;br /&gt;
: : &lt;br /&gt;
: You may add spaces, tabs, comments to XML as you like (see &lt;a href="http://www.w3schools.com/xml/default.asp"&gt;http://www.w3schools.com/xml/default.asp&lt;/a&gt; for more info and examples).&lt;br /&gt;
: MSXML.DLL is a standard library which comes with windows. I don't program in C, so I cannot give you any code how to call external routines. The MSXML.DLL library implements a number of interfaces, which can be used to read/write XML files in an object-tree structure, where each branch of the XML file is represented by an IXMLDOMNode interface instance.&lt;br /&gt;
: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hi, Zibadian, thank you very much for your reply, appreciate.&lt;br /&gt;
&lt;br /&gt;
I will try now and let you know how I am going.&lt;br /&gt;
&lt;br /&gt;
Thanks so much.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/xml/336751/336869/re-how-to-re-organized-xml-file-and-call-xml-file-from-my-software/#336869</guid>
      <pubDate>Fri, 12 May 2006 01:59:10 -0700</pubDate>
      <category>XML Development</category>
    </item>
    <item>
      <title>Re: How to re-organized XML file and call XML file from my software</title>
      <link>http://www.programmersheaven.com/mb/xml/336751/336896/re-how-to-re-organized-xml-file-and-call-xml-file-from-my-software/#336896</link>
      <description>Well, not knowing how the data is used or exactly what it represents, I can only offer vague suggestions.  Here is one way you might make the data more hierarchical:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
&amp;lt;?xml version="1.0"?&amp;gt;
&amp;lt;Scoresheet UserName="tyty"&amp;gt;
    &amp;lt;Technique Number="1" Date="2006-04-27" Time="16:12:21" StartScore="80" Endscore="62" MaximumMagnitudeScore="28" DurationScore="46" AverageScore="54"&amp;gt;
        &amp;lt;Sentence Number="1" Time="16:11:10" StartScore="100" Endscore="100" MaximumMagnitudeScore="0" DurationScore="100" AverageScore="75" /&amp;gt;
        &amp;lt;Sentence Number="2" Time="16:11:27" StartScore="70" Endscore="30" MaximumMagnitudeScore="50" DurationScore="0" AverageScore="37" /&amp;gt;
        &amp;lt;Sentence Number="3" Time="16:11:44" StartScore="80" Endscore="0" MaximumMagnitudeScore="20" DurationScore="0" AverageScore="25" /&amp;gt;
        &amp;lt;Sentence Number="4" Time="16:11:59" StartScore="50" Endscore="90" MaximumMagnitudeScore="0" DurationScore="40" AverageScore="45" /&amp;gt;
        &amp;lt;Sentence Number="5" Time="16:12:15" StartScore="100" Endscore="90" MaximumMagnitudeScore="70" DurationScore="90" AverageScore="87" /&amp;gt;
    &amp;lt;/Score&amp;gt;
&amp;lt;/Scoresheet&amp;gt;
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Bear in mind that any changes to the format will require code changes where the XML is processed or created.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-size: large;"&gt;&lt;em&gt;&lt;span style="color: Blue;"&gt;&lt;span style="color: Red;"&gt;i&lt;/span&gt;nfidel&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
$ select * from users where clue &amp;gt; 0
no rows returned
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/xml/336751/336896/re-how-to-re-organized-xml-file-and-call-xml-file-from-my-software/#336896</guid>
      <pubDate>Fri, 12 May 2006 07:16:55 -0700</pubDate>
      <category>XML Development</category>
    </item>
    <item>
      <title>Re: How to re-organized XML file and call XML file from my software</title>
      <link>http://www.programmersheaven.com/mb/xml/336751/337213/re-how-to-re-organized-xml-file-and-call-xml-file-from-my-software/#337213</link>
      <description>: Well, not knowing how the data is used or exactly what it represents, I can only offer vague suggestions.  Here is one way you might make the data more hierarchical:&lt;br /&gt;
: &lt;br /&gt;
: &lt;pre class="sourcecode"&gt;
: &amp;lt;?xml version="1.0"?&amp;gt;
: &amp;lt;Scoresheet UserName="tyty"&amp;gt;
:     &amp;lt;Technique Number="1" Date="2006-04-27" Time="16:12:21" StartScore="80" Endscore="62" MaximumMagnitudeScore="28" DurationScore="46" AverageScore="54"&amp;gt;
:         &amp;lt;Sentence Number="1" Time="16:11:10" StartScore="100" Endscore="100" MaximumMagnitudeScore="0" DurationScore="100" AverageScore="75" /&amp;gt;
:         &amp;lt;Sentence Number="2" Time="16:11:27" StartScore="70" Endscore="30" MaximumMagnitudeScore="50" DurationScore="0" AverageScore="37" /&amp;gt;
:         &amp;lt;Sentence Number="3" Time="16:11:44" StartScore="80" Endscore="0" MaximumMagnitudeScore="20" DurationScore="0" AverageScore="25" /&amp;gt;
:         &amp;lt;Sentence Number="4" Time="16:11:59" StartScore="50" Endscore="90" MaximumMagnitudeScore="0" DurationScore="40" AverageScore="45" /&amp;gt;
:         &amp;lt;Sentence Number="5" Time="16:12:15" StartScore="100" Endscore="90" MaximumMagnitudeScore="70" DurationScore="90" AverageScore="87" /&amp;gt;
:     &amp;lt;/Score&amp;gt;
: &amp;lt;/Scoresheet&amp;gt;
: &lt;/pre&gt;&lt;br /&gt;
: &lt;br /&gt;
: Bear in mind that any changes to the format will require code changes where the XML is processed or created.&lt;br /&gt;
: &lt;br /&gt;
: &lt;br /&gt;
: &lt;span style="font-size: large;"&gt;&lt;em&gt;&lt;span style="color: Blue;"&gt;&lt;span style="color: Red;"&gt;i&lt;/span&gt;nfidel&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;
: &lt;br /&gt;
: &lt;pre class="sourcecode"&gt;
: $ select * from users where clue &amp;gt; 0
: no rows returned
: &lt;/pre&gt;&lt;br /&gt;
: &lt;br /&gt;
: &lt;br /&gt;
&lt;br /&gt;
HI,&lt;br /&gt;
&lt;br /&gt;
I have been reading for the XML tutorial for the past few days. I realized that I have two problems to be overcome.&lt;br /&gt;
&lt;br /&gt;
1. My XML is not in a well-formed format. I would like to find out which section is wrong. Is there any web software to test or validate the XML? I tried the link below but I dont know why it cant work. Is there any other link to be used?&lt;br /&gt;
&lt;a href="http://www.w3schools.com/dom/dom_validate.asp"&gt;http://www.w3schools.com/dom/dom_validate.asp&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
2. From what I read, it specified that I should try to avoid the use of attributes if information feels like data, Use child elements if the information feels like data. In my case, many attributes are used and the information to be displayed are scoring data, means I should change the use of attributes to child elements? Do you mind to elaborate on how to change the use of attributes to child elements in the codes?&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/xml/336751/337213/re-how-to-re-organized-xml-file-and-call-xml-file-from-my-software/#337213</guid>
      <pubDate>Tue, 16 May 2006 18:26:41 -0700</pubDate>
      <category>XML Development</category>
    </item>
    <item>
      <title>Re: How to re-organized XML file and call XML file from my software</title>
      <link>http://www.programmersheaven.com/mb/xml/336751/337225/re-how-to-re-organized-xml-file-and-call-xml-file-from-my-software/#337225</link>
      <description>: : Well, not knowing how the data is used or exactly what it represents, I can only offer vague suggestions.  Here is one way you might make the data more hierarchical:&lt;br /&gt;
: : &lt;br /&gt;
: : &lt;pre class="sourcecode"&gt;
: : &amp;lt;?xml version="1.0"?&amp;gt;
: : &amp;lt;Scoresheet UserName="tyty"&amp;gt;
: :     &amp;lt;Technique Number="1" Date="2006-04-27" Time="16:12:21" StartScore="80" Endscore="62" MaximumMagnitudeScore="28" DurationScore="46" AverageScore="54"&amp;gt;
: :         &amp;lt;Sentence Number="1" Time="16:11:10" StartScore="100" Endscore="100" MaximumMagnitudeScore="0" DurationScore="100" AverageScore="75" /&amp;gt;
: :         &amp;lt;Sentence Number="2" Time="16:11:27" StartScore="70" Endscore="30" MaximumMagnitudeScore="50" DurationScore="0" AverageScore="37" /&amp;gt;
: :         &amp;lt;Sentence Number="3" Time="16:11:44" StartScore="80" Endscore="0" MaximumMagnitudeScore="20" DurationScore="0" AverageScore="25" /&amp;gt;
: :         &amp;lt;Sentence Number="4" Time="16:11:59" StartScore="50" Endscore="90" MaximumMagnitudeScore="0" DurationScore="40" AverageScore="45" /&amp;gt;
: :         &amp;lt;Sentence Number="5" Time="16:12:15" StartScore="100" Endscore="90" MaximumMagnitudeScore="70" DurationScore="90" AverageScore="87" /&amp;gt;
: :     &amp;lt;/Score&amp;gt;
: : &amp;lt;/Scoresheet&amp;gt;
: : &lt;/pre&gt;&lt;br /&gt;
: : &lt;br /&gt;
: : Bear in mind that any changes to the format will require code changes where the XML is processed or created.&lt;br /&gt;
: : &lt;br /&gt;
: : &lt;br /&gt;
: : &lt;span style="font-size: large;"&gt;&lt;em&gt;&lt;span style="color: Blue;"&gt;&lt;span style="color: Red;"&gt;i&lt;/span&gt;nfidel&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;
: : &lt;br /&gt;
: : &lt;pre class="sourcecode"&gt;
: : $ select * from users where clue &amp;gt; 0
: : no rows returned
: : &lt;/pre&gt;&lt;br /&gt;
: : &lt;br /&gt;
: : &lt;br /&gt;
: &lt;br /&gt;
: HI,&lt;br /&gt;
: &lt;br /&gt;
: I have been reading for the XML tutorial for the past few days. I realized that I have two problems to be overcome.&lt;br /&gt;
: &lt;br /&gt;
: 1. My XML is not in a well-formed format. I would like to find out which section is wrong. Is there any web software to test or validate the XML? I tried the link below but I dont know why it cant work. Is there any other link to be used?&lt;br /&gt;
: &lt;a href="http://www.w3schools.com/dom/dom_validate.asp"&gt;http://www.w3schools.com/dom/dom_validate.asp&lt;/a&gt;&lt;br /&gt;
: &lt;br /&gt;
: 2. From what I read, it specified that I should try to avoid the use of attributes if information feels like data, Use child elements if the information feels like data. In my case, many attributes are used and the information to be displayed are scoring data, means I should change the use of attributes to child elements? Do you mind to elaborate on how to change the use of attributes to child elements in the codes?&lt;br /&gt;
: &lt;br /&gt;
2: here is an example of the technique using child elements:&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
    &amp;lt;Scoresheet UserName="tyty"&amp;gt;
        &amp;lt;Technique&amp;gt;
           &amp;lt;Number&amp;gt;1&amp;lt;/Number&amp;gt;
           &amp;lt;Date&amp;gt;2006-04-27&amp;lt;/Date&amp;gt;
           &amp;lt;Time&amp;gt;16:12:21&amp;lt;/Time&amp;gt;
           &amp;lt;StartScore&amp;gt;80&amp;lt;/StartScore&amp;gt;
           &amp;lt;Endscore&amp;gt;62&amp;lt;/Endscore&amp;gt;
           &amp;lt;MaximumMagnitudeScore&amp;gt;28&amp;lt;/MaximumMagnitudeScore&amp;gt;
           &amp;lt;DurationScore&amp;gt;46&amp;lt;/DurationScore&amp;gt;
           &amp;lt;AverageScore&amp;gt;54&amp;lt;/AverageScore&amp;gt;
        &amp;lt;/Technique&amp;gt;
&lt;/pre&gt;&lt;br /&gt;
The same can be done using the Sentence nodes.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/xml/336751/337225/re-how-to-re-organized-xml-file-and-call-xml-file-from-my-software/#337225</guid>
      <pubDate>Tue, 16 May 2006 20:46:10 -0700</pubDate>
      <category>XML Development</category>
    </item>
  </channel>
</rss>