Em Andamento

C# Script to convert CSV to XML (easy)

**UPDATE:

Here's my current solution:

**<[url removed, login to view]>

**These are the parts that need to be completed: E:\WindowsFormsApplication1BarCode\WindowsFormsApplication1BarCode\[url removed, login to view]

lines: 209 and 212**

**E:\WindowsFormsApplication1BarCode\WindowsFormsApplication1BarCode\[url removed, login to view]

all functions**

**Also the validate button needs to be the default button, this way if the user enters the code and hits [enter] the button will be clicked.**

Below are the original requirements >>>>>>>>>>>>>>

## Deliverables

I need 4 methods/functions.

Put them all into on C# class file.

I will include this file as part of my winforms app. I'm using C# .net 3.5

1) Convert CSV to XML

Details: Open the csv file from the absolute path specified and convert it to an xml doc and save that xml doc at the target specified.

Attached is a sample csv - this columns, column order, and data types are the same as the real documents.

The attached file will be sent to a function, your function needs to convert this file to xml

In this case, the xml output? would be like:

<tickets>

<ticket id="

DA35F954441A46D0AB19E2F95365DF43">

<FirstName>Dave</FirstName>

<LastName>Jones</LastName>

<PayersName>Mike Thomas</PayersName>

<TransactionType>Pay at the Door</TransactionType>

<OrderStatus>Received Payment, Processing Order</OrderStatus>

<Barcode>DA35F954441A46D0AB19E2F95365DF43</Barcode>

<Admitted>TRUE</Admitted>

</ticket>

</tickets>

*2) Task 2: IsValid

I need a function that can scan the xml document.*

I will pass it the TicketId

If the ticketId does not exist - return "Does not exist"

If the the Admitted = True, return "already Admitted"

*3) Task 3: Mark Admitted = true

**Another? function that can scan the xml document.*

I will pass it the TicketId

Find the ticket node by the? ticketId

Set Admitted= true

And update the file (actually save the xml doc)

These will go in a winforms app that will be used with a usb bar code scanner.

So the end user may scan 1 code every 2 seconds, your code must be sure efficient and not lock up.

Example no: file is being used by another process errors.

* * *This broadcast message was sent to all bidders on Tuesday Jan 5, 2010 6:03:17 PM:

Hello, Please re-read the listing as I have jsut updated it. I made some updates to the winform. Now the end user has a file selector option. Please checkout the new app. [url removed, login to view] Please send me your feedback and let me know what you can do. I will pick the coder tonight.

Habilidades: Programação C#, Engenharia, Microsoft, MySQL, PHP, Gestão de projetos, Arquitetura de software, Teste de Software, Área de trabalho do Windows

Ver mais: xml coder, winforms 6, what's my zip coder, what is a temp, thomas net, return path, node csv, mike jones, find the solution to, convert file to, script convert xml, script csv, php end script, find an app coder, winforms net, ticket id, open xml, find app coder, find a node coder, door code, convert node, C# Winform, c winforms, path scanner, php process csv

Acerca do Empregador:
( 74 comentários ) Prague , United States

ID do Projeto: #3054555

Premiar a:

assessino

See private message.

$12 USD em 5 dias
(55 Avaliações)
5.9

33 freelancers estão ofertando em média $11 para este trabalho

AndrewSavicki

See private message.

$8.5 USD in 5 dias
(35 Comentários)
6.8
eperfections

See private message.

$12.75 USD in 5 dias
(183 Comentários)
6.8
dvfabia

See private message.

$12.75 USD in 5 dias
(265 Comentários)
6.3
Ignytek

See private message.

$8.5 USD in 5 dias
(23 Comentários)
5.3
djellison2000

See private message.

$12.75 USD in 5 dias
(40 Comentários)
5.1
alexitkin

See private message.

$11.9 USD in 5 dias
(33 Comentários)
4.6
sdevelopervw

See private message.

$12.75 USD in 5 dias
(26 Comentários)
4.3
bucktracker

See private message.

$12.75 USD in 5 dias
(26 Comentários)
4.2
vw7437936vw

See private message.

$12.75 USD in 5 dias
(20 Comentários)
4.1
homecoder82

See private message.

$12.75 USD in 5 dias
(47 Comentários)
4.1
codexone

See private message.

$4.25 USD in 5 dias
(14 Comentários)
3.9
elephantpro

See private message.

$12.75 USD in 5 dias
(11 Comentários)
3.5
yesican100

See private message.

$12.75 USD in 5 dias
(9 Comentários)
3.5
sajitvw

See private message.

$12.75 USD in 5 dias
(7 Comentários)
3.5
vw6815109vw

See private message.

$4.25 USD in 5 dias
(2 Comentários)
3.3
fbergmann

See private message.

$12.75 USD in 5 dias
(6 Comentários)
3.2
OSMman

See private message.

$12.75 USD in 5 dias
(5 Comentários)
3.2
kanhashriinc

See private message.

$10.2 USD in 5 dias
(9 Comentários)
2.9
asimdeveloper

See private message.

$12.75 USD in 5 dias
(5 Comentários)
2.5
mselimsl

See private message.

$8.5 USD in 5 dias
(14 Comentários)
2.6