#1036872 net.sourceforge.jeuclid.MathMLParserSupport fails to parse XML strings

#1036872#5
Date:
2023-05-28 13:15:21 UTC
From:
To:
Dear Maintainer,

While running scilab, I met an issue with MathML labels for axes, that were not
showing up. After digging into this, I saw this was a bug in
libjeuclid-core-java and I built the following minimal non-working example:
--------------------8<------------------

import java.io.IOException;
import javax.xml.parsers.ParserConfigurationException;
import org.xml.sax.SAXException;
import net.sourceforge.jeuclid.MathMLParserSupport;

public class Main {
    public static void main(String[] args) throws IOException, ParserConfigurationException, SAXException {
        String str = new String("<mathml><mrow><mfrac><mrow><mi>d</mi><mi>y</mi></mrow><mrow><mi>d</mi><mi>x</mi></mrow></mfrac><mo>=</mo><mfrac><mn>1</mn><msup><mi>y</mi><mn>2</mn></msup></mfrac></mrow></mathml>");
        System.out.println(MathMLParserSupport.parseString(str));
    }
}
--------------------8<------------------ The output is:
--------------------8<------------------ [#document: null] --------------------8<------------------ Thanks a lot for your help on this, Cheers,