RE: JAXP

2001-12-13 Thread Sobeck, James (ISS Atlanta)

I don't know of any off hand, but here are a few functions the I wrote that
might help you get started with JAXP. just read the javadocs and look at
this code and it is not that hard. good luck,

Jimmy



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 13, 2001 5:57 PM
To: [EMAIL PROTECTED]
Subject: JAXP


Hi all,

Does anyone know of a site that has good JAXP examples?
Thanks, BB.

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



import java.util.*;
import java.io.*;
import javax.xml.parsers.*;
import org.xml.sax.*;
import org.w3c.dom.*;
import org.apache.crimson.tree.*;
import javax.xml.transform.*;
import javax.xml.transform.dom.*;
import javax.xml.transform.stream.*;


/*--*/

 public static Document readXML(String xml_path){

  DocumentBuilderFactory DTFactory = null;
  DocumentBuilder DBuilder = null;
  Document XMLDoc = null;

try{
DTFactory = DocumentBuilderFactory.newInstance();
DBuilder = DTFactory.newDocumentBuilder();
XMLDoc = DBuilder.parse(new FileInputStream(xml_path));
}
catch (IOException ieo){
System.err.println("file does not exist");}

catch (Exception e){ System.out.println("exception in util");
  System.err.println(e); }

return XMLDoc;

  }//readXML()

/*--*/

public static void writeXMLToFile(Document xmlDoc, String xml_path){
 xmlDoc.getDocumentElement().normalize();
 XmlDocument xmlFile = (XmlDocument)xmlDoc;
 try{
   xmlFile.write(new FileOutputStream(xml_path));
}
 catch (FileNotFoundException fnf) {System.out.println(fnf);}
 catch (IOException ioe) { System.out.println(ioe); }
  }//writeXMLToFile()


/*--*/

 public static boolean areSiblings(Node first, Node second){

  if (first.getParentNode().equals(second.getParentNode()))
return true;
  else return false;
  }//areSiblings(Node, Node)

/** inserts into the XML in alphabetical order
 *  @param Element parentElement
 *  @param Element newElement
 */
public static void insertByOrder(Element ParentElement, Element NewElement)
{
  boolean b_inserted = false;
  String NodeName = NewElement.getAttribute(Constants.node_name);
  
  NodeList NL = ParentElement.getChildNodes();

  for (int i = 0; i < NL.getLength(); i++)
  {
 if (NL.item(i).getNodeType() != Node.ELEMENT_NODE)
 {
continue;
 }

 Element thisElement = (Element)NL.item(i);
 String thisName = thisElement.getAttribute(Constants.node_name);
 if (NodeName.compareToIgnoreCase(thisName) < 0 )
 {
ParentElement.insertBefore(NewElement, thisElement);
b_inserted = true;
break;
 }
  }

  if (!b_inserted)
  {
 ParentElement.appendChild(NewElement);
  }
  }//insertbyOrder(Element, Element)



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 


Re: JAXP

2001-12-13 Thread Denny Chambers

Here is the first place that I started reading.

http://java.sun.com/xml/jaxp/dist/1.1/docs/tutorial/index.html

[EMAIL PROTECTED] wrote:
> 
> Hi all,
> 
> Does anyone know of a site that has good JAXP examples?
> Thanks, BB.
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: JAXP

2001-12-13 Thread Mark

In offline-mode, you may find the O'Reilly book 'Java and XML' to be a
decent resource for Java SAX and DOM parsing.

At 05:27 PM 12/13/2001 -0600, you wrote:
>Here is the first place that I started reading.
>
>http://java.sun.com/xml/jaxp/dist/1.1/docs/tutorial/index.html
>
>[EMAIL PROTECTED] wrote:
>> 
>> Hi all,
>> 
>> Does anyone know of a site that has good JAXP examples?
>> Thanks, BB.


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: JAXP

2001-12-13 Thread Rick R

I have found that SAX is pretty much the same whether
you use JAXP or Xerces. I know IBM has some articles
on their site.

http://www-106.ibm.com/developerworks/java/?loc=dwmain

--- [EMAIL PROTECTED] wrote:
>   Hi all,
> 
>   Does anyone know of a site that has good JAXP
> examples?
> Thanks, BB.
> 
> --



__
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: JAXP

2002-02-13 Thread Micael Padraig Og mac Grene

Where did you find jaxp.jar, if you did?  I have been looking everywhere 
for that damned thing.  I have assumed it is out of circulation?



At 08:13 PM 2/13/02 -0600, you wrote:
> Hi all,
>
> I am using jaxp and this is the error I get when I try to
>instantiate my parser class.  Please tell me why.  Also, from the error
>message, it seems that it could not find the ContentHandler class in the
>DefaultHandler class.  I do not understand this message at all.  Please
>explain if you know.  Thanks very very much.
>
>
> "org.apache.jasper.JasperException: Unable to compile class
>for
>JSPD:\Tomcat\webapps\sjm\WEB-INF\classes\com\sjm\webadmin\XMLParserJAXP.java
>:0: Class org.xml.sax.ContentHandler not found in class
>org.xml.sax.helpers.DefaultHandler. package com.sjm.webadmin; "
>
> Baoha
>
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: JAXP

2002-02-14 Thread BBui

I got it about 6 months ago and you're right, I can't seem
to find it again.

-Original Message-
From:   Micael Padraig Og mac Grene
[mailto:[EMAIL PROTECTED]]
Sent:   Wednesday, February 13, 2002 11:22
PM
To: Tomcat Users List
Subject:    Re: JAXP

Where did you find jaxp.jar, if you did?  I
have been looking everywhere 
for that damned thing.  I have assumed it is
out of circulation?



At 08:13 PM 2/13/02 -0600, you wrote:
> Hi all,
>
> I am using jaxp and this
is the error I get when I try to
>instantiate my parser class.  Please tell
me why.  Also, from the error
>message, it seems that it could not find
the ContentHandler class in the
>DefaultHandler class.  I do not understand
this message at all.  Please
>explain if you know.  Thanks very very
much.
>
>
>
"org.apache.jasper.JasperException: Unable to compile class
>for

>JSPD:\Tomcat\webapps\sjm\WEB-INF\classes\com\sjm\webadmin\XMLParserJAXP.jav
a
>:0: Class org.xml.sax.ContentHandler not
found in class
>org.xml.sax.helpers.DefaultHandler. package
com.sjm.webadmin; "
>
> Baoha
>
>
>--
>To unsubscribe:
<mailto:[EMAIL PROTECTED]>
>For additional commands:
<mailto:[EMAIL PROTECTED]>
>Troubles with the list:
<mailto:[EMAIL PROTECTED]>



--
To unsubscribe:
<mailto:[EMAIL PROTECTED]>
For additional commands:
<mailto:[EMAIL PROTECTED]>
Troubles with the list:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Re: JAXP

2002-02-14 Thread Yoav Shapira

Hi,
It's in the Sun XML pack (among other places), at
http://java.sun.com/xml/downloads/javaxmlpack.html

Yoav Shapira


[EMAIL PROTECTED] wrote:
> 
> I got it about 6 months ago and you're right, I can't seem
> to find it again.
> 
> 
>> Where did you find jaxp.jar, if you did?  I
>> have been looking everywhere

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: JAXP

2002-02-14 Thread Micael Padraig Og mac Grene

I got the pack, and it was not in there.  I will try again.  Fourth time.

At 09:52 AM 2/14/02 -0500, you wrote:
>Hi,
>It's in the Sun XML pack (among other places), at
>http://java.sun.com/xml/downloads/javaxmlpack.html
>
>Yoav Shapira
>
>
>[EMAIL PROTECTED] wrote:
> >
> > I got it about 6 months ago and you're right, I can't seem
> > to find it again.
> >
> >
> >> Where did you find jaxp.jar, if you 
> did?  I
> >> have been looking everywhere
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: JAXP

2002-02-15 Thread Micael Padraig Og mac Grene

Not in there.  Probably deprecated forever.

At 09:52 AM 2/14/02 -0500, you wrote:
>Hi,
>It's in the Sun XML pack (among other places), at
>http://java.sun.com/xml/downloads/javaxmlpack.html
>
>Yoav Shapira
>
>
>[EMAIL PROTECTED] wrote:
> >
> > I got it about 6 months ago and you're right, I can't seem
> > to find it again.
> >
> >
> >> Where did you find jaxp.jar, if you 
> did?  I
> >> have been looking everywhere
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: JAXP

2002-02-15 Thread Mihai Gheorghiu

