[jdom-interest] XMLOutputter Excepion

Michael.Fischer at plenum.de Michael.Fischer at plenum.de
Tue Oct 16 05:41:31 PDT 2001


...
Element carElement = new Element("car");
Document myDocument = new Document(carElement);
carElement.addAttribute(new Attribute("vin", "123fhg5869705iop90"));
XMLOutputter fmt = new XMLOutputter();
fmt.output(doc, System.out);
...

After execute programm a exception is thrown.

java.lang.UnsupportedOperationException: PartialList.listIterator() is not
yet implemented
     at org.jdom.PartialList.listIterator(PartialList.java:426)
     at
java.util.AbstractSequentialList.iterator(AbstractSequentialList.java:247)
     at org.jdom.PartialList.access$0(PartialList.java)
     at org.jdom.PartialList$PartialItr.<init>(PartialList.java:405)
     at org.jdom.PartialList.iterator(PartialList.java:400)
     at
org.jdom.output.XMLOutputter.printAttributes(XMLOutputter.java:1376)
     at org.jdom.output.XMLOutputter.printElement(XMLOutputter.java:1106)
     at org.jdom.output.XMLOutputter.output(XMLOutputter.java:541)
     at org.jdom.output.XMLOutputter.output(XMLOutputter.java:509)
     at Article.main(Article.java:234)

Can you help me, what's the problem?




More information about the jdom-interest mailing list