[jdom-interest] Bye bye JBuilder 5?

Vijay Kumar VKUMAR at Partnerware.com
Mon Jan 21 07:04:34 PST 2002


I use Jbuilder 4.0
  put xalan before xerces in classpath

-----Original Message-----
From: jdom-interest-admin at jdom.org [mailto:jdom-interest-admin at jdom.org]
Sent: Saturday, January 19, 2002 1:16 AM
To: jdom-interest at jdom.org
Subject: jdom-interest digest, Vol 1 #820 - 16 msgs


Send jdom-interest mailing list submissions to
	jdom-interest at jdom.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.denveronline.net/mailman/listinfo/jdom-interest
or, via email, send a message with subject or body 'help' to
	jdom-interest-request at jdom.org

You can reach the person managing the list at
	jdom-interest-admin at jdom.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of jdom-interest digest..."


Today's Topics:

   1. Bye bye JBuilder 5? (Bilton, Sasha)
   2.
=?iso-8859-1?Q?Help=A1=A1=A1_Please=A1=A1=A1=A1_Strange_problem_with_?=
       =?iso-8859-1?Q?JSP/XML/Java_saving_XML_files=A1=A1=A1?= (Pedro)
   3.
=?iso-8859-1?Q?Re:_=5Bjdom-interest=5D_Help=A1=A1=A1_Please=A1=A1=A1=A1?=
 
=?iso-8859-1?Q?_Strange_problem_with_JSP/XML/Java_saving_XML_files=A1?=
       =?iso-8859-1?Q?=A1=A1?= (Pedro)
   4.
=?iso-8859-1?Q?Re:_[jdom-interest]_Re:_[jdom-interest]_Help=A1=A1=A1_PlEAse=
A1=A1=A1=A1?= (Ken Rune Helland)
   5. Parsing multiple XML documents (Igal Corcos)
   6. (no subject) (Mark Hortman)
   7. Should I convert to/from org.jdom.Document (Naresh Bhatia)
   8. Parsing Multiple XML documents (Igal Corcos)
   9. < not allowed in attribut (=?iso-8859-1?Q?B=F6rries_Ludwig?=)
  10. Re: Parsing multiple XML documents (Jason Hunter)
  11. Re: Bye bye JBuilder 5? (Jason Hunter)
  12. Re: Xerxes Parser and JDOM (Jason Hunter)
  13. Re: Newbie question (Jason Hunter)

--__--__--

Message: 1
From: "Bilton, Sasha" <Sasha.Bilton at bskyb.com>
To: "'jdom-interest at jdom.org'" <jdom-interest at jdom.org>
Date: Fri, 18 Jan 2002 10:12:42 -0000
Subject: [jdom-interest] Bye bye JBuilder 5?

Hi,

I'm getting the dreaded NoSuchMethodException when trying to transform a
JDOM Document using the XSLTTransform example in beta 7 under _JBUILDER 5_
(it works in shell). I've got the b7 version of xerces.jar as the very first
.jar in classpath, followed by xalan, jdom (beta 7), crimson and jaxp.
Looking at the FAQ I found this...

http://www.visi.com/~gyles19/fom-serve/cache/284.html

Anyone know if this is causing the NoSuchMethodException I seeing? If so I
assume I'll have to drop running my code through JBuilder?

Many thanks in advance

Sasha Bilton



**********************************************************************
Information in this email is confidential and may be privileged. 
It is intended for the addressee only. If you have received it in error,
please notify the sender immediately and delete it from your system. 
You should not otherwise copy it, retransmit it or use or disclose its
contents to anyone. 
Thank you for your co-operation.
**********************************************************************


--__--__--

Message: 2
From: "Pedro" <ppalomo at hotpop.com>
To: <jdom-interest at jdom.org>
Date: Fri, 18 Jan 2002 13:22:54 +0100
Subject: [jdom-interest]
=?iso-8859-1?Q?Help=A1=A1=A1_Please=A1=A1=A1=A1_Strange_problem_with_?=
 =?iso-8859-1?Q?JSP/XML/Java_saving_XML_files=A1=A1=A1?=