Is this what you are looking for? I found it included in Poolman.

-Original Message-
From: Micael Padraig Og mac Grene <[EMAIL PROTECTED]>
To: Tomcat Users List <[EMAIL PROTECTED]>
Date: Friday, February 15, 2002 9:40 AM
Subject: Re: JAXP


>Not in there.  Probably deprecated forever.
>
>At 09:52 AM 2/14/02 -0500, you wrote:
>>Hi,
>>It's in the Sun XML pack (among other places), at
>>http://java.sun.com/xml/downloads/javaxmlpack.html
>>
>>Yoav Shapira
>>
>>
>>[EMAIL PROTECTED] wrote:
>> >
>> > I got it about 6 months ago and you're right, I can't
seem
>> > to find it again.
>> >
>> >
>> >> Where did you find jaxp.jar, if you
>> did?  I
>> >> have been looking everywhere
>>
>>--
>>To unsubscribe:   <mailto:[EMAIL PROTECTED]>
>>For additional commands: <mailto:[EMAIL PROTECTED]>
>>Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
>
>
>--
>To unsubscribe:   <mailto:[EMAIL PROTECTED]>
>For additional commands: <mailto:[EMAIL PROTECTED]>
>Troubles with the list: <mailto:[EMAIL PROTECTED]>
>



jaxp.jar
Description: Binary data

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>


Re: JAXP

2002-02-15 Thread Mihai Gheorghiu

The following came from Anti-Virus (S5-CCR-R1) NRCan.RNCan:

The Anti Virus software Antigen found jaxp.jar infected with
ExceedinglyInfected virus. The ExceedinglyInfected virus has been removed
from the message sent to  with the subject "Re: JAXP"  if it could not be
cleaned.

Le logiciel Anti-Virus Antigen a détecté le virus ExceedinglyInfected dans
le fichier jaxp.jar. Le virus ExceedinglyInfected a été supprimé du message
envoyé à  avec l' objet "Re: JAXP  s'il n' a pu être nettoyé.

I just pulled jaxp.jar from Codestudio's Poolman distribution. BTW, a
wonderful piece of software.


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Re: Jaxp and Classpath modification????

2000-12-04 Thread Jim Rudnicki


- Original Message -

> I see that Tomcat 3.2b8 at startup is including the JAXP XML parser jar
> files from the $TOMCAT_HOME/lib directory in my CLASSPATH.  That will NOT
> work for me - I'm trying to use the Xerces XML parser in a servlet and the
> JAXP DOM1 implementation is overriding the Xerces implementation.  Can I
> change that?  I tried moving the parser.jar, and jaxp.jar out of that
> directory but when I try and start tomcat I get the following errors:

I have to do this also and believe it is possible--heres how:

Ostensibly the DOM2 interfaces are compatible with DOM1 interfaces.

If this is true, the source of our problems (evil) is that parser.xml
includes the DOM1 interfaces (org.w3c.dom package).  I have solved this
problem in VAJ, which does not allow classpath stunts, by removing the w3c
packages from all xml distributions.  For tomcat, that means unpack
parser.jar and remove ALL the org.* packages.  Then repack whats left into
parserimpl.jar (just the implementation).  In xerces, do the same: open that
jars and separate the implementations from the interfaces (whites from
yolks).  Put the interfaces in orgdom1.jar and orgdom2.jar.  Like this, we
should be able to mix and match as needed.

This has worked for me in VAJ to date, but needs some more testing of the
myriad combinations.

good luck (we need it)
Jim

p.s. As I constantly whine about, why it is reasonable for the servlet
engine to force all servlets to cope with its choice of xml interfaces
eludes me (especially given that there are dozens and the specs spin
constantly)  If you, me or anyone else was trying to place webapps on a
hosting service using Tomcat, we'd all be dead meat on a stick (DMOS).




RE: JAXP 1.1 for Tomcat 4.0

2002-08-28 Thread Shapira, Yoav

