title: how to write and read .xps file using java?
body: <p>Like the code below generate a pdf file</p>
  
  <pre><code>package write;
  
  import java.awt.Color;
  import java.io.File;
  import java.io.FileNotFoundException;
  import java.io.FileOutputStream;
  import java.io.IOException;
  import java.net.MalformedURLException;
  import com.lowagie.text.Chunk;
  import com.lowagie.text.Document;
  import com.lowagie.text.DocumentException;
  import com.lowagie.text.Element;
  import com.lowagie.text.Font;
  import com.lowagie.text.Image;
  import com.lowagie.text.List;
  import com.lowagie.text.Paragraph;
  import com.lowagie.text.pdf.PdfPTable;
  import com.lowagie.text.pdf.PdfWriter;
  public class CreatePdf {
      public static void main(String[] args) {
          try {
              File file = new File(/*pdf file location*/);
              FileOutputStream fileout = new FileOutputStream(file);
              Document document = new Document();
              PdfWriter.getInstance(document, fileout);
              document.addAuthor("Me");
              document.addTitle("My iText Test");
              document.open();
              Chunk chunk = new Chunk("iText Test");
              Font font = new Font(Font.COURIER);
              font.setStyle(Font.UNDERLINE);
              font.setStyle(Font.ITALIC);
              chunk.setFont(font);
              chunk.setBackground(Color.CYAN);
              document.add(chunk);
              Paragraph paragraph = new Paragraph();
              paragraph.add("Hello World");
              paragraph.setAlignment(Element.ALIGN_CENTER);
              document.add(paragraph);
  
              Image image;
  
              try {
                  image = Image.getInstance(/*Image location*/);
                  image.setAlignment(Image.MIDDLE);
                  document.add(image);
  
              } catch (MalformedURLException e) {
                  e.printStackTrace();
              } catch (IOException e) {
                  e.printStackTrace();
              }
              List list = new List(true, 15);
              list.add("ABC");
              list.add("DEF");
              document.add(list); 
  
              PdfPTable table = new PdfPTable(3);
              table.addCell("Name");
               table.addCell("Age");
               table.addCell("Location");
  
               table.addCell("Name1");
               table.addCell("Age1");
               table.addCell("Location1");
  
               table.addCell("Name2");
               table.addCell("Age2");
               table.addCell("Location2");
               document.add(table);   
  
  System.out.println("Pdf is created");
              document.close();
          } catch (FileNotFoundException e) {
              e.printStackTrace();
          } catch (DocumentException e) {
              e.printStackTrace();
          }
      }
  }
  </code></pre>
  
  <p>Is there any jar files are available for reading and writing .xps file in java?
  Is it possible to read a existing .xps file and extracting text,images,tables etc.....</p>