[jdom-interest] JDOMException

Simon St.Laurent simonstl at simonstl.com
Sun Oct 15 15:32:01 PDT 2000

At 07:51 PM 10/14/00 -0400, Gregory S. Hill wrote:
>Okay folks.  I've been lurking long enough.  Now it's time to pick some
>brains.  I'm feel particularly stupid, right now.  Any help would be
>most appreciated.
>I've got the following XML:
><?xml version="1.0" encoding="UTF-8"?>
><Chart type="bar">
>    <ChartSize width="400" height="400" />
>    <ChartFormat graphType="ROWS" layout="VERTICAL" 3DDepth="10"

XML doesn't allow you to start element or attribute names with numbers.
Some parsers (notably AElfred) let this go by, but most don't.  3DDepth is
your problem.

You could stick a letter or underscore in front of it:
z3DDepth or _3DDepth.

Simon St.Laurent
XML Elements of Style / XML: A Primer, 2nd Ed.
XHTML: Migrating Toward XML
http://www.simonstl.com - XML essays and books

More information about the jdom-interest mailing list