This is a multi-part message in MIME format.

------=_NextPart_000_0092_01C1A023.3C64C0E0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi friends of XML=A1=A1

I have a problem in my application. I use a javabean to merge,copy,save =
xml files....and the problem is :

    I have a JSP page that uses this javabean and create/save an xml =
file correctly, but the same java code and the same javabean in a =
separate Java application(stand alone JAVA application) don't =
saves/writes the file correctly. When i try to open the xml file with =
Internet explorer gives me an error because the file is cutted. And it's =
strange that if I send the file to the System.out the file seemingly =
correctly and complete.

    What can be my problem??

The code of the function that writes/saves the xml file is ......

public boolean SaveXML(String file,Document doc) throws IOException{
 =20
         FileWriter writer =3D new FileWriter(file);
         XMLOutputter outputter =3D new XMLOutputter(" ",true);
        =20
        //  outputter.output(doc, System.out);  In the java program =
shows correctly the file in the Dos Window
       =20
        outputter.output(doc, writer);=20
        // In JSP run OK and create the file and in Java application cut =
the file but=20
        // don't throws an exception
                         =20
         return true;
    =20
  }

=20




------=_NextPart_000_0092_01C1A023.3C64C0E0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.3315.2870" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi friends of XML=A1=A1</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I have a problem in my application. I =
use a=20
javabean to merge,copy,save xml files....and the problem is =
:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; I have a JSP page =
that uses this=20
javabean and create/save an xml file correctly, but the same java code =
and the=20
same javabean in a separate Java application(stand alone JAVA =
application)=20
don't&nbsp;saves/writes the file correctly. When i try to open the xml =
file with=20
Internet explorer gives me&nbsp;an&nbsp;error because the file is =
cutted. And=20
it's strange that if I send the file to the System.out&nbsp;the=20
file&nbsp;seemingly correctly and complete.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; What can be my=20
problem??</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>The code&nbsp;of the function that =
writes/saves the=20
xml file is ......</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><STRONG><FONT face=3DArial size=3D2>public boolean SaveXML(String =
file,Document=20
doc) throws IOException{<BR>&nbsp;&nbsp;</FONT></STRONG></DIV>
<DIV><STRONG><FONT face=3DArial=20
size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FileWriter =
writer =3D new=20
FileWriter(file);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&nbsp;XMLOutputter outputter =3D new XMLOutputter("=20
",true);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT>=
</STRONG></DIV>
<DIV><STRONG><FONT color=3D#00ff00 face=3DArial=20
size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT=20
color=3D#0000ff>//&nbsp;&nbsp;outputter.output(doc, System.out);&nbsp; =
In the java=20
program shows correctly the file in the Dos =
Window</FONT></FONT></STRONG></DIV>
<DIV><STRONG><FONT color=3D#0000ff face=3DArial=20
size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
</FONT></STRONG></DIV>
<DIV><STRONG><FONT face=3DArial=20
size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT=20
color=3D#ff0000>outputter.output(doc, writer); =
</FONT></FONT></STRONG></DIV>
<DIV><STRONG><FONT face=3DArial=20
size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// In JSP run =
OK and=20
create the file and in&nbsp;Java application cut the file but=20
</FONT></STRONG></DIV>
<DIV><STRONG><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp; //=20
don't throws an&nbsp;</FONT><FONT face=3DArial=20
size=3D2></STRONG><STRONG>exception<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;</STRONG></FONT><FONT=20
face=3DArial=20
size=3D2><STRONG>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return=20
true;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;}</STRONG></FONT><=
/DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><PRE style=3D"FONT-SIZE: 10pt; =
FONT-STYLE: normal; FONT-VARIANT: normal; FONT-WEIGHT: normal; =
LINE-HEIGHT: 12pt">&nbsp;</PRE><PRE style=3D"FONT-SIZE: 10pt; =
FONT-STYLE: normal; FONT-VARIANT: normal; FONT-WEIGHT: normal; =
LINE-HEIGHT: 12pt">&nbsp;</PRE></FONT></DIV></BODY></HTML>

------=_NextPart_000_0092_01C1A023.3C64C0E0--



--__--__--

Message: 3
From: "Pedro" <ppalomo at hotpop.com>
To: <jdom-interest at jdom.org>
Date: Fri, 18 Jan 2002 13:59:37 +0100
Subject: [jdom-interest]
=?iso-8859-1?Q?Re:_=5Bjdom-interest=5D_Help=A1=A1=A1_Please=A1=A1=A1=A1?=
 =?iso-8859-1?Q?_Strange_problem_with_JSP/XML/Java_saving_XML_files=A1?=
 =?iso-8859-1?Q?=A1=A1?=

This is a multi-part message in MIME format.

------=_NextPart_000_0107_01C1A028.5D726A80
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Some tip to solve the problem with the saving of xml files...

I have replaced the line FileWriter writer =3D new FileWriter(file);  =
with OutputStream writer =3D new FileOutputStream(fichero);
and creates the xml file correctly but I DON'T understand why using a =
FileWriter Class in JSP run OK and in a stand-alone application =
not.........
and a java Stand-alone apliccation with the line OutputStream writer =3D =
new FileOutputStream(fichero); run OK and creates the xml file.......

What differences are between the FileWriter and OutputStream classes??
What differences can be between the JSP application and Java application =
envinronments???

I wait your help, advices, tips, suggestions, etc,etc...

Thanks from Spain=A1=A1=A1

Pedro.
       =20

  ----- Original Message -----=20
  From: Pedro=20
  To: jdom-interest at jdom.org=20
  Sent: Friday, January 18, 2002 1:22 PM
  Subject: [jdom-interest] Help=A1=A1=A1 Please=A1=A1=A1=A1 Strange =
problem with JSP/XML/Java saving XML files=A1=A1=A1


  Hi friends of XML=A1=A1

  I have a problem in my application. I use a javabean to =
merge,copy,save xml files....and the problem is :

      I have a JSP page that uses this javabean and create/save an xml =
file correctly, but the same java code and the same javabean in a =
separate Java application(stand alone JAVA application) don't =
saves/writes the file correctly. When i try to open the xml file with =
Internet explorer gives me an error because the file is cutted. And it's =
strange that if I send the file to the System.out the file seemingly =
correctly and complete.
  =20
      What can be my problem??

  The code of the function that writes/saves the xml file is ......
  =20
  public boolean SaveXML(String file,Document doc) throws IOException{
   =20
           FileWriter writer =3D new FileWriter(file);
           XMLOutputter outputter =3D new XMLOutputter(" ",true);
          =20
          //  outputter.output(doc, System.out);  In the java program =
shows correctly the file in the Dos Window
         =20
          outputter.output(doc, writer);=20
          // In JSP run OK and create the file and in Java application =
cut the file but=20
          // don't throws an exception
                           =20
           return true;
      =20
    }


=20
=20


------=_NextPart_000_0107_01C1A028.5D726A80
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.3315.2870" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Some tip to solve the problem with the =
saving of=20
xml files...</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I have replaced the line =
<STRONG>FileWriter writer=20
=3D new FileWriter(file);&nbsp;</STRONG>&nbsp;with <FONT=20
color=3D#ff0000><STRONG>OutputStream writer =3D new=20
FileOutputStream(fichero);</STRONG></FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>and creates the xml file correctly but =
I DON'T=20
understand why using a FileWriter Class in JSP run OK and in a =
stand-alone=20
application not.........</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>and a java Stand-alone apliccation with =
the line=20
<FONT color=3D#ff0000><STRONG>OutputStream writer =3D new =
FileOutputStream(fichero);=20
</STRONG></FONT><FONT color=3D#000000>run OK and creates the xml=20
file.......</FONT></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>What differences are between the =
FileWriter and=20
OutputStream classes??</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>What differences can be between the JSP =
application=20
and Java application envinronments???</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I wait your help, advices, tips, =
suggestions,=20
etc,etc...</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks from Spain=A1=A1=A1</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Pedro.</FONT></DIV>
<DIV><FONT face=3DArial=20
size=3D2><STRONG>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</STRONG=
></FONT></DIV>
<DIV>&nbsp;</DIV>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: =
0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
  <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV=20
  style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
  <A href=3D"mailto:ppalomo at hotpop.com" =
title=3Dppalomo at hotpop.com>Pedro</A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A=20
  href=3D"mailto:jdom-interest at jdom.org"=20
  title=3Djdom-interest at jdom.org>jdom-interest at jdom.org</A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Friday, January 18, 2002 =
1:22=20
  PM</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> [jdom-interest] =
Help=A1=A1=A1=20
  Please=A1=A1=A1=A1 Strange problem with JSP/XML/Java saving XML =
files=A1=A1=A1</DIV>
  <DIV><BR></DIV>
  <DIV><FONT face=3DArial size=3D2>Hi friends of XML=A1=A1</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>I have a problem in my application. I =
use a=20
  javabean to merge,copy,save xml files....and the problem is =
:</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; I have a JSP page =
that uses=20
  this javabean and create/save an xml file correctly, but the same java =
code=20
  and the same javabean in a separate Java application(stand alone JAVA=20
  application) don't&nbsp;saves/writes the file correctly. When i try to =
open=20
  the xml file with Internet explorer gives me&nbsp;an&nbsp;error =
because the=20
  file is cutted. And it's strange that if I send the file to the=20
  System.out&nbsp;the file&nbsp;seemingly correctly and =
complete.</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; What can be my=20
  problem??</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>The code&nbsp;of the function that =
writes/saves=20
  the xml file is ......</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><STRONG><FONT face=3DArial size=3D2>public boolean SaveXML(String =

  file,Document doc) throws =
IOException{<BR>&nbsp;&nbsp;</FONT></STRONG></DIV>
  <DIV><STRONG><FONT face=3DArial=20
  size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FileWriter =
writer =3D=20
  new FileWriter(file);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &nbsp;XMLOutputter outputter =3D new XMLOutputter("=20
  =
",true);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT>=
</STRONG></DIV>
  <DIV><STRONG><FONT color=3D#00ff00 face=3DArial=20
  size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT=20
  color=3D#0000ff>//&nbsp;&nbsp;outputter.output(doc, System.out);&nbsp; =
In the=20
  java program shows correctly the file in the Dos=20
  Window</FONT></FONT></STRONG></DIV>
  <DIV><STRONG><FONT color=3D#0000ff face=3DArial=20
  size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
</FONT></STRONG></DIV>
  <DIV><STRONG><FONT face=3DArial=20
  size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT=20
  color=3D#ff0000>outputter.output(doc, writer); =
</FONT></FONT></STRONG></DIV>
  <DIV><STRONG><FONT face=3DArial=20
  size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// In JSP run =
OK and=20
  create the file and in&nbsp;Java application cut the file but=20
  </FONT></STRONG></DIV>
  <DIV><STRONG><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp; //=20
  don't throws an&nbsp;</FONT><FONT face=3DArial=20
  =
size=3D2></STRONG><STRONG>exception<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;</STRONG></FONT><FONT=20
  face=3DArial=20
  =
size=3D2><STRONG>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return=20
  =
true;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;}</STRONG></FONT><=
/DIV>
  <DIV>&nbsp;</DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2><PRE style=3D"FONT-SIZE: 10pt; =
FONT-STYLE: normal; FONT-VARIANT: normal; FONT-WEIGHT: normal; =
LINE-HEIGHT: 12pt">&nbsp;</PRE><PRE style=3D"FONT-SIZE: 10pt; =
FONT-STYLE: normal; FONT-VARIANT: normal; FONT-WEIGHT: normal; =
LINE-HEIGHT: 12pt">&nbsp;</PRE></FONT></DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0107_01C1A028.5D726A80--



--__--__--

Message: 4
Date: Fri, 18 Jan 2002 14:30:16 +0100 (CET)
From: "Ken Rune Helland" <kenh at csc.no>
To: ppalomo at hotpop.com
Cc: jdom-interest at jdom.org
Subject: [jdom-interest]
=?iso-8859-1?Q?Re:_[jdom-interest]_Re:_[jdom-interest]_Help=A1=A1=A1_PlEAse=
A1=A1=A1=A1?=

> Some tip to solve the problem with the saving of xml files...
> 
> I have replaced the line FileWriter writer = new FileWriter(file); 
> with OutputStream writer = new FileOutputStream(fichero); and creates
> the xml file correctly but I DON'T understand why using a FileWriter
> Class in JSP run OK and in a stand-alone application not......... and a
> java Stand-alone apliccation with the line OutputStream writer = new
> FileOutputStream(fichero); run OK and creates the xml file.......
> 

Just a guess, maybe you need to .close() the file. Maybe the 
buffering/flushing behavior of the FileWriter is differrent in 
the two enviorments.


KenR



--__--__--

Message: 5
Reply-To: "Igal Corcos" <scarface at MAGMA.CA>
From: "Igal Corcos" <scarface at MAGMA.CA>
To: <jdom-interest at jdom.org>
Date: Fri, 18 Jan 2002 12:29:18 -0500
Subject: [jdom-interest] Parsing multiple XML documents

Hello,

Is there a way to parse multiple XML documents in one physical file using
JDOM?

For example, if I have a file called Orders.xml which contains something
like:

<?xml version="1.0" encoding="UTF-8"?>
<Orders>
...
</Orders>
<?xml version="1.0" encoding="UTF-8"?>
<Orders>
...
</Orders>
<?xml version="1.0" encoding="UTF-8"?>
<Orders>
...
</Orders>

Is there a way to parse the file and create 3 Document objects? If not, can
someone suggest another way to accomplish this?

Thanks.
-Igal Corcos



--__--__--

Message: 6
From: Mark Hortman <mark at swapstuff.com>
To: jdom-interest at jdom.org
Date: Fri, 18 Jan 2002 13:57:08 -0600
Subject: [jdom-interest] (no subject)


I am using JDOM b7 and trying to do a xslt transform and getting the
following error:

java.lang.NullPointerException
        at java.lang.System.arraycopy(Native Method)
        at
org.apache.xml.utils.FastStringBuffer.append(FastStringBuffer.java:646)
        at
org.apache.xml.dtm.ref.sax2dtm.SAX2DTM.characters(SAX2DTM.java:1833)
        at org.jdom.output.SAXOutputter.characters(SAXOutputter.java:618)
        at
org.jdom.output.SAXOutputter.elementContent(SAXOutputter.java:583)
        at org.jdom.output.SAXOutputter.element(SAXOutputter.java:410)
        at
org.jdom.output.SAXOutputter.elementContent(SAXOutputter.java:590)
        at org.jdom.output.SAXOutputter.element(SAXOutputter.java:410)
        at
org.jdom.output.SAXOutputter.elementContent(SAXOutputter.java:590)
        at org.jdom.output.SAXOutputter.element(SAXOutputter.java:410)
        at
org.jdom.output.SAXOutputter.elementContent(SAXOutputter.java:590)
        at org.jdom.output.SAXOutputter.element(SAXOutputter.java:410)
        at
org.jdom.output.SAXOutputter.elementContent(SAXOutputter.java:590)
        at org.jdom.output.SAXOutputter.element(SAXOutputter.java:410)
        at
org.jdom.output.SAXOutputter.elementContent(SAXOutputter.java:590)
        at org.jdom.output.SAXOutputter.element(SAXOutputter.java:410)
        at org.jdom.output.SAXOutputter.output(SAXOutputter.java:254)
       at
org.jdom.transform.JDOMSource$DocumentReader.parse(JDOMSource.java:732)
       at
org.apache.xml.dtm.ref.DTMManagerDefault.getDTM(DTMManagerDefault.java:357)
       at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:
634)
       at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:
1092)
       at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:
1070)



More information about the jdom-interest mailing list