Re: XML Parser give "bad version number in .class file"

2009-08-11 Thread jdeisenberg
jdeisenberg wrote: > > > Steve Loughran wrote: >> Scot P. Floess wrote: >>> so unless you are setting any kind of factory for the xml parser, it >>> should use the stock XML parser that comes with Java. >>> >> ant -diagnostics finds the XML parser >> >> > > That's the problem. diagnostics en

Re: XML Parser give "bad version number in .class file"

2009-08-11 Thread jdeisenberg
Steve Loughran wrote: > > > > 0. What is printed up to that point? > > 1. what does java -version say > > 2. what's in ANT_HOME/lib > That was the problem. I installed the binary of the latest ant, and exported ANT_HOME to point to that directory. It seems to be working now. -- View th

Re: XML Parser give "bad version number in .class file"

2009-08-11 Thread Steve Loughran
jdeisenberg wrote: Steve Loughran wrote: Scot P. Floess wrote: so unless you are setting any kind of factory for the xml parser, it should use the stock XML parser that comes with Java. ant -diagnostics finds the XML parser That's the problem. diagnostics ends with this ---

Re: XML Parser give "bad version number in .class fi

2009-08-11 Thread Scot P. Floess
I see your point... when I run w/ diagnostics I see the following xml section: --- XML Parser information --- XML Parser : org.apache.xerces.jaxp.SAXParserImpl XML Parser Location: /home/sfloess/Tools/apache-ant-1

Re: XML Parser give "bad version number in .class file"

2009-08-11 Thread jdeisenberg
Steve Loughran wrote: > > Scot P. Floess wrote: >> >> so unless you are setting any kind of factory for the xml parser, it >> should use the stock XML parser that comes with Java. >> > > ant -diagnostics finds the XML parser > > That's the problem. diagnostics ends with this

Re: XML Parser give "bad version number in .class file"

2009-08-11 Thread Steve Loughran
Scot P. Floess wrote: so unless you are setting any kind of factory for the xml parser, it should use the stock XML parser that comes with Java. ant -diagnostics finds the XML parser - To unsubscribe, e-mail: user-unsubscr

Re: XML Parser give "bad version number in .class file"

2009-08-11 Thread Scot P. Floess
so unless you are setting any kind of factory for the xml parser, it should use the stock XML parser that comes with Java. Is there anything in your build.xml that is processing xml or you are setting the xml factory (off the top of my head I can't remember the factory name/property one sets

Re: XML Parser give "bad version number in .class file"

2009-08-11 Thread jdeisenberg
Scot P. Floess-2 wrote: > > > It almost looks like what ever version of the XML parser you are using was > compiled with a newer VM? > > [snip] > > I am not sure *where* to find the XML parser so that I might update it. What is ant's default classpath, or where should I look? -- View th

Re: XML Parser give "bad version number in .class file"

2009-08-11 Thread Scot P. Floess
It almost looks like what ever version of the XML parser you are using was compiled with a newer VM? On Tue, 11 Aug 2009, jdeisenberg wrote: Not that I doubt you ;) But from the command line, what do you get doing: java -version Just wanting to make sure you somehow don't have a JDK 1

Re: XML Parser give "bad version number in .class file"

2009-08-11 Thread jdeisenberg
Not that I doubt you ;) But from the command line, what do you get doing: java -version Just wanting to make sure you somehow don't have a JDK 1.4 or less... [snip old info] [da...@localhost android_app]$ java -version java version "1.5.0_15" Java(TM) 2 Runtime Environment, Standard Editio

Re: XML Parser give "bad version number in .class file"

2009-08-11 Thread Scot P. Floess
Not that I doubt you ;) But from the command line, what do you get doing: java -version Just wanting to make sure you somehow don't have a JDK 1.4 or less... On Tue, 11 Aug 2009, jdeisenberg wrote: Using Java 1.5 (and also have tried Java 1.6) on Mandriva Spring 2008. When trying to bui

Re: XML

2009-03-09 Thread Brian Agnew
You can do something like this using XMLTask. e.g. Found a node with text ${path} The above will call the target 'callback' with the text content of each node that is matched by the XPath expression //*. See http://www.oopsconsultancy.com/software/xmltask/ and in pa

RE: XML

2009-03-09 Thread Martin Gainty
have you looked at xslt task? http://ant.apache.org/manual/CoreTasks/style.html Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This

Re: xml validation woes

2006-09-01 Thread Dominique Devienne
On 9/1/06, EJ Ciramella <[EMAIL PROTECTED]> wrote: Triple slash works. Cool. Yes, I believe that's the official syntax to use, and the single-slash was a bug in a previous JDK. I was using single-slash, and it broke when I changed JDK (or maybe it's when I switched from Xalan to Saxon, I don't

