1

I tried to encode nd decode HTML file with Efficient XML. How do I prevent from the decoder to add the tag in the begining of the result file ? Here is the code i am using:

        EFXFactory factory = EFXFactory.newInstance();
        FileInputStream input = new FileInputStream(exiFileName);
        FileOutputStream output = new FileOutputStream(encodedFileName);
        Transcoder trans = factory.newTranscoder();
        trans.encode(input, output);

I tried to change some properties of the factoy but it didn't help. for example:

        factory.setProperty(EFXProperty.HEADER, false);
Erez Sayag
  • 23
  • 4

1 Answers1

0

I would suggest you to contact AgileDelta for support because the API is product-specific and is not published.

Having that said, if the API supports SAX, then you can use JAXP TransformerHandler to convert SAX events into XML with or without XML declaration at the front.

takuki
  • 124
  • 1
  • 5