// Path: source-code/app/src/main/java/org/buildmlearn/toolkit/videocollectiontemplate/Constants.java
// public class Constants {
//     public static final String[] VIDEO_COLUMNS = {
//             VideoContract.Videos.TABLE_NAME + "." + VideoContract.Videos._ID,
//             VideoContract.Videos.TITLE,
//             VideoContract.Videos.DESCRIPTION,
//             VideoContract.Videos.LINK,
//             VideoContract.Videos.THUMBNAIL_URL
//     };
//     public static final int COL_TITLE = 1;
//     public static final int COL_DESCRIPTION = 2;
//     public static final int COL_LINK = 3;
//     public static final int COL_THUMBNAIL_URL = 4;
//     public static String XMLFileName = "video_content.xml";
// }


import org.buildmlearn.toolkit.videocollectiontemplate.Constants;
import org.w3c.dom.Document;
import org.xml.sax.SAXException;
import java.io.File;
import java.io.IOException;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
package org.buildmlearn.toolkit.videocollectiontemplate.data;




/**
 * @brief Contains xml data utils for video collection template's simulator.
 * <p/>
 * Created by Anupam (opticod) on 13/5/16.
 */
public class DataUtils {

    public static String[] readTitleAuthor() {
        String result[] = new String[2];
        DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();

        dbf.setValidating(false);

        DocumentBuilder db;
        Document doc;
        try {
// Path: source-code/app/src/main/java/org/buildmlearn/toolkit/videocollectiontemplate/Constants.java
// public class Constants {
//     public static final String[] VIDEO_COLUMNS = {
//             VideoContract.Videos.TABLE_NAME + "." + VideoContract.Videos._ID,
//             VideoContract.Videos.TITLE,
//             VideoContract.Videos.DESCRIPTION,
//             VideoContract.Videos.LINK,
//             VideoContract.Videos.THUMBNAIL_URL
//     };
//     public static final int COL_TITLE = 1;
//     public static final int COL_DESCRIPTION = 2;
//     public static final int COL_LINK = 3;
//     public static final int COL_THUMBNAIL_URL = 4;
//     public static String XMLFileName = "video_content.xml";
// }


// Path: source-code/app/src/main/java/org/buildmlearn/toolkit/videocollectiontemplate/data/DataUtils.java
import org.buildmlearn.toolkit.videocollectiontemplate.Constants;
import org.w3c.dom.Document;
import org.xml.sax.SAXException;
import java.io.File;
import java.io.IOException;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;

package org.buildmlearn.toolkit.videocollectiontemplate.data;




/**
 * @brief Contains xml data utils for video collection template's simulator.
 * <p/>
 * Created by Anupam (opticod) on 13/5/16.
 */
public class DataUtils {

    public static String[] readTitleAuthor() {
        String result[] = new String[2];
        DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();

        dbf.setValidating(false);

        DocumentBuilder db;
        Document doc;
        try {
            File fXmlFile = new File(Constants.XMLFileName);