- From: lpsmith at spod-central.org (Lucian Smith)
- Subject: [cellml-dev] using InputFormatToMathML
- Date: Thu, 15 Jul 2010 21:54:02 +0100
So, I have the following code:
nsCOMPtr<domIElement> mathml;
nsCString formstring("x = y");
MathMLInputServices mmlis;
rv = mmlis.InputFormatToMathML(NULL, formstring, getter_AddRefs(mathml));
The return code is 2147942487, which if I translate to hex, I can find is
either "NS_ERROR_ILLEGAL_VALUE" or "NS_ERROR_INVALID_ARG". *Which*
argument, it won't tell me, but I'm guessing it's the NULL.
Now, when I was translating the other way, NULL was fine:
rv = mmlis.MathMLToInputFormat(input, NULL, indent, cinfix);
but, I suppose, no longer.
Since InputFormatToMathML is from OpenCell, not the API, I don't have any
documentation at all, so I turn to you all and ask: am I right that it
requires a real 'domIDocument*'? And if so, how do I go about making one?
Do I make (I assume) a mathml_domIMathMLDocument and cast it? Is there a
mathml_domIMathMLDocument factory somewhere?
-Lucian
- [cellml-dev] using InputFormatToMathML, Lucian Smith, 07/16/2010
Archive powered by MHonArc 2.6.18.