Anthrazit

750 Reputation

11 Badges

5 years, 290 days

MaplePrimes Activity


These are questions asked by Anthrazit

How can I sort lists which have tables as entries, and decide upon which entry the sort should be based.

In the attached example each entry in the list has the values material, name and type.

  • How would I sort the list based on the material name for example?
  • Are there any better methods to define and store the data?

Listsort.mw

Just curious about an output in an if statement.

Why do I need to use Print() in an if statement, when I don't need it otherwise? Why doesn't "hei" show in the output of the attached example?

Printinloop.mw

I'm trying to readin a XML file, where some figures are attached a unit.

Here's part of the XML file.

When doing the readin and assigning the values to  a variable with AttributeValue, the type of the variable is a string.

How can I convert this string value ("10.*Units:-Unit(m)") to a number attached the defined units?

Why do I get an error when using this:/// during readin of a xml attachment in Maple workbook?

Exceltools Import works without problems.

ReadXML.zip

Any idea why the result of the FirstChild function of the attached file is

_XML_Text("\n  ")

Test.zip

I also miss a more complete example on Maple Help for writing, reading and processing xml files.

First 15 16 17 18 19 20 21 Page 17 of 24