Philip Taylor wrote:

Test code:

    public static void main(String[] args) {
        Element root = new Element("x", "x:&");
        Document doc = new Document(root);
        System.out.println(doc.toXML());
    }

Output from XOM 1.1:

    <x xmlns="x:&" />

The 'xmlwf' tool says: "STDIN:1:13: not well-formed (invalid token)"


That's a good one all right. I'll fix it in 1.2 shortly.

Interestingly, the bug is only in the toXML method. The serializer does properly escape that, at least in 1.2.

--
Elliotte Rusty Harold  [email protected]
Refactoring HTML Just Published!
http://www.amazon.com/exec/obidos/ISBN=0321503635/ref=nosim/cafeaulaitA

Reply via email to