![]() ![]() » S2 UNKRIS Jakarta » STAI Al-Akbar Surabaya » STAI Al-Andina Sukabumi » STAI Al-Hidayah Tasikmalaya » STAI Duta Bangsa Bekasi » STAI Miftahul Ulum Mukomuko » STAI Muhammadiyah Probolinggo » Polsapa Surakarta » Poltekkes Kerta Cendekia Sidoarjo » S2 FISIP UMJ Jakarta » S2 Geo Nusantara Cileungsi Bogor » S2 IAI Al-Azhaar Lubuklinggau » S2 ITB Ahmad Dahlan Jakarta » S2 STIE Swadaya Jakarta » Polhas Surakarta » Polita Sumatera Barat » Politeknik Bhakti Kartini Bekasi » Politeknik Ganesha Guru Singaraja » Politeknik Indonesia Venezuela Aceh » Politeknik LP3I Depok » Polnas Denpasar » MM UNKRIS Jakarta » MM UNTARA Tangerang » MMT UNKRIS Jakarta » Mpu Tantular Kedoya Jakarta » MT Elektro JGU Jakarta » MT UNKRIS Jakarta » Pelita Raya Institute » MM STIE GICI Business School Bogor » MM STIE GICI Business School Jakarta » MM STIE IGI Jakarta » MM STIE Mitra Yogyakarta » MM STIE Swadaya Jakarta » MM STIMA IMMI Jakarta » MM Universitas Surapati Jakarta » MIKOM FISIP UMJ Jakarta » MKom Geo Nusantara Cileungsi Bogor » MM Geo Nusantara Cileungsi Bogor » MM Patria Artha Makassar » MM Pelita Bangsa Bekasi » MM STIE ABI Surabaya » MM STIE Ganesha Jakarta » ITEKES Tri Tunas Nasional Makassar » ITSK Sugeng Hartono Sukoharjo » JGU Cibitung Bekasi » JGU Jakarta » MA STIE Swadaya Jakarta » MH UNKRIS Jakarta » MIA FISIP UMJ Jakarta ![]() » ISTA Jakarta » ITB Ahmad Dahlan Jakarta » ITB STIKOM Bali » ITB STIKOM Bali Abiansemal » ITB STIKOM Jimbaran Bali » ITBKes Muhammadiyah Tulungagung » ITBU Jakarta » IAI Yasni Bungo Jambi » IKIP Widya Darma Surabaya » IMWI Sukabumi » Institut Geo Nusantara Cileungsi Bogor » Institut Studi Islam Sunan Doe » IPM Malang » ISIF Cirebon I have the feeling that this might not be the most elegant solution, since I am basically doing everything in the same actionevent.» Fakultas Pertanian UMJ Jakarta » FE MH Thamrin Jakarta » FISIP UMJ Jakarta » FK MH Thamrin Jakarta » IAI Abdullah Said Batam » IAI Al-Azhaar Lubuklinggau » IAI Al-Ghurabaa Jakarta Private void jButton5ActionPerformed( evt) I would really like to get some constructive criticism on this code, since it is my first project, outside some samples I just copied from a beginners Java book. What I came up with so far, is the following (using Netbeans 6): For instance, the "CategoryFeatureGroup" with the attribute: ID="35", has several matching "ProductFeature", for instance this piece from the XML has the data that belongs under that category: What I need, is to automatically get the "CategoryFeatureGroup", and all the "ProductFeature" that belong to it. I cut a lot of data out, but I think the structure of the XML is still clear. I am most interested in extracting the specification. So, the XML file contains a general description, and detailed specification. I picked Java for this, because it is the language I am most proficient in (HTML / CSS doesn't count/apply here. Lazy as I am, I started looking into a way to get the data myself. ![]() Since this doesn't happen very often, our company doesn't want to spend money to fix the problem, and I have to manually add the content in the CMS. 90% of the content on our websites come from the Icecat database (However, our CMS has sometimes problems correctly parsing the XML data for some products, HP products in particular. In my daily work I am a contentmanager for a webshop. So any obvious mistakes are probably not that obvious to me. No education, just reading tutorials on the web and some small, short programming. So I will start with this: I am an absolute beginner when it comes to Java, XML and XPath. I was not sure whether to open this topic here, or in the absolute beginners forum.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |