Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Convert xml files #1

Copy link
Copy link
@Enzog2

Description

@Enzog2
Issue body actions

Hi
I have the code below in python
i need to convert e group of xml files stored in a particular folder
i need to change the 'my_table' with the name of the file I'am converting
is it possible?
thanks

ASCII-protocol-270.zip
ASCII-protocol-271.zip
filelist.txt

**with open(r'c:/metadati/asim/asim_metadati/filelist.txt', 'r') as fn:
for line in fn:
with open(line.rstrip(), mode='r') as file_content:

            converter = sqlizer.File(file_content, sqlizer.DatabaseType.SQLServer, sqlizer.FileType.XML, r'C:\Metadati\ASIM\ASIM_Metadati\%file_content' , 'my_table')
            converter.convert(wait=True)
            f=(converter.download_result_file().text)
            print (f)
            print (file_content)**
Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.