permaculture playing cards
The moose likes Beginning Java and the fly likes import Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "import" Watch "import" New topic


oLi Bou

Joined: Jul 03, 2002
Posts: 23
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

--learn every day--
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
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

Joined: Jul 22, 2000
Posts: 9059
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.

"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Jason Ford
Ranch Hand

Joined: Aug 02, 2001
Posts: 54
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:
subject: import
jQuery in Action, 3rd edition