Question about generating Java Source Code from XML Schemas

2013-08-21 Thread Michael Szalay
Hi all I have some xsd schemas in my source tree and I want to generate java sources with XML Beans. I cannot use ant or maven task, I have to do it in plain java. I use the following java code: final InputStream schema1Stream = BeanGenerator.class.getResourceAsStream(xsd/schema1.xsd); final

Re: Question about generating Java Source Code from XML Schemas

2013-08-21 Thread Michael Bishop
I think I can answer your first question. From what I recall in parsing/reading documents, InputStream is a poor choice for XML documents that include other documents. An InputStream object can't tell you where its source is. Therefore, there is no way to find relative paths. I would try the

Re: Add to XmlBeans FAQ re orphaned objects and XmlValueDisconnectedException

2013-08-21 Thread Cezar Andrei
I added the new question and answer to the Faq page. XmlObject.copy() should be much more efficient than toString() and parse(). Cezar On Tue, 2013-08-20 at 07:10 -0700, Lott, Christopher M wrote: I would like to suggest an addition to page http://wiki.apache.org/xmlbeans/XmlBeansFaq but I

XmlBeans Wiki

2013-08-21 Thread Cezar Andrei
Several people tried to edit the XMLbeans wiki pages. Only the people in ContributorsGroup are allowed to edit because of spam reasons. Please respond to this thread if you want to be added to the this list. Cezar - To