RE: xml validation woes

2006-09-01 Thread EJ Ciramella
Triple slash works. -Original Message- From: Dominique Devienne [mailto:[EMAIL PROTECTED] Sent: Friday, September 01, 2006 12:32 PM To: Ant Users List Subject: Re: xml validation woes > xsi:noNamespaceSchemaLocation="file://e:/work/docs/... Try with file:/e:/work/docs and f

Re: xml validation woes

2006-09-01 Thread Steve Loughran
EJ Ciramella wrote: I'm having a bit of trouble validating a very simple xml file (for testing purposes). Can anyone shed some light on this for me please? Here is my build script: file="test.xml" classname="org.apache.xerces.parsers.SAXParser"> http://xml.org/sax/features/valida

Re: xml validation woes

2006-09-01 Thread Dominique Devienne
xsi:noNamespaceSchemaLocation="file://e:/work/docs/... Try with file:/e:/work/docs and file:///e:/work/docs. Depends on the JDK which one works I think ;-) --DD - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman

RE: XML question

2005-06-29 Thread Nir Geier
ty, im looking into it. looks like what i need. -Original Message- From: Brian Agnew [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 29, 2005 11:44 AM To: Ant Users List Subject: Re: XML question XmlTask can do this using the subtask. http://www.oopsconsultancy.com/software/xmltask

RE: XML question

2005-06-29 Thread Nir Geier
Ty, I simply want to add XML during build process. i need to add node based upon info generated -Original Message- From: Kees van Dieren [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 29, 2005 11:48 AM To: 'Ant Users List' Subject: RE: XML question You can try it with the

Re: XML question

2005-06-29 Thread Brian Agnew
XmlTask can do this using the subtask. http://www.oopsconsultancy.com/software/xmltask/ Nir Geier wrote: Hi all, Im trying to manipulate XML by adding new node at some point. ex: Does any one has an idea how to do it witho

RE: XML question

2005-06-29 Thread Kees van Dieren
You can try it with the style task (xslt transformer). You don't use use dom or an xml parser yourself, but need to create an external xslt sheet, so it's not pure ant. Kind regards, Kees van Dieren Senior Software Engineer MP Objects Supply Chain Software Stationsplein 45 3013 AK Rotterdam The

Re: xml entity include and protected URL?

2005-02-25 Thread Robert Koberg
Stefan Bodewig wrote: On Fri, 25 Feb 2005, Rob Hills <[EMAIL PROTECTED]> wrote: When I try this, I get errors which I believe are attributable either to a failure to supply a client certificate, or failure to login using a valid username and password. I'm also having difficulty getting any debugg

Re: xml entity include and protected URL?

2005-02-25 Thread Stefan Bodewig
On Fri, 25 Feb 2005, Rob Hills <[EMAIL PROTECTED]> wrote: > When I try this, I get errors which I believe are attributable > either to a failure to supply a client certificate, or failure to > login using a valid username and password. I'm also having > difficulty getting any debugging happening

Re: XML and copy directories

2005-02-07 Thread Brian Agnew
You should be able to do the XML parsing using XMLTask (http://www.oopsconsultancy.com/software/xmltask) and the instruction that it provides. I can provide more specific pointers offline if you require. Brian Henning Waack wrote: Hello all. I am new to Ant, I have no experience with it. I nee

Re: XML and copy directories

2005-02-05 Thread Henning Waack
Hello all. Thanks again for your input, I will evaluate if it is worth to learn Ant for the coming project. Normally I would say yes, but I have a tight schedule, so I don't know if I can afford to learn something new. One minute... ALL (ok, almost) of us, using Ant know Java! Ant was designed

Re: XML and copy directories

2005-02-04 Thread Alan Gutierrez
* Nat Gross <[EMAIL PROTECTED]> [2005-02-04 11:07]: > Henning Waack wrote: > > >Hello James and Ninju. > > > >James Fuller wrote: > > > >>Ninju Bohra wrote: > >> > >>>Well, > >>> > >>>The safe answer is yes and no... > >> > > > >> > >>btw you could just load up an xml file using which > >>does g

Re: XML and copy directories

2005-02-04 Thread Nat Gross
Matt Benson wrote: --- Nat Gross <[EMAIL PROTECTED]> wrote: [SNIP] One minute... ALL (ok, almost) of us, using Ant know Java! Ant was designed mainly for programmers. There is tons of stuff Ant will automate, that will take you much longer to write in Java. It's worth spending some time learn

Re: XML and copy directories

2005-02-04 Thread Matt Benson
--- Nat Gross <[EMAIL PROTECTED]> wrote: [SNIP] > One minute... ALL (ok, almost) of us, using Ant know > Java! Ant was > designed mainly for programmers. There is tons of > stuff Ant will > automate, that will take you much longer to write in > Java. It's worth > spending some time learning Ant.

Re: XML and copy directories

2005-02-04 Thread Nat Gross
Henning Waack wrote: Hello James and Ninju. James Fuller wrote: Ninju Bohra wrote: Well, The safe answer is yes and no... btw you could just load up an xml file using which does give you access to value encapsulated by elements and attributes...additionally there are a few existing 3rd party X

Re: XML and copy directories

2005-02-04 Thread Ninju Bohra
Though remember that ANT is written is JAVA and it rather easy to take whatever JAVA code you write (if any) and make it a task that can be called from an ANT build file... Good luck.. Henning Waack <[EMAIL PROTECTED]> wrote: Hello James and Ninju. James Fuller wrote: > Ninju Bohra wrote: >

Re: XML and copy directories

2005-02-04 Thread Henning Waack
Hello James and Ninju. James Fuller wrote: Ninju Bohra wrote: Well, The safe answer is yes and no... btw you could just load up an xml file using which does give you access to value encapsulated by elements and attributes...additionally there are a few existing 3rd party XML tasks for assistin

Re: XML and copy directories

2005-02-04 Thread James Fuller
Ninju Bohra wrote: Well, The safe answer is yes and no... Out of the box, the ANT distribution (along with the ant-contrib project) comes with a number of concepts (tasks and structures) that would be helpful (, , , etc...) to accomplish MOST of what you want. The one area that is not currently p

Re: XML and copy directories

2005-02-03 Thread Ninju Bohra
Well, The safe answer is yes and no... Out of the box, the ANT distribution (along with the ant-contrib project) comes with a number of concepts (tasks and structures) that would be helpful (, , , etc...) to accomplish MOST of what you want. The one area that is not currently pre-built is t

Re: XML to Java

2004-12-22 Thread Erik Hatcher
On Dec 22, 2004, at 4:04 AM, Robert Soesemann wrote: On requirement is to write as few code as possible. Therefore I am looking for an existing way to: 1 iterate over XML files 2 identify node 3 identify their @type attribute 4 pass the text value of each child node to its appropriate Java Functi

Re: XML Parsing Question

2004-10-07 Thread Peter Reilly
Brent Bain wrote: I've tried the task that Peter Reilly attached to one of the emails about a month ago for an XPath iterator but I can't seem to get it to work with the current ant-contrib tasks. I tested it with the latest ant-contrib - 1.0b1, you may have an older version in your path. Also, it

Re: XML Parsing Question

2004-10-06 Thread Brian Agnew
Without looking at the XML in detail you could certainly use xmltask, and call ant targets for each xml node representing (say) a machine. To call a stop script for each machine: or similar (haven't tried / tested the above, btw.) I can advise further offline if need be. Jacob Kjome wrote:

Re: XML Parsing Question

2004-10-06 Thread Jacob Kjome
Or use something like XMLTask... http://www.oopsconsultancy.com/software/xmltask/index.html Jake Quoting [EMAIL PROTECTED]: > This is what I have been doing to arrange my data in XML files. Its a bit > crooked way of organizing data but > it is read very easily and readily available in properti

Re: XML Parsing Question

2004-10-06 Thread bhaskar_karambelkar
This is what I have been doing to arrange my data in XML files. Its a bit crooked way of organizing data but it is read very easily and readily available in properties. e.g. in your case I would change the format of the XML file to something like this. Machine1 Machine2

Re: XML Schema/DTD/RelaxNG for ant buildfile

2003-09-29 Thread slg.ahlen.quvintheumn
- Original Message - From: "Michael Große" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, September 26, 2003 5:52 PM Subject: XML Schema/DTD/RelaxNG for ant buildfile > Hello, > > > i'm searching for a XML Schema, a DTD or a RelaxNG Schema for Ant > buildfiles. I can imagine

Re: XML Schema/DTD/RelaxNG for ant buildfile

2003-09-29 Thread slg.ahlen.quvintheumn
- Original Message - From: "Jack J. Woehr" <[EMAIL PROTECTED]> To: "Ant Users List" <[EMAIL PROTECTED]> Sent: Monday, September 29, 2003 2:58 AM Subject: Re: XML Schema/DTD/RelaxNG for ant buildfile > Michael Große wrote: > > > i'm sear

Re: XML Schema/DTD/RelaxNG for ant buildfile

2003-09-29 Thread slg.ahlen.quvintheumn
- Original Message - From: "Antoine Levy-Lambert" <[EMAIL PROTECTED]> To: "Ant Users List" <[EMAIL PROTECTED]> Sent: Monday, September 29, 2003 9:21 AM Subject: AW: XML Schema/DTD/RelaxNG for ant buildfile > Hi Michael, > there is an ant task called which generates a DTD based on > the