0

I am new to XML parsing, and I am having hard time parsing GCIDE xmls. I just need the headword with tag <hw></hw> and the definition field. I kinda accomplished that, but how can I parse the <def> elements with multiple meanings which are inside <sn> tag?

here is the link of xml files. http://www.ibiblio.org/webster/#the_text_files

The code I have written so far http://pastebin.com/mqdc5z0G

My code is having problem beacause the xml tags are not uniform I think.

Thanks in advance.

4

0 に答える 0