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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XML and Variable

Status
Not open for further replies.

Michael42

Programmer
Oct 8, 2001
1,454
US
Hello,

Is it possible to use a variable or constant in an XML file?

I have an entry for a file path in an XML file and if I need to change it it could mean changing MANY entries unless ... I can use a variable. Example:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<map>
<map tableid="account" file="C:\[URL unfurl="true"]wwwroot\dev\myapp\data\account.xml"/>[/URL]
<map tableid="file"  file="C:\[URL unfurl="true"]wwwroot\dev\myapp\data\file.xml"/>[/URL]
<map tableid="category" file="C:\[URL unfurl="true"]wwwroot\dev\myapp\data\category.xml"/>[/URL]
</map>
Note: I cannot change the schema.

Thanks,

Michael42
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top