calgarychinese
MIS
Hi there
I guess this question has been asked to death - so here I bring it up again.....
I have this XML page and right now there is an <about> tag that contains information the page name and copyright information.
However the copyright information contains something like 1998-2006 and so instead of going through each XML page to update the year, I would like to extract this whole <about> tag into another file, which each XML can then include. However the <about> tag also contains the module id, e.g. mEmployeeDetail. (that module id will become some kind of a parameter)
So how should I do this then? I am new to XML and worse yet I'm maintaining someone's XML code.
The <about> is pretty straightforward so far, such as
[tt]
<about
style="width:100%;
font-size:10pt;font-family:Verdana,Helvetica,Arial,Sans Serif;
font-weight:bold;
font-style:normal;display:'none';" >
<span id="aboutlabel"
title="Copyright 1995-2006 Something Ltd."
style="position:absolute;top:165px;left:125px;
font-style:normal;
font-family:Verdana,Helvetica,Arial;
font-weight:normal;">
Copyright 1995 - 2006 Something Ltd.
</span>
<span id="aboutlabel"
title="Copyright 1995-2006 Something Ltd.""
style="position:absolute;top:225px;left:125px;
font-style:normal;
font-family:Verdana,Helvetica,Arial;
font-weight:normal;z-index:1;">
Module ID: mEmployeeDetails
</span>
</about>
[/tt]
And I hope to copy that into a separate file (xml) and pass in the ModuleID.
How do I even do that? BTW I have tried googling and I think my XML at work does not support things like xi:include (gosh, I don't even know what these are)
Thanks a lot
Calgarychinese
I guess this question has been asked to death - so here I bring it up again.....
I have this XML page and right now there is an <about> tag that contains information the page name and copyright information.
However the copyright information contains something like 1998-2006 and so instead of going through each XML page to update the year, I would like to extract this whole <about> tag into another file, which each XML can then include. However the <about> tag also contains the module id, e.g. mEmployeeDetail. (that module id will become some kind of a parameter)
So how should I do this then? I am new to XML and worse yet I'm maintaining someone's XML code.
The <about> is pretty straightforward so far, such as
[tt]
<about
style="width:100%;
font-size:10pt;font-family:Verdana,Helvetica,Arial,Sans Serif;
font-weight:bold;
font-style:normal;display:'none';" >
<span id="aboutlabel"
title="Copyright 1995-2006 Something Ltd."
style="position:absolute;top:165px;left:125px;
font-style:normal;
font-family:Verdana,Helvetica,Arial;
font-weight:normal;">
Copyright 1995 - 2006 Something Ltd.
</span>
<span id="aboutlabel"
title="Copyright 1995-2006 Something Ltd.""
style="position:absolute;top:225px;left:125px;
font-style:normal;
font-family:Verdana,Helvetica,Arial;
font-weight:normal;z-index:1;">
Module ID: mEmployeeDetails
</span>
</about>
[/tt]
And I hope to copy that into a separate file (xml) and pass in the ModuleID.
How do I even do that? BTW I have tried googling and I think my XML at work does not support things like xi:include (gosh, I don't even know what these are)
Thanks a lot
Calgarychinese