Worked further on reading from the xml file, we can now extract a title from it and split the NodeList into seperate strings basically if we had:
<ad><title>Grey Elephant For Sale</title></ad>
Our console output would be:
t-grey
t-elephant
t-for
t-sale
I have yet to incorporate special cases like IngoreChar and parsing the strings when a char other then " " appears.
If you find anyway how parse a node without haveing to convert it to String. Go ahead and fix that if you find the code for it, I couldn't.
I uploaded an .xml file call 10rec.xml, you need to put this in your workspace in the project folder for the code to work.
I believe by the end of this weekend, I should be able to finish terms.txt in Phase 1. But if you can help me work on this, I think we should be able to get done Phase 1 completely.
END POST 1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have successfully (nearly) completed everything in Phase 1. The only thing that doesn't work it the record dump or section ads.txt, I don't feel like during the whole thing so maybe we can look for solutions to that together.
The file is uploaded: Phase1.zip if you want to mess around with it.
END POST 2
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Read from XML files
http://www.developerfusion.com/code/2064/a-simple-way-to-read-an-xml-file-in-java/
POST 1
Date: March 22, 2013
Worked further on reading from the xml file, we can now extract a title from it and split the NodeList into seperate strings basically if we had:
<ad><title>Grey Elephant For Sale</title></ad>
Our console output would be:
t-grey
t-elephant
t-for
t-sale
I have yet to incorporate special cases like IngoreChar and parsing the strings when a char other then " " appears.
If you find anyway how parse a node without haveing to convert it to String. Go ahead and fix that if you find the code for it, I couldn't.
I uploaded an .xml file call 10rec.xml, you need to put this in your workspace in the project folder for the code to work.
I believe by the end of this weekend, I should be able to finish terms.txt in Phase 1. But if you can help me work on this, I think we should be able to get done Phase 1 completely.
END POST 1
POST 2
Date: March 23,2013
I have successfully (nearly) completed everything in Phase 1. The only thing that doesn't work it the record dump or section ads.txt, I don't feel like during the whole thing so maybe we can look for solutions to that together.
The file is uploaded: Phase1.zip if you want to mess around with it.
END POST 2
http://docs.oracle.com/cd/E17277_02/html/index.html
Fuck your fucking post numbers.
http://tatoeba.org/eng/download_tatoeba_example_sentences
http://docs.python.org/2/library/csv.html