SchemaType.getSourceName()

2008-02-14 Thread Denis.Sitnitsa
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

Re: SchemaType.getSourceName()

2008-02-14 Thread Jacob Danner
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

RE: How to apply an xpath query to a document ?

2008-02-14 Thread Wing Yew Poon
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.

Problem with included interfaces

2008-02-14 Thread Clarance Howatt
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

changeType doesn't work for elements that inherit from imported xsds

2008-02-14 Thread Chris Schmidt
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

RE: SchemaType.getSourceName()

2008-02-14 Thread Denis.Sitnitsa
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, .);

Re: SchemaType.getSourceName()

2008-02-14 Thread Jacob Danner
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