Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Junk Characters in the output XML file after Parsing

843834Oct 10 2008 — edited Nov 12 2008
Hi

I am using DOM parser to parse an XML file.

After parsing the input XML file, i am fetching some contents
from the same and also putting the same contents in the parsed output file which is also an XML file.

The problem here is that the after putting the contents to the output XML file from the input XML file,
some junk character appears at the end of each and every tag in the outputfile.

The junk character is some thing like this : " ampersand hash thirteen and a semicolon "

(*THE MESSAGE DID NOT ACCEPT THE SYMBOLS KINDLY TRANSLATE THE ABOVE WORDINGS*
INTO SYMBOLS)

This character gets appended at the end of each and every tag in the output file due to which the output file
is not recognised as an XML file.

Please let me know as to why is this character appearing and also please suggest some solution
for the same.

-Thanks in Advance.

Edited by: itskarthik on Oct 10, 2008 7:16 AM

Edited by: itskarthik on Oct 10, 2008 7:18 AM

Edited by: itskarthik on Oct 10, 2008 7:19 AM

Edited by: itskarthik on Oct 10, 2008 7:19 AM

Edited by: itskarthik on Oct 10, 2008 7:23 AM

Edited by: itskarthik on Oct 10, 2008 7:23 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 10 2008
Added on Oct 10 2008
46 comments
1,736 views