XML Manipulation with JDOM Java

Asked

Viewed 66 times

1

Guys, does anyone know why when I write an xml I simply have to use the path of the directory, and to perform the reading I have to put file: before?

"F:/Programming Projects/JAVA/XML/src/persistencia/" (path to write) "file://F:/Programming Projects/JAVA/XML/src/persistencia/" (reading path)

  • Can you include the code that does the writing and reading? I’ve seen examples of JDOM that don’t read files the way you put them. Without the code I can just guess the obvious: When you write, the program already "knows" it’s a file you want to generate - when you read it, it still doesn’t know that the data is coming from a file, so you’re bound to make it explicit.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.