xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
- From: Steve Loughran <steve.loughran AT gmail.com>
- To: "marcx AT catbull.com" <marcx AT catbull.com>
- Cc: xom-interest AT lists.ibiblio.org
- Subject: Re: [XOM-interest] strange problem on windows
- Date: Mon, 30 May 2005 23:11:52 +0100
On 5/30/05, marcx AT catbull.com <marcx AT catbull.com> wrote:
> hi xomers,
>
> I do a java-app on Linux, and I use XOM to parse a XML-file with multiple
> namespaces. I use javasdk1.4.2_07 and xom-1.0. Everything works fine and
> as expected...
>
> when I gave the app to the tester on windows(javasdk1.4.2_04, xom-1.0)
> suddenly the parser didn'twork anymore.
>
> the function I use in MyXom.java:
>
>
> Builder parser = new Builder();
> Document d=parser.build(inFilePath);
> Element rootElement = d.getRootElement();
> processChildren(rootElement);
>
> (the path to the xml file is ok, and we use the same files)
>
> and:
>
> public static void processChildren(Node current) {
>
>
> Logger.getLogger("ev").log(Level.FINE, "MyXom processing
> children");
> String data = "";
> if (current instanceof Element) {
> Logger.getLogger("ev").log(Level.FINE, "MyXom found element");
> Element temp = (Element) current;
> data = ": " + temp.getQualifiedName();
> if (temp.getQualifiedName().equals("Receiver")) {
>
> Elements elements = temp.getChildElements();
> for (int j = 0; j < elements.size(); j++) {
> Element child = elements.get(j);
> if (child.getQualifiedName().equals("Addressee")) {
> //something
>
>
> (snippped)
>
>
> however the windows setup never comes to processChildren(),and therefore
> does not get data from the xml-file.
if it doesnt get there, an exception is probably being raised. I'd
find out what it is.
One possibilty: the file isnt there in windows, with the different
path rules and things.
-
[XOM-interest] strange problem on windows,
marcx, 05/30/2005
- Re: [XOM-interest] strange problem on windows, Elliotte Harold, 05/30/2005
- Re: [XOM-interest] strange problem on windows, Steve Loughran, 05/30/2005
Archive powered by MHonArc 2.6.24.