Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can I modify this XML file

Status
Not open for further replies.

wtfidk

Technical User
Apr 15, 2010
3
US
I program vehicle computers for a living. The apps I use access xml files to verify that the part number is in the list of part numbers that can be programmed. If the part number is not in the list, I replace one of them with the part number I need. My question is, can this file be modified with a line that would allow all part numbers to be programmed without having to add it to the list if it is not there. Below is an example of an xml file I work with.

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE FlPart SYSTEM "flPart.dtd"><FlPart><Delim>~</Delim><NewPart>04880004</NewPart><FlName>f0488000.499</FlName><FlSoftware>04880004.flbin</FlSoftware><FlSum>3332</FlSum><FlSize>262144</FlSize><Contlr>PCM</Contlr><ModuleType>JTEC</ModuleType><ModuleId>007</ModuleId><Calib>AUTOMATIC 50 STATE 4 SPEED</Calib><SalesTxt></SalesTxt><Change>0</Change><Instruc>1</Instruc><ApplicInfo><Applic>1390748272</Applic><ApplicYear>1996</ApplicYear><ApplicBody>ZJ</ApplicBody><ApplicEngine>- 4.0L 6 CYL (MPI)</ApplicEngine></ApplicInfo><OldPartInfo><OldPart>04886692</OldPart><Generic>0</Generic></OldPartInfo><OldPartInfo><OldPart>04886694</OldPart><Generic>0</Generic></OldPartInfo><OldPartInfo><OldPart>04886761</OldPart><Generic>0</Generic></OldPartInfo><OldPartInfo><OldPart>04886800</OldPart><Generic>0</Generic></OldPartInfo><OldPartInfo><OldPart>04886883</OldPart><Generic>0</Generic></OldPartInfo><OldPartInfo><OldPart>04886945</OldPart><Generic>0</Generic></OldPartInfo><OldPartInfo><OldPart>05014152AA</OldPart><Generic>1</Generic></OldPartInfo><OldPartInfo><OldPart>56028412</OldPart><Generic>0</Generic></OldPartInfo><OldPartInfo><OldPart>56041172</OldPart><Generic>0</Generic></OldPartInfo><OldPartInfo><OldPart>56041173</OldPart><Generic>0</Generic></OldPartInfo><OldPartInfo><OldPart>56041206</OldPart><Generic>0</Generic></OldPartInfo><OldPartInfo><OldPart>56041261</OldPart><Generic>0</Generic></OldPartInfo><OldPartInfo><OldPart>56043172</OldPart><Generic>0</Generic></OldPartInfo><OldPartInfo><OldPart>56044206</OldPart><Generic>0</Generic></OldPartInfo><OldPartInfo><OldPart>56044261</OldPart><Generic>0</Generic></OldPartInfo></FlPart>
 
The list of part numbers that is checked are titled OldPart. Located at the bottom of the file.
 
>My question is, can this file be modified with a line that would allow all part numbers to be programmed without having to add it to the list if it is not there.
Actually don't quite understand what you've exactly in mind. But, an extrapolation of the meaning suggests the answer is "no". The document itself is just a host of data. The desired functionality remains privy to the application level.
 
tsuji,
When I hook up a vehicle computer to program it, the part number must be present in the xml file. If it is not I can edit a part number thats already there. For example, if I am going to program a 56044207, I would replace part number Oldpart 56044206 with 56044207 and save it.

So instead of editing the file everytime, i was hoping to be able to modify it with a line that would some how include all part numbers.

But after reading your response, I understand what you mean.

Thank you for your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top