[jdom-interest] / character in data

Iain Darroch darrochi at dcs.gla.ac.uk
Fri Jul 13 04:26:38 PDT 2001


Hi,

I wish to store the full path to a program in XML

I do this with the following

...

<location>/users/myname/mydir</location>

....

However I get the following exception raised

org.jdom.IllegalNameException: The name "/users/myname/mydir" is not legal
for JDOM/XML elements: XML names cannot begin with the character "/".
        at org.jdom.Element.setName(Element.java, Compiled Code)
        at org.jdom.Element.<init>(Element.java, Compiled Code)
        at org.jdom.Element.<init>(Element.java, Compiled Code)


Has anyone else had the same problem?  As far as I was aware all parsers
whould allow this.  Does anyone have a solution?

many thanks

Iain

---------------------------
Iain Darroch


"If you had to identify, in one word, the reason why the human race has not
achieved, and never will achieve, its full potential, that word would be
"meetings."


"No man is an Island unless his name is Jura"




More information about the jdom-interest mailing list