Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DocumentBuilder parse problem

 
Joacim Ahlberg
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
When I switched from feeding the parse method with a XML file to a XML string the problems began. I do not know where to look for solutions since the parse method should be able to take a string. According to the documentation the javax.xml.parsers.DocumentBuilder handles 5 different parse methods including a parse method for taking a string. Where do I go wrong?
Here are some lines from my code:

My string message I want to include in xmlStr:

The error message is:
Exception java.io.FileNotFoundException: C:\forte4j\bin\< (The filename, directory name, or volume label syntax is incorrect)
Best regards
Joacim
 
Joacim Ahlberg
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Ooh noo I have found another documentation at Sun and it is not a string of XML that will be parsed but an URI.... But my problem is still open though.
Joacim
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
 
Joacim Ahlberg
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am very greatful, thanks.

best regards
Joacim
PS. sometimes the answer is closer than you think ...
 
Mapraputa Is
Leverager of our synergies
Sheriff
Posts: 10065
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving this thread to XML and Related Technologies forum.
[ January 07, 2004: Message edited by: Mapraputa Is ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic