Find Jobs
Hire Freelancers

Modification to C# XML parsing function

$10-30 USD

Concluído
Publicado há mais de 10 anos

$10-30 USD

Pago na entrega
I have a function that parses an XML file. I need the function updated to parse out the tracking numbers and package IDs and put the into the List trackingNumbersAndPackageIDs. Each Package object has a Reference5 value that is the ID of the package. The TrackingNumbers list are the tracking numbers that go with the package IDs. They are both sorted in the same order. I need the trackingNumbersAndPackageIDs list populated with the Reference5 values and the TrackingNumbers that go with them. private static void ProcessOutFile(string outFile, XmlDocument doc) { List trackingNumbersAndPackageIDs = new List(); string invoice = [login to view URL](outFile); var trackingNumbers = [login to view URL](doc, "//TrackingNumbers/TrackingNumber"); if ([login to view URL] > 0) { [login to view URL]("I found these tracking numbers:", trackingNumbers); } else { [login to view URL]("The file {0} didn't have any 'TrackingNumber' elements in it!\n", outFile); } var merchandiseDescriptions = [login to view URL](doc, "//MerchandiseDescription"); if ([login to view URL] > 0) { [login to view URL]("I found these merchandise numbers:", merchandiseDescriptions); } else { [login to view URL]("The file {0} didn't have any 'MerchandiseDescription' elements in it!\n", outFile); } for (int i = 0; i < [login to view URL] && i < [login to view URL]; i++) { if (i >= [login to view URL]) { [login to view URL]("Tracking# is not available for package {0}", i + 1); } else { var merchandiseDescription = merchandiseDescriptions[i]; string[] values = [login to view URL](' '); [login to view URL]("Sending to website script."); var post = [login to view URL]("track={0}&id={1}&invoice={2}", trackingNumbers[i], 9991, invoice); for (int j = 0; j < ([login to view URL]() / 2); ++j) post += [login to view URL]("&quan{2}={0}&sku{2}={1}", values[j + j], values[j + j + 1], j); [login to view URL](post); const string url = "[login to view URL]"; //var content = [login to view URL](url, post); } } }
ID do Projeto: 4934310

Sobre o projeto

1 proposta
Projeto remoto
Ativo há 11 anos

Quer ganhar algum dinheiro?

Benefícios de ofertar no Freelancer

Defina seu orçamento e seu prazo
Seja pago pelo seu trabalho
Descreva sua proposta
É grátis para se inscrever e fazer ofertas em trabalhos
Concedido a:
Avatar do Usuário
Hey, I can do this... Try mee
$24 USD em 2 dias
5,0 (3 avaliações)
1,8
1,8
1 freelancers estão ofertando em média $24 USD for esse trabalho
Avatar do Usuário
Sir, I have working experience in Entity Frame Work using Code First, Database First Approaches, ASP.NET, MVC 3.0, MVC 4.0, C#, SQL Server 2008, JQUERY, Fluent/UnObtrusive and JQuery Validation. I am good in coding only. No Designing. May I help you ?
$10 USD em 1 dia
0,0 (0 avaliações)
0,0
0,0

Sobre o cliente

Bandeira do(a) UNITED STATES
United States
5,0
414
Método de pagamento verificado
Membro desde dez. 14, 2004

Verificação do Cliente

Obrigado! Te enviamos um link por e-mail para que você possa reivindicar seu crédito gratuito.
Algo deu errado ao enviar seu e-mail. Por favor, tente novamente.
Usuários Registrados Total de Trabalhos Publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Carregando pré-visualização
Permissão concedida para Geolocalização.
Sua sessão expirou e você foi desconectado. Por favor, faça login novamente.