Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-5062060

text node is moved after adding new element

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 5.0
    • 5.0
    • xml
    • b57
    • generic
    • generic

        text node is moved after adding new element

        To reproduce the problem , use the attached program

        java -version
        java version "1.5.0-beta3"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta3-b55)
        Java HotSpot(TM) Server VM (build 1.5.0-beta3-b55, mixed mode)

        javac test.java
        java test

        actually the text is moved from 'screen-names' to 'screen-name'


        Input - screenName.xml
        --------------------------------------------------------------------------------
        <?xml version="1.0"?>


        <us:screen-names xmlns:us="http://hibid.com/screenName">
                        abcd
          <us:screen-name>
          <us:userName xmlns:us="http://hibid.com/user"> tom </us:userName>
          <userNo>10 </userNo>
          </us:screen-name>
        </us:screen-names>



        Output - screenNameOut.xml
        -------------------------------------------------------------------------------
        <?xml version="1.0" encoding="UTF-8"?>
        <us:screen-names xmlns:us="http://hibid.com/screenName"><us:screen-name>
                        abcd
          <us:userName xmlns:us="http://hibid.com/user"> tom </us:userName>
          <userNo>10 </userNo>
          <userEmail xmlns="http://hibid.com/user">###@###.###</userEmail></us:screen-name>
        </us:screen-names>



              vkorcl Venugopal K (Inactive)
              saksunw Sreejith Ak (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: