xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Edwin Goei <Edwin.G...@eng.sun.com>
Subject Re: Crimson and named entities
Date Fri, 02 Feb 2001 00:58:38 GMT
greg.emerson@autodesk.com wrote:
> There seems to be no support for some named entities (e.g. &lt;) in the latest release
of Crimson (or any previous release for that matter).  According to the spec, these entities
should be predefined.  Are there plans to add these named entities to the parser?

They should be defined.  Why do you think they are not?  Could you post
a sample program?

I wrote a quick junit test to verify it.

    public void testPredefinedEntities() throws Exception {
        String data = 
            "<?xml version=\"1.0\" ?>" +
        ByteArrayInputStream in = new
        Document doc = db.parse(in);
        Element root = doc.getDocumentElement();
        NodeList children = root.getChildNodes();
        assertTrue(children.getLength() == 1);
        Text textA = (Text)children.item(0);


View raw message