Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.io.*;

public class Main {
    public static String xmlParser(String filepath) {
        try {
            StringBuilder sb;
            try {
                BufferedReader br = new BufferedReader(new FileReader(new File(filepath)));
                String line;
                sb = new StringBuilder();
                while ((line = br.readLine()) != null) {
                    sb.append(line.trim());
                }
            } finally {

            }
            return sb.toString();
        } catch (Exception e) {
            System.out.println(e.toString());
            return "";
        }

    }
}