473,385 Members | 1,673 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Java Parser

I am looking for a reccomendation as to what Java parser I should be
using. I'm looking for something that is freely distributed, has
documentation, and has a wide user base. Any suggestions?
Jul 20 '05 #1
7 2713
Frank wrote:
I am looking for a reccomendation as to what Java parser I should be
using. I'm looking for something that is freely distributed, has
documentation, and has a wide user base. Any suggestions?


Have a look at: http://xml.apache.org/

John

--
email: mail(at)johnbokma.com (or reply) home: http://johnbokma.com/
Web site hints: http://johnbokma.com/websitedesign/ ~ ICQ 218175426

Jul 20 '05 #2
In article <3f*********************@news.kabelfoon.nl>,
John Bokma <po********@castleamber.com> wrote:

:> Frank wrote:
:>
:> > I am looking for a reccomendation as to what Java parser I should be
:> > using. I'm looking for something that is freely distributed, has
:> > documentation, and has a wide user base. Any suggestions?
:>
:> Have a look at: http://xml.apache.org/
:>
:> John

And don't overlook the fact that a major portion of what was the
Xerces-J parser has now been incorporated into Sun's Java.

= Steve =
--
Steve W. Jackson
Montgomery, Alabama
Jul 20 '05 #3
Steve W. Jackson wrote:
In article <3f*********************@news.kabelfoon.nl>,
John Bokma <po********@castleamber.com> wrote:

:> Frank wrote:
:>
:> > I am looking for a reccomendation as to what Java parser I should be
:> > using. I'm looking for something that is freely distributed, has
:> > documentation, and has a wide user base. Any suggestions?
:>
:> Have a look at: http://xml.apache.org/
:>
:> John

And don't overlook the fact that a major portion of what was the
Xerces-J parser has now been incorporated into Sun's Java.


Thanks Steve, didn't know that.

John

--
email: mail(at)johnbokma.com (or reply) home: http://johnbokma.com/
Web site hints: http://johnbokma.com/websitedesign/ ~ ICQ 218175426

Jul 20 '05 #4
On Thu, 07 Aug 2003 12:48:18 -0700, Frank <> wrote:
I am looking for a reccomendation as to what Java parser I should be
using. I'm looking for something that is freely distributed, has
documentation, and has a wide user base. Any suggestions?


Thany you both. I'm installing Xerces. That looks like it will meet
my needs.
Jul 20 '05 #5
I am using Xerces2 2.5. I am trying to validate my xml with
schemas. Does anyone have any idea how to do this. My relevant code
is:
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;

import org.apache.xerces.jaxp.DocumentBuilderFactoryImpl;

import .....

class foo {
public void loadXML(URL url) throws
ParserConfigurationException, SAXException, IOException {

DocumentBuilder builder;

DocumentBuilderFactory factory =
DocumentBuilderFactoryImpl.newInstance();

factory.isIgnoringElementContentWhitespace();

factory.isValidating();

builder = factory.newDocumentBuilder();

Document document = builder.parse(url.toString());
// Do stuff with DOM here...
}

// etc.
}
thanks alot
Jul 20 '05 #6
never mind.. dur!!!!

I am using Xerces2 2.5. I am trying to validate my xml with
schemas. Does anyone have any idea how to do this. My relevant code
is:
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;

import org.apache.xerces.jaxp.DocumentBuilderFactoryImpl;

import .....

class foo {
public void loadXML(URL url) throws
ParserConfigurationException, SAXException, IOException {

DocumentBuilder builder;

DocumentBuilderFactory factory =
DocumentBuilderFactoryImpl.newInstance();

factory.isIgnoringElementContentWhitespace();

factory.isValidating();

builder = factory.newDocumentBuilder();

Document document = builder.parse(url.toString());
// Do stuff with DOM here...
}

// etc.
}
thanks alot
Jul 20 '05 #7
Hello,
never mind.. dur!!!!

I am using Xerces2 2.5. I am trying to validate my xml with
schemas. Does anyone have any idea how to do this.


Perhaps this helps:
http://java.sun.com/webservices/docs...9.html#wp65302

Jul 20 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: ptaz | last post by:
Hi I'm trying to run a web page but I get the following error. Ca anyone please tell me a solution to this. Thanks Ptaz HTTP Status 500 - type Exception report
13
by: Ajay | last post by:
hi! can you call a Python application from a Java program? does this require any additional package to be installed? thanks cheers
0
by: Juan Manuel Fernández Luna | last post by:
Can anybody help me? I'm desperate!!! I'm writing a program in Java to deal with xml files and when the file volume.xml (attached) is being parsed, the following exception occurs and I don't...
4
by: Dr. Laurence Leff | last post by:
I am writing a Java program to read in XML file, modify some elements slightly, and then write it out. That XML file is prepared in Docbook. It works fine, except that it is disturbing the...
1
by: Jens Mueller | last post by:
Hi there, this is a Java-XML Question, so I am not sure whether this is the right place, haven't found anything better .... I try to convert a Java object to XML via SAX and let the FOP...
1
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej...
12
by: Mark Fink | last post by:
I wrote a Jython class that inherits from a Java class and (thats the plan) overrides one method. Everything should stay the same. If I run this nothing happens whereas if I run the Java class it...
0
by: Nageshwararao | last post by:
i getting path of XML file and parsing it. Following is error i am getting. can any one help me. Exception in thread "main" java.lang.InternalError...
2
by: wolverine | last post by:
Hi, I recently read that every java .class file, is written in a specific binary format. http://java.sun.com/docs/books/jvms/second_edition/html/ClassFile.doc.html I just want to know whether...
5
blazedaces
by: blazedaces | last post by:
Ok, so you know my problem, java is running out of memory reading with SAX, the event-based xml parser intended more-so than DOM for extremely large files. I'll try to explain what I've been doing...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.