org.jdom.IllegalNameException: The name "@valeur" is not legal for JDOM/XML attributes: XML names cannot begin with the character "@".

developpez.com | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Cours Java et Eclipse de J.M. Doudoux

    developpez.com | 7 months ago
    org.jdom.IllegalNameException: The name "@valeur" is not legal for JDOM/XML attributes: XML names cannot begin with the character "@".

    Root Cause Analysis

    1. org.jdom.IllegalNameException

      The name "@valeur" is not legal for JDOM/XML attributes: XML names cannot begin with the character "@".

      at org.jdom.Attribute.setName()
    2. jOpenDocument
      Element.setAttribute
      1. org.jdom.Attribute.setName(Attribute.java:363)
      2. org.jdom.Attribute.<init>(Attribute.java:227)
      3. org.jdom.Attribute.<init>(Attribute.java:251)
      4. org.jdom.Element.setAttribute(Element.java:1128)
      4 frames
    3. com.jmdoudoux.test
      TestJDOM24.main
      1. com.jmdoudoux.test.jdom.TestJDOM24.main(TestJDOM24.java:21)
      1 frame