Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » General (non-technical) » Eclipse Foundation » Xerces DOMParser
Xerces DOMParser [message #31007] Mon, 06 March 2006 16:49 Go to next message
Tarek Garoui is currently offline Tarek GarouiFriend
Messages: 7
Registered: July 2009
Junior Member
Hello,
I need to parse an xml document with a dom parser.
The only class I found about that is the DOMParser class, which resides in
the package org.apache.xerces.framework .
Using eclipse, I get the error:
"The import org.apache cannot be resolved"

How can I download the package and get it into eclipse as a plugin ?

Thanks.
Re: Xerces DOMParser [message #31077 is a reply to message #31007] Mon, 06 March 2006 18:56 Go to previous message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

This is a multi-part message in MIME format.
--------------040003050209020203060901
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Workacholism kills. Take action now, while you still recongize that you
have a problem. ;-)

You'd be better to ask this kind of question on the platform newsgroup.

I would recommend not using vendor specific APIs. Use the JDK's JAXP
APIs instead:

DocumentBuilderFactory documentBuilderFactory =
DocumentBuilderFactory.newInstance();
documentBuilderFactory.setNamespaceAware(true);
DocumentBuilder documentBuilder =
documentBuilderFactory.newDocumentBuilder();
Document document = documentBuilder.parse(new File(DATA_FOLDER +
"DOMTreeNode.xml"));
TransformerFactory transformerFactory =
TransformerFactory.newInstance();
Transformer transformer = transformerFactory.newTransformer();
transformer.transform(new DOMSource(document), new
StreamResult(System.out));


workaholic wrote:

> Hello,
> I need to parse an xml document with a dom parser.
> The only class I found about that is the DOMParser class, which
> resides in the package org.apache.xerces.framework .
> Using eclipse, I get the error:
> "The import org.apache cannot be resolved"
>
> How can I download the package and get it into eclipse as a plugin ?
>
> Thanks.
>
>
>
>
>


--------------040003050209020203060901
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Workacholism kills.
Previous Topic:Election Results
Next Topic:How do I make eclipse use CVS information already in the folder.
Goto Forum:
  


Current Time: Thu Apr 25 06:51:40 GMT 2024

Powered by FUDForum. Page generated in 0.03242 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top