> Yep. I've seen this on several occasions and it always happens on a null
stream.  We need to add some error checking on that

I saw the patched.  That's quick.

> InputStream in =
> Parse.class.getResourceAsStream("/home/rooneg/.../simple.xml");
>
> If so, that's incorrect, getResourceAsStream tries to pull a file out
> of the classpath, so you need to make sure a directory containing that
> file (i.e. the resources directory, or someplace the contents of that
> directory are copied) is in the classpath when you run the test.

You are right, I got it wrong.  But, what is the advantage of only
pulling files from the classpath?

Yep, although the barrier is a bit high.  The FOM* impl classes are
dependent on the Axiom implementation.  So you either implement JDOM as
a layer under Axiom or create a JDOM-based impl of the FOM* classes.

Sounds quite involved.  Are there no Atom model pojo's that can just
be populated with data by some arbitrary code?

Joe

Reply via email to