. (Univ.)
Siegfried Baiz
Sulzer GmbH
Frankfurter Ring 162, D-80807 Muenchen
Tel.: +49 89 31858-264
Fax : +49 89 31858-599
mailto:[EMAIL PROTECTED]
--
Lawrence Jones wrote:
Hi Siggi
I had a try at this and it seemed to work to me
Hi Mikael
Absolutely. Have a look at the API XmlCursor.insertProcInst().You can
get a cursor from an XmlObject via the newCursor() method.
Note that you need the cursor to be in the right place in the document
before calling insertProcInst(). If you're new to XmlCursor have a look
at the article
:
Which FUNCTION- rsp. FRAME-Nodes refer to given Signal?
Which SIGNAL-Nodes are refererd by a given FRAME rsp. FUNCTION?
By the way I've checked my classpath:
It contains saxon8.jar but not saxon8-dom.jar.
Thanks and Cheers,
Siggi
Lawrence Jones wrote:
I too
Hi Frank
I'm not sure whether this was a bug or an old policy decision. But I
agree that the code that currently gets generated does look at little
odd in terms of usability and could be better. So I've raised a JIRA
(see http://issues.apache.org/jira/browse/XMLBEANS-261) to track the
issue and
I too have had a go at this, but I too am not an XPath expert.
First of all make sure you have _all of_ saxon8.jar and saxon8-dom.jar
and xbean_xpath.jar (in addition to the normal xbean.jar and the JSR 173
jar) on your classpath. Not having saxon8-dom.jar can cause strange
errors. Not having
-
From: Lawrence Jones
Sent: Thursday, March 30, 2006 2:54 PM
To: user@xmlbeans.apache.org
Subject: RE: selectPath with FilterExpression using $this
I too have had a go at this, but I too am not an XPath expert.
First of all make sure you have _all of_ saxon8.jar and saxon8-dom.jar
Hi Pavel
The content model you are referring to is
called a mixed content model. You specify this in your schema using
the mixed=true attribute: either
complexType mixed=true
/complexType
Or
complexType
complexContent mixed=true
/complexContent
/complexType
See
Hi Pat
Hmmm. Let me describe it a bit and we can go from there.
First of all XmlBeans is not a WSDL-based tool. It is a schema-based
tool. Since a WSDL can contain a schema in its types section there is
extra code in XmlBeans such that you can pass in a WSDL document to
scomp (or the ant task).
Hi DM
It's arguable. I would say it's probably a small bug - and either way it
affects what I said to Pat so I've logged it in the JIRA. But having
said that the results look fairly minor to me.
The difference between your schema and Pat's is that you are using an
anonymous inner type (which is
.
It is this OrderDetails object that I am looking to find as without it I have
no way to get or set any of the
elements contained within the OrderDetails part of the xml message.
Thanks again for your help so far.
Regards,
Eamonn
Lawrence Jones wrote:
Hi EamonnI tried out your schema below and it worked for me
TestX.
Thanks a lot.
Pat
Lawrence Jones wrote:
Hi all
Alex is quite right about .xsdconfig, and his example will work fine
but
note it will change the _/package name/_ of all generated beans for
that
namespace. If you wanted to change the class name of the generated
bean
Hi Eamonn
I tried out your schema below and it worked for me. The OrderDetails
interface was generated as an inner interface on Order which was itself
an inner interface of OrderDocument. Similarly for the impl classes.
I believe the rule is that global elements/types are generated as
separate
with the use of basetypes and thats
definitly
out of my reach.
Is there any solution to this?
Ramin
Am Fr 03.03.2006 20:03 schrieb Lawrence Jones [EMAIL PROTECTED]:
Hi Ramin
You can substitute even simple types - David Bau, one of the
original
designers
Hi all
Alex is quite right about .xsdconfig, and
his example will work fine but note it will change the _package name_ of all generated beans for
that namespace. If you wanted to change the class name of the generated bean
then that too is supported via .xsdconfig but this time using
.
Is there any solution to this?
Ramin
Am Fr 03.03.2006 20:03 schrieb Lawrence Jones [EMAIL PROTECTED]:
Hi Ramin
You can substitute even simple types - David Bau, one of the
original
designers of XmlBeans, thought of this (it's discussed in 3 articles
called The Design of XMLBeans parts 1
Hi all
Well firstly there's a bug in the message here. In your case the message
should read:
cvc-maxLength-valid.1.1: string length (9) is greater than maxLength
facet (2) for 'yourType'
where yourType is QName of the schema type causing the problem. This
would be far more helpful and was
Hi Artem
Can you send the code you are using to
create your document please?
Cheers,
Lawrence
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Friday, March 03, 2006 9:14
AM
To: user@xmlbeans.apache.org
Subject: Default attribute value
and serialization
Hi Ramin
You can substitute even simple types - David Bau, one of the original
designers of XmlBeans, thought of this (it's discussed in 3 articles
called The Design of XMLBeans parts 1, 2 and 3 - there are links to
these articles at http://xmlbeans.apache.org/resources/index.html).
To
is: error.getCursorLocation().getDomNode()
On 3/3/06, Lawrence
Jones [EMAIL PROTECTED]
wrote:
Hi all
Well firstly there's a bug in the message here. In your case the message
should read:
cvc-maxLength-valid.1.1: string length (9) is greater than maxLength
facet (2) for 'yourType'
where yourType
Hi Graham
XmlBeans generates XmlObjects with getters
and setters that sit on top of an XML store which contains XML in a token based
form (this is different from most approaches where the values returned by the getters
are stored directly in the object as instance variables).
An
Hey all
There have been various mentions on the mailing lists of not being able
to use the newer version of Saxon. As of the checkin below (378309) Radu
committed for me an update that changes XmlBeans' build process to
download and use SaxonB-8.6.1 instead of SaxonB-8.1 (which is what we
were
Hi Vlad
Good catch. The fact that
insertNewExpression(0) does not insert at the 0th position in this
case is another bug. Radu has checked in the fix for that (but not for the
previous bugs on this thread) at SVN# 376503. Unfortunately the fix was to the
code-generation code and hence
it not to put type=Apply?
Thanks,
Vlad
Lawrence Jones [EMAIL PROTECTED]
wrote:
Hi
Vlad
I’m a little confused over exactly what
you’re trying to do. Substitution groups define elements which can replace
other elements – therefore I’m not sure what
,
Lawrence
From: Lawrence Jones
Sent: Monday, February 06, 2006
11:06 AM
To: 'user@xmlbeans.apache.org';
'[EMAIL PROTECTED]'
Subject: RE: Need help with
substitutionGroup
Hi Vlad
I wouldn’t use changeName() unless you
know exactly what you are doing
Hi David
Thanks for the vote of confidence :-)
By using insertChars() you are telling XmlBeans that you want to insert
text. To insert text which includes a '' character the XML spec insists
that the '' character _must_ be translated into lt; (see
http://www.w3.org/TR/REC-xml/ section 2.4 and
Hi David
You can change both package and class names (and do other useful things
such as ensure that your generated XmlBeans implement a user-supplied
interface) using an xsdconfig file - see, for instance, the article at
http://dev2dev.bea.com/pub/a/2004/11/Configuring_XMLBeans.html for
details
defined the class name conversion incorrectly?
-Original Message-
From: Lawrence Jones [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 01, 2006 2:49 PM
To: user@xmlbeans.apache.org
Subject: RE: xsdconfig
Hi David
You can change both package and class names (and do other
XmlBeans keeps this sort of information in the .xsb files that it
generates rather than in annotations on the Java. However there is a way
to get to it from the Java.
Suppose you've generated MyElementDocument.class from an element called
myElement in targetNamespace http://myNamespace/test.
Hi Johann
By setting the srconly attribute to true you are generating only source files.
In order to get generated class files (and .xsb files which are XmlBeans' way
of storing the schema information) you'll need to do something like the
following:
target name=compileSchema
xmlbean
Hi Richard
What you've described, ? ... ?, is not a comment - comments have the
form
!-- your comment here --
Instead it's what's called a processing instruction (or procinst for
short).
Having said that I'm not sure why XmlBeans would be objecting to a
procinst either. Can you attach the
It seems like you got what you wanted elsewhere but just for everyone
else's benefit. To get the most current source code you would do:
svn co http://svn.apache.org/repos/asf/xmlbeans/trunk/
If you specifically want the code as of 2.1.0 then you should svn update
to revision 330131 (this
Hi Marius
I'm sorry about the delay. I will try and take a look at this when I get
a chance but unfortunately I am not an expert (by a long way) on this
area of the code so I will need quite a while to familiarize myself with
it.
Cheers,
Lawrence
-Original Message-
From: Marius
Hi Richard
What you want is fine and is supported. However,
in your instance doc declaring the attribute xmlns:tns=http://infor.com/FactsCodeData in your Response element does nothing
other than map the prefix tns to the namespace http://infor.com/FactsCodeData. It does not change the
Hi Holger
There are a couple of problems here. One is that the error message is a bit
misleading and leads you to think that there's some problem with the type
definition (in your case typeMLSTRING00250) when in fact it's a problem with
the _use_ of that type.
The second problem is that I
doc for setCharterEncoding but
couldn’t find
The supported encoding types. In other words which encodings are allowed
in the
Function setCharacterEncoding(encoding); ?
Cheers / Christophe
-Original Message-
From: Lawrence Jones [mailto:[EMAIL PROTECTED]
Sent: 16 Disember 2005
Hi Holger
Can you expand on this a bit? Is your complex type definition for
typeMLSTRING00050 at the top level? Or put another way, what is surrounding
your definition for typeMLSTRING00050? And what is at line 3681 of your schema
bmecat_2005.xsd?
It looks like something is using
Hi Christophe
It's very unlikely that the characters are the problem - all Unicode characters
are allowed in XML - see e.g. http://www.xml.com/axml/testaxml.htm (section
2.2) and hence in XmlBeans.
What is more likely is that the characters are not encoded (as bytes) in the
way XmlBeans
It may be worth mentioning that you can use xsdconfig files to override
the default mapping from a given namespace to a package name and pick
anything you want. (Although the package name you pick obviously has to
be a valid Java package name - so you can't have just numbers).
You will then have
Hi Mike
Could you post the schema and the exact
command line youre invoking when you see this? I think that would allow
easier investigation.
Cheers,
Lawrence
From: Mike Skells
[mailto:[EMAIL PROTECTED]
Sent: Friday, December 09, 2005
8:42 AM
To:
Hi Richard
I think youre running into the
infamous elementFormDefault=qualified | unqualified
issue.
If you dont put an elementFormDefault
attribute in the schema element of your schema the default is
elementFormDefault=unqualified.
This means that when you refer to non-global
\src -javasource 1.5 -mx 500m
e:\projects\xmlbeansgenerated\schemas
for completeness
java version 1.5.0_05
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_05-b05)
Java HotSpot(TM) Client VM (build 1.5.0_05-b05, mixed mode)
Mike
From: Lawrence
Jones [mailto:[EMAIL
Hi Kevin
Schema doesn't allow multiple inheritance i.e. when you do
restriction base=XXX or extension base=XXX there is only 1
XXX. So I don''t think there's any way to immediately inherit both
Type1 and Type2.
Also all causes problems. You are not allowed to put one all inside
another all
Try adding C:\Java\jdk1.5.0_05\bin to the _start_ of your PATH variable.
Cheers,
Lawrence
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 27, 2005 4:17 PM
To: user@xmlbeans.apache.org
Subject: scomp issues
I've recently been
I am looking to build some UI tools to
manage some documents that we use internally
I think that I will have to scan all of
the document and build these reverse lookups.
Mike
From: Lawrence
Jones [mailto:[EMAIL PROTECTED]
Sent: 10 October 2005
Hi Mike
The SchemaLocalElement interface (and
hence SchemaGlobalElement too since it inherits from SchemaLocalElement) has a getIdentityConstraints()
API which returns an array of SchemaIdentityConstraint objects which I think should
be helpful to you.
You can navigate to an object
There is also programmatic access to an object model representing the
schema. From any generated bean, say a class called Abc, you can call
Abc.type.getTypeSystem()
This returns a SchemaTypeSystem on which you can execute all sorts of
methods concerning the contents of the schema.
Cheers,
Hi Enrico
I don't think there's anything technically wrong with the output the way
you've put it below? Prefixes are not part of the infoset and hence are
not currently retained (you could easily have clashes where people have
used the same prefix in 2 different schemas to mean 2 different
Hi Dan
I think XmlOptions.setLoadSubstituteNamespaces() is what you want. The
comments on that method indicate that passing in the same map that
you're currently using should work.
Cheers,
Lawrence
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Dan Durkin
Sent:
Title: Message
Hi Ray
elementFormDefault=qualified
affects only those elements which are local (i.e. declared within the context
of another element or type), not those which are global (i.e. declared at the
top level just within schema). See http://www.w3.org/TR/xmlschema-1/ section
() would achieve this affect, but it didn't seem to do
the trick.
Any ideas?
Thanks again for your help.
-Ray
-Original Message-
From: Lawrence Jones
[mailto:[EMAIL PROTECTED]
Sent: Monday, September 26, 2005
3:15 PM
To: user@xmlbeans.apache.org
Subject
Hi Birch
The bar element isnt
so much anonymous as local. There is a way of getting to local elements
annotations (and hence appInfo elements) but it is not altogether obvious. A
JIRA has been raised to look at making it simpler to get to such annotations
Hi Ian
I think the following thread the user mailing list on 7/19/05 -
http://mail-archives.apache.org/mod_mbox/xmlbeans-user/200507.mbox/%3c4B
[EMAIL PROTECTED] will
help you.
Cheers,
Lawrence
-Original Message-
From: Butt, Ian [mailto:[EMAIL PROTECTED]
Sent: Friday, August 26,
Hi Yixing
You can use the XmlCursor to insert
attributes. Use the cursor to navigate to the element on which you wish to add
the attributes. After that do something like the following:
QName
attQN = new QName(http://www.w3.org/2001/XMLSchema-instance,
noNamespaceSchemaLocation,
Hi all
I'm going to submit a patch that will update the documentation to
include jsr173_api.jar in the classpath.
The UnsupportedClassVersionError is odd - the only circumstance when you
would get that appears to me to be if you had already compiled
Here's the patch to the docs I was referring to below.
Cheers,
Lawrence
-Original Message-
From: Lawrence Jones
Sent: Tuesday, August 16, 2005 10:07 AM
To: 'user@xmlbeans.apache.org'
Subject: RE: xmlbeans ant task
Hi all
I'm going to submit a patch that will update
Apologies. I updated the taskdef tasks but not the xmlbean tasks.
Here's a new patch for the docs. Please ignore the previous one.
Cheers,
Lawrence
-Original Message-
From: Lawrence Jones
Sent: Tuesday, August 16, 2005 2:41 PM
To: user@xmlbeans.apache.org
Subject: RE: xmlbeans ant
To me it looks as though it's trying to cast something which has a
namespace to something that doesn't (and therefore ends up in the
noNamespace package). It could have something to do with your
elementFormDefault setting. Could I ask you to attach your schema so I
can replicate the issue?
Hi Niklas
The TypeSystemHolder class is a generated
class which is the link between the Java (.class) world and the
compiled schema (.xsb) world. It is output in the binary output directory (whatever
you specify with the d flag to scomp) and is not output if you specify
-srconly.
Hi Jim
I can answer your first question. I'll have to leave someone else to
answer your second.
Your schema defines a targetNamespace of
http://www.aptas.com/ontology;. datafeed is defined as a top-level
(i.e. global) element. This means that instance documents need to refer
to that element
the second change we have to make to
the
schema, which points a finger at the WorldDAB committee who wrote it.
I
did email them when I had to make the first change but received no
reply. Oh well.
Thanks for the help :)
Adam
-Original Message-
From: Lawrence Jones [mailto
the schema again?
In my current set-up in Eclipse, I am certain that the app is not
accessing the schemas once running.
Thanks
Adam
-Original Message-
From: Lawrence Jones [mailto:[EMAIL PROTECTED]
Sent: 20 May 2005 17:44
To: user@xmlbeans.apache.org
Subject: RE
61 matches
Mail list logo