I need to extract data from txt file and export it as
this. txt file can be in any format, though it must contain data in xml.Code:<?xml version="1.0" encoding="ibm852" ?> <SomeServer Command="Receipt"> <Item Description="312312 " Quantity="1.00" Price="13.99" VatInfo="2" Department="1" /> <Item Description="Hamburger " Quantity="1.00" Price="32.00" VatInfo="2" Department="1" /> <Item Description="Dental floss " Quantity="1.00" Price="500.00" VatInfo="2" Department="1" /> <Item Description="Microphone " Quantity="1.00" Price="12.00" VatInfo="2" Department="1" /> <Payment Type="Card" Amount="300.00" /> <Payment Type="Cash" Amount="257.99" /> <AdditionalLine Message="Thanks and come again!" /> </SomeServer>
i am new to programming... and want to start with this project (thats for my work and possibly a pay rise) to continue with complicated programs.
Program must take some test.txt file from specific directory extract specific data from it and parse that data in xml file with those numbers. And it must do it automatically.
What have i done so far.
managed to save xml file in a directory of my choosing and managed to create gui "Yay for me!" Managed to read from text file but then i realised that i actually cant do anything and decided its best for me to ask for help.
If someone decides to do everything for me i would appreciate if that someone comments specific lines so i atleas know what does that speific command do.
Thanks in advance.


" Managed to read from text file but then i realised that i actually cant do anything and decided its best for me to ask for help.
Reply With Quote