File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

import

 
oLi Bou
Greenhorn
Posts: 23
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
I need to import some packages
-------
import org.apache.xml.serialize.XMLSerializer;
import org.apache.xml.serialize.OutputFormat;
import org.apache.xerces.dom.DocumentImpl;
import org.apache.xerces.dom.DocumentTypeImpl;
import org.apache.xerces.dom.DOMImplementationImpl;
-------
and i do not know where i can find them ... i installed Xerces 2 but it didn't change anything till now :s
thx
 
Anonymous
Ranch Hand
Posts: 18944
  • 0
  • send pies
  • Quote
  • Report post to moderator
How did you install xerxes2 ? Normally you find these classes in the xerxes.jar. You can check it if you unzip the jar file.
For running your code correctly you have to put xerxes.jar into your classpath.
For seeing it in the ide's you have to be careful.
Not every ide is updating the auto completition automaticly when you mount a jar file.
So e.g in Netbeans you first have to update your parser database yourself
 
Marilyn de Queiroz
Sheriff
Posts: 9059
12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oLi D,

We'd like you to read the Javaranch Naming Policy and change your publicly displayed name to comply with our unique rule. Thank you.

"FirstName space LastInitial" is not acceptable.
 
Jason Ford
Ranch Hand
Posts: 54
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, be very careful about how you spell xerces. It is a very common mistake (i.e. one I have made myself) to accidentally add xerxes.jar to your classpath. I think this spelling is more natural to native English speakers than the correct spelling, xerces.
A quick google search reveals that there are at least nine web pages that accidentally include both spellings on the same page.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic