Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: calcultae numbers inside xml file

From: Gabi@-----------.---------.---
To: 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/
> 


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent