Javascript XML parser

Javascript functions to read/write XML data. I have no XML parsing facilities within my environment so they have to be created by hand.

Processing must work on attributes AND tags.

I'm not looking for a fully fledged XML parser. That is way beyond the scope of this project. However if someone has some source code for one which they just want to copy/paste and send to me then I'm happy and you have a very easy job to do!

The XML data I have is very simple in structure and does not contain complex hierarchies etc. For this reason something which will work with a structure like the one described is fine.

I need just a few functions which could look like:


SetValue(FieldName. Value)


SetAttribute(AttributeName, Value)

Note: The set functions will need to escape any invalid characters. I've written a function to do this which is included here just to make the job easier.

Preference will be given to candidates who can give me something which is more flexible than the very simple usage outline I've given here.

The XML data which I need to read/write looks like this. This data could be better structured but that is not the point of this excerise. I simply want some code which will make it easy for me to manipulate this structure.

NOTE:See deliverables for the mentioned XML and source. Ran out of space.

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.

2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request.

3) Exclusive and complete copyrights to all work purchased. (No GPL, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site).

<Vehicle Color="Red", Make="Ford", Model="Mustang">

<Field Name="Doors", Value="4" />

<Field Name="BuildDate", Value="20 sept 2003" />

<Field Name="CheckedBy", Value="Bob" />


function generateValidXML(inString)


var outString = "";

var i=0;

var checkCar = "";

for (i=0; i<[url removed, login to view]; i++)


checkChar = [url removed, login to view](i, 1);

if(checkChar == "&") {

outString = outString + "'&";


else if (checkChar == "<") {

outString = outString + "'<";


else if (checkChar == ">") {

outString = outString + "'>";


else if ([url removed, login to view]() == 34) {

outString = outString + "'&quot;";


else {

outString = outString + checkChar;



return outString;


## Platform


Habilidades: Engenharia, Java, MySQL, PHP, Arquitetura de software, Teste de Software, XML, XSLT

Veja mais: run javascript, i need someone to write a javascript for me, data structure note, better than javascript, better javascript, xml parser, escape, color red, javascript code parser, described structure, java parsing, xml send request, paste javascript, javascript xml request, simple java function, javascript form copy, set java environment, structured data platform, java simple function, javascript xml form, parsing request javascript, xml quot, ready javascript, structure javascript project, xml structure

Acerca do Empregador:
( 136 comentários ) London, United Kingdom

ID do Projeto: #2991006

Concedido a:


See private message.

$2 USD em 2 dias
(3 Comentários)

3 freelancers are bidding on average $27 for this job


See private message.

$35.7 USD in 2 dias
(22 Comentários)

See private message.

$42.5 USD in 2 dias
(17 Comentários)