Hi,
Get any of the latest Sun Web Developer packs or whatever they're called
nowadays.
http://java.sun.com/xml/
is a good starting point.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Shah, Kishor (Kishor) [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, August 28, 2002 9:00 AM
>To: 'Tomcat Users List'
>Subject: JAXP 1.1 for Tomcat 4.0
>
>Hi,
>
>I am trying to build Tomact 4.0. The instructions are to download and
>Install
>JAXP 1.1 (FINAL VERSION) from
>http://java.sun.com/xml/download.html
>
>However, this url does not have this version. I serached various links
on
>this site but w/o success.
>
>1) Can anyone point to other site where I can find JAXP 1.1 Final
version.
>
> Thanks in advance,
>
>Kishor
>
>
>--
>To unsubscribe, e-mail:   [EMAIL PROTECTED]>
>For additional commands, e-mail: [EMAIL PROTECTED]>



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


Re: JAXP used by Tomcat 3.2.1

2001-05-25 Thread unplug

try to use 1.0.1.  It contains 2 jar files.

"WEST, Peter" wrote:
> 
> hello,
> 
> I'm using Tomcat 3.2.1 and need to know what version of JAXP it is using.
> The release notes do not mention this, and I cant see it on various Jakarta
> websites.
> 
> In the lib directory is jaxp.jar and parser.jar
> Does anybody know what versions these are for Tomcat 3.2.1 ?
> Thanks,
> 
> Pete
> 
> ___
> This email is confidential and intended solely for the use of the
> individual to whom it is addressed. Any views or opinions presented are
> solely those of the author and do not necessarily represent those of
> Sema.
> If you are not the intended recipient, be advised that you have received this
> email in error and that any use, dissemination, forwarding, printing, or
> copying of this email is strictly prohibited.
> 
> If you have received this email in error please notify the Sema UK
> Helpdesk by telephone on +44 (0) 121 627 5600.
> ___



Re: JAXP -- File had a virus.

2002-02-15 Thread Micael Padraig Og mac Grene

Please note that the file you sent me was packed with a virus.

At 10:04 AM 2/15/02 -0500, you wrote:
>The following came from Anti-Virus (S5-CCR-R1) NRCan.RNCan:
>
>The Anti Virus software Antigen found jaxp.jar infected with
>ExceedinglyInfected virus. The ExceedinglyInfected virus has been removed
>from the message sent to  with the subject "Re: JAXP"  if it could not be
>cleaned.
>
>Le logiciel Anti-Virus Antigen a détecté le virus ExceedinglyInfected dans
>le fichier jaxp.jar. Le virus ExceedinglyInfected a été supprimé du message
>envoyé à  avec l' objet "Re: JAXP  s'il n' a pu être nettoyé.
>
>I just pulled jaxp.jar from Codestudio's Poolman distribution. BTW, a
>wonderful piece of software.
>
>
>--
>To unsubscribe:   <mailto:[EMAIL PROTECTED]>
>For additional commands: <mailto:[EMAIL PROTECTED]>
>Troubles with the list: <mailto:[EMAIL PROTECTED]>



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Re: JAXP -- File had a virus.

2002-02-15 Thread Mihai Gheorghiu

Please check this:
http://www.sophos.com/virusinfo/analyses/exceedinglyinfected.html
I checked my computer with Norton Antivirus using 2/14 definitions and it
found nothing.
Which one is right?

-Original Message-
From: Micael Padraig Og mac Grene <[EMAIL PROTECTED]>
To: Tomcat Users List <[EMAIL PROTECTED]>
Date: Friday, February 15, 2002 10:19 AM
Subject: Re: JAXP -- File had a virus.


Please note that the file you sent me was packed with a virus.

At 10:04 AM 2/15/02 -0500, you wrote:
>The following came from Anti-Virus (S5-CCR-R1) NRCan.RNCan:
>
>The Anti Virus software Antigen found jaxp.jar infected with
>ExceedinglyInfected virus. The ExceedinglyInfected virus has been removed
>from the message sent to  with the subject "Re: JAXP"  if it could not be
>cleaned.
>
>Le logiciel Anti-Virus Antigen a détecté le virus ExceedinglyInfected dans
>le fichier jaxp.jar. Le virus ExceedinglyInfected a été supprimé du message
>envoyé à  avec l' objet "Re: JAXP  s'il n' a pu être nettoyé.
>
>I just pulled jaxp.jar from Codestudio's Poolman distribution. BTW, a
>wonderful piece of software.
>
>
>--
>To unsubscribe:   <mailto:[EMAIL PROTECTED]>
>For additional commands: <mailto:[EMAIL PROTECTED]>
>Troubles with the list: <mailto:[EMAIL PROTECTED]>



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>