Hi, everybody!
Doesn anybody know how can I decode the result of
SchemaType.getSourceName() method?
Regards,
Denis.
Visit our website at http://www.ubs.com
This message contains confidential information and is intended only
for the individual named. If you are not the named addressee you
Hi Denis,
From what I remember, SchemaComponent.getSourceName() will return the
path/location of the xsd used to create the type system.
http://xmlbeans.apache.org/docs/2.2.0/reference/org/apache/xmlbeans/SchemaComponent.html#getSourceName()
If the schema was built from a string, this method
Pascal,
I don't know which README you refer to. It is possible that it is
out-of-date.
If you read the FAQ, you will see that for XMLBeans 2.3, to work with
Saxon (8.8 is supported), you need saxon8.jar and saxon8-dom.jar, along
with xbean_xpath.jar and the other jars in the XMLBeans distribution.
I am generating XMLBeans from a schema and I want to have some of the
generated classes implement a common intercase. So I build a config
file like this:
xb:extension for=com.my. company.MyClass_1 com.my.
company.MyClass_2
xb:interface name=com.my.company.CommonInterface
I have two xsds. One imports the other one and contains a type that
inherits from a type within the imported file. XmlBeans properly
generates a class that extends the base class. When I use XmlBeans to
create a document, XmlBeans does not properly set the xsi:type. If I
place the inherited
Hi Jacob,
I know what does this method return.
But the result is encoded.
Look at the example below:
file_3A_2FC_3A_2Fmy_5Fxsd/datetime.xsd
The question is how to decode it?
For now I do it such a way:
path = path.replaceAll(_2F, /);
path = path.replaceAll(_2E, .);
Hi Denis,
I see what you mean, I think in this case, getSourceName may be
returning the path of the file in the scomp'ed jar. I'm on a machine
without xmlbeans at the moment so maybe you can try something out for
me.
Will you open the scomp'ed jar and check in the
schema(?)org_apache_xmlbeans\src
7 matches
Mail list logo