Class XMLToXTalk
java.lang.Object
org.apache.vinci.transport.document.XMLToXTalk
Class for parsing an XML document and converting directly to XTalk.
-
Method Summary
-
Method Details
-
xmlToXTalk
public static void xmlToXTalk(Reader r, String filename, boolean purgeWhitespace, String xml_filename) throws ServiceException, IOException Right now we assume there are NO processing instructions. Given an XML file, create an XTalk representation of that data. If xml_filename is non-null, then this method will also create a UTF-8 representation of the xml file, exactly mimicing the XTalk encoding (e.g. removing irrelevant whitespace, expanding entity refs, etc).- Parameters:
r
- -filename
- -purgeWhitespace
- -xml_filename
- -- Throws:
ServiceException
- -IOException
- -
-
main
- Throws:
Exception
-