Changeset aeb6d3 in git for modules/openmathserver/xmlencodetest.py
- Timestamp:
- Jun 15, 2005, 1:55:14 PM (19 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- b1b9c0df208edd2e29beb3a44d02c10061ac160b
- Parents:
- 01cd17fd67cfda8867350bb5007624dde10be224
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/openmathserver/xmlencodetest.py
r01cd17f raeb6d3 12 12 x=v 13 13 y=OMVar("y") 14 a=OM application(OMSymbol("plus",arith1.content),[x,y,i])14 a=OMApply(OMSymbol("plus",arith1.content),[x,y,i]) 15 15 print a.XMLencode(context) 16 16 print context.XMLEncodeObject(context.evaluate(a)) 17 a1=OM application(OMSymbol("plus",arith1.content),[OMint(1),OMint(2)])18 a2=OM application(OMSymbol("plus",arith1.content),[a1,OMint(2)])19 a3=OM application(OMSymbol("plus",arith1.content),[a2,x])17 a1=OMApply(OMSymbol("plus",arith1.content),[OMint(1),OMint(2)]) 18 a2=OMApply(OMSymbol("plus",arith1.content),[a1,OMint(2)]) 19 a3=OMApply(OMSymbol("plus",arith1.content),[a2,x]) 20 20 context.addCDImplementation(arith1.implementation) 21 21 print "a3", context.XMLEncodeObject(context.evaluate(a3)) … … 25 25 f=OMfloat(1.23434) 26 26 print context.XMLEncodeObject(f) 27 #print v.XML attributes27 #print v.XMLAttributes 28 28
Note: See TracChangeset
for help on using the changeset viewer.