Can you post the schema as well?

Thanks
-Duane

From: PhilNad214 PhilNad214 [mailto:philnad...@gmail.com]
Sent: Monday, November 22, 2010 12:17 AM
To: user@xmlbeans.apache.org
Subject: Re: Problems getting started with xmlbeans

As a followup to this, here is an example:

import org.openuri.easypo.PurchaseOrderDocument;
public class POUpdater {
    POUpdater() {
        PurchaseOrderDocument pod = PurchaseOrderDocument.Factory.newInstance();
        System.out.println(pod.toString());
    }
    public static void main(String args[]) {
        POUpdater po = new POUpdater();
    }
}

... which outputs:

<xml-fragment/>

Shouldn't it output at least an XML structure with at least the basic structure 
of the bean?

On Mon, Nov 22, 2010 at 5:44 PM, PhilNad214 PhilNad214 
<philnad...@gmail.com<mailto:philnad...@gmail.com>> wrote:
Hi, I posted here a couple of weeks ago some basic 'getting started' questions. 
I've just got back to this project and have started using some generated code - 
have created a bean and tried to convert to xml, but all I get is the namespace 
in the xml. I.e it is as if the document.toString() is just showing the top 
node, and not traversing its way through the object to generate all the xml.
Does this sound familiar to anyone? Any suggestions?

The next thing I thought I must be doing something wrong, so I've gone back to 
the getting started tutorial at 
http://xmlbeans.apache.org/documentation/tutorial_getstarted.html
However I cannot for the life of me find a tutorial folder (although I did find 
the easypo.xsd and have successfully generated an easypo.jar). I can't see the 
tutorial files on the apache xmlbeans website anywhere... where on earth do you 
get that from??

Thanks

Reply via email to