Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aspose-com-gists/de1e265bc7a9ee9b806fb7be86853933 to your computer and use it in GitHub Desktop.
Save aspose-com-gists/de1e265bc7a9ee9b806fb7be86853933 to your computer and use it in GitHub Desktop.
Convert TXT to XML in Python | Python Text to XML Converter
# This code example demonstrates how to convert TXT to XML.
import jpype
import asposecells
jpype.startJVM()
import asposecells.api as ac
# Load an existing TXT file
workbook = ac.Workbook("C:\\Files\\sample.txt")
# Save the file as XML
workbook.save("C:\\Files\\Output.xml")
jpype.shutdownJVM()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment