ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

What are the steps necessary to parse XML documents?

user-image
تم إضافة السؤال من قبل Mohammed Shaban , Senior software engineering , Thiqah
تاريخ النشر: 2016/02/14
Lashima Nasreen
من قبل Lashima Nasreen

  • Create a instance of DocumentBuilderFactory Object (newInstance() method).
  • Reference to DocumentBuilder object using newDocumentBuilder() method of DocumentBuilderFactory.
  • Reference to Document object of the xml file to be parsed by using DocumentBuilder.parse(File xmlfile) with File object as argument
  • start using Document object to get the elements of the xml file using getElementsByTagName(),getElementsByName() 

Jad Sarout
من قبل Jad Sarout , Founder & CEO , Yelostudio

Step 1 - Install a library that parses XML documents appropriate for the language you are using.

Step 2 - Use the library's API, as specified by its documentation, to parse XML

Step 3 - ...?

Step 4 - Profit

المزيد من الأسئلة المماثلة

هل تحتاج لمساعدة في كتابة سيرة ذاتية تحتوي على الكلمات الدلالية التي يبحث عنها أصحاب العمل؟