RPI/Mathactivity/XML: Difference between revisions

From OLPC
Jump to navigation Jump to search
(Added link to XML tutorial)
Line 43: Line 43:
</obtained>
</obtained>
</resource>
</resource>
<purchased_subgoal>
</purchased_subgoal>
<problems>
<problems>
<used>
<used>

Revision as of 21:22, 1 April 2008

XML Howto

http://www.boddie.org.uk/python/XML_intro.html

Math Format

  • Relatively Extensible
  • Prototype Parser and Math Engine in PHP
  • Polynomials only at this time
  • Math engine is not yet complete, will have to discuss some ideas in meeting Tuesday
    • Ideas for storing expressions? i.e. log(x), (x^3), etc?
  • Notes to self:
    • Operations?
    • Auto-generate constants?
  • 'Barking up the wrong tree?' - MathML - http://www.w3.org/Math/
  • Encapsulate MathML inside our own XML wrapper
    • Unique identifiers per problem
    • Level ID for each problem
    • Answer to problem


<math_problems>
  <problem>
      <lt sign="1">12</lt>
      <lt var="3">4</lt>
      16
  </problem>
  <problem>
      <lt>1</lt>
      <lt>4</lt>
  </problem>
</math_problems>

Goal Format

Persistence of State Format

<state>
	<players>
	</players>
		<goal>
			<resource>
				<required>
				</required>
				<obtained>
				</obtained>
			</resource>
			<purchased_subgoal>
			</purchased_subgoal>
			<problems>
				<used>
				</used>
			</problems>
		</goal>
</state>

Resource and Market Format