Hi,
I am getting a strange error when I am using the xmlbeans maven pluggin
and when I build it generates all the classes just fine and the runs unit
tests an everything works great. However when I fire up tomcat and run in
tomcat I get the following error
java.lang.ExceptionInInitializerEr
I already using jaxen and xalan-j jars for my app. I
just need XMLBeans for XML validation and Java
binding. So, can I reuse my existing Jars
(jaxen/xalan-j) instead of xbean_xpath + saxon8 to
perform XPath processing?
cheers!
-D
__
Hi
I am trying to select a value from the xml that is spat out by the
JHOVE project (http://hul.harvard.edu/jhove/). The xsd describing the
xml results a jhove command is http://hul.harvard.edu/ois/xml/ns/jhove.
The xsd has another nested namespace http://www.loc.gov/mix/ and I am
trying
Thanks a lot, yeah it solved the issue.
Cezar Andrei wrote:
>
> Zapo,
>
> cursor.getName() returns the name of the current token. You need to make
> sure you move the cursor on the right element to get the text and move
> back to the parent "Testcase" and call toNextSibling().
>
>> -Orig
Thanks J,
I can, but the XML has multiple items, so I may need to do that in a loop
and then iterate to the next node.
Regards
Sunder
Jacob Danner-2 wrote:
>
> Why don't you just do
> linkedHashMap.put (
> item1.getSecurity() ,
> item1.getServer() )
>
> Or are you trying to do something else?
Cezar,
Thanks for the reply. The issue is that we're using XMLBeans indirectly
as the data binding option with the Apache Axis2 WSDL2Java tool.
Several services are providing "convenience" libraries to simplify
interfacing to the service. These convenience libraries are being
placed in common lo
I see. Than you shoud make sure you're saving them at the beginning of
the document and for each chunk use the following XmlOption to avoid
outputting the namespaces again:
/**
* If namespaces have already been declared outside the scope of the
* fragment being saved, this allows
Yes i did. But the problem with this is that the method must be run after
you build the entire structure in memory. Then it iterates twice over it
and that takes quite a lot of cpu time. I want to be able to add the
namespaces and prefixes at createInstance time, so that i don't need to
run th
Zapo,
cursor.getName() returns the name of the current token. You need to make
sure you move the cursor on the right element to get the text and move
back to the parent "Testcase" and call toNextSibling().
> -Original Message-
> From: Zapo [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, Decemb
Knut, did you try using the following save option?
/**
* Causes the saver to reduce the number of namespace prefix
declarations.
* The saver will do this by passing over the document twice, first
to
* collect the set of needed namespace declarations, and then second
Richard,
It isn't supposed to work like this.
The XMLSchema spec assumes that everybody is using namespaces and that
the QNames for different types and elements do not collide. This is the
model that XMLBeans uses, which is the same as java packages and classes
work.
In the rare cases when ther
11 matches
Mail list logo