Can you declare and use a variable inside an XML without using XSL to transform/parse the XML Can you declare and use a variable inside an XML without using XSL to transform/parse the XML xml xml

Can you declare and use a variable inside an XML without using XSL to transform/parse the XML


You would need to add a DOCTYPE declaration to your file, declare an entity there and then reference that entity in the document body.

<!DOCTYPE root [  <!ENTITY path "c:\Program Files\MyProgram">]><root>  <element ID="MyConfigFile" url="&path;\resources\MyProgramconfig.xml" />  <element ID="Executable" url="&path;\Prog.exe" /></root>


not sure, try with entity

<!ENTITY path "c:\Program Files\MyProgram\"><element ID="MyConfigFile" url={&path + "resources\MyProgramconfig.xml"} />