/* Copyright 2002, 2003, 2019 Elliotte Rusty Harold
This library is free software; you can redistribute it and/or modify
it under the terms of version 2.1 of the GNU Lesser General Public
License as published by the Free Software Foundation.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library. If not, see
.
You can contact Elliotte Rusty Harold by sending e-mail to
elharo@ibiblio.org. Please include the word "XOM" in the
subject line. The XOM home page is located at https://xom.nu/
*/
package nu.xom.samples;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import nu.xom.Document;
import nu.xom.Element;
import nu.xom.Serializer;
/**
*
*
* Demonstrates building a structured XML document,
* from flat, tabular data. A different version of this
* example was originally developed for Chapter 4 of
* Processing
* XML with Java.
*
*
* @author Elliotte Rusty Harold
* @version 1.3.1
*
*/
public class FlatXMLBudget {
public static void convert(List