Refilling xml file with data from sdf file

139 Views Asked by At

As I am very new to python, I have been struggling to finish the code.

I have an xml file with a small part I need to refill.

XML excerpt

This is the part that I need to refill.

<Definition>
    <Model> 
        <Xcaption>1</XCaption>
        <Ycaption>A</YCaption>
        <String>manynumbers</String>```

This is repeating 80 times in the xml structure

Problem and question

I am able to enter all the elements with elementree.

Yet, I need to take information from the sdf file, that has this data in different order.

I organized it with ipywidgets with drop-down value, yet I have trouble thinking forward to connect one with another.

Any ideas?

0

There are 0 best solutions below