Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

BIGINNER NEED HELP!!!!!!!

sumanthansumanthan Posts: 6Member
I need to convert the bible text to XML Balanced Tree Index.
First you have to convert each lines to XML.
example:
1 text on the first line
2 text on the 2nd line
3 text on the 3rd line
4 text on the 4th line
5 text on the 5th line
6 text on the 6th line
7 text on the 7th line
for the whole bible text,
Then you have create index XML
should look like "aaron"
</>
</>
</>
</>
122</> // these are the line which contain the word aaron when yo search the word "aaron"
132</> // these are the line which contain the word aaron
3222</> // these are the line which contain the word aaron

"the bible txt"
http://www.2shared.c...V1611Bible.html
"Exclude word when you search"
http://www.2shared.c...x9/exclude.html

[Code]
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Xml;

namespace Creating_Text_File_Using_Xml
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void button1_Click(object sender, EventArgs e)
{
XmlTextWriter XTW = new XmlTextWriter("savefile.xml", Encoding.Unicode);
XTW.WriteStartDocument();
XTW.WriteStartElement("XMLFILE");
XTW.WriteStartElement("Title");
XTW.WriteString(textBox1.Text);
XTW.WriteEndElement();
foreach(String item in listBox1.Items)
{
XTW.WriteStartElement("Item");
XTW.WriteString(item);
XTW.WriteEndElement();
}
XTW.WriteEndElement();
XTW.WriteEndDocument();
XTW.Close();

}
}
}
[/Code]

The code i created is not complete!!!!
Any One Knows how to do it!!!!
Sign In or Register to comment.