Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: calcultae numbers inside xml file [Thread Next] Re: calcultae numbers inside xml fileTo: NULL Date: 10/9/2005 11:14:00 PM Hi Martin,
Regard your questions:
part of my xml file looks like:
<?xml version="1.0" ?>
<?xml-stylesheet type="text/xsl" href="Diagnostics.xsl"?>
<Diag_Tests_Results>
<Test>
<TITLE>PASS-FAIL TESTS:test pass</TITLE>
<Test_Result>Pass</Test_Result>
<Test_Line1Description>The recived file has been
corrupt</Test_Line1Description>
<Test_Line2Description>Please check the
memory</Test_Line2Description>
<Test_Line3Description>Replace the memory
module</Test_Line3Description>
<Test_Expected_Results>56 </Test_Expected_Results>
<Test_Received_Results>76</Test_Received_Results>
<XOR>6+5</expression></XOR>
<Error_Code>298</Error_Code>
</Test>
and i want to combine the 6+5 and show it in my browser.
and i dont want to change an existing xml.
hope it much clear now.
sorry fot the late respoond
"Martin Honnen" wrote:
>
> Gabi wrote:
>
> > im a new to xml .
>
> > i want to combine to numbers (for example: 5+6=11).
>
> Where is your XML then, how does it look, does it contain the data (e.g.
> <number>5></number><number>6</number>) or does it contain the complete
> expression (e.g. <expression>5+6</expression>).
> What do you want to do, create a new XML document with the result e.g.
> <result>11</result>
> or do you want to change the existing XML?
> Or do you want to simple parse out the XML data and get the result of
> the sum as text?
> Do you want to use a particular programming language (XSLT)?
>
> --
>
> Martin Honnen --- MVP XML
> http://JavaScript.FAQTs.com/
>
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
