Hi All,

 I’ working on some code to parse and generate XHTML. What I’ve done is used scomp to generate the XMLBeans classes from xhtml1-strict.xsd. This all works and I can at the moment generate valid xhtml however I cannot figure out how to set content data ie, how do I set and get “Example URL” out of the following

 

<a href="" Url</a>

 

The setting code is like this:

ADocument.A a = null;

a = td.addNewA();

a.setHref("http://example.com");

a.setStyle("mystyle");

 

What I was expecting was some generic function such as setStringValue()/getStringValue() but not of the xhtml classes I  generated have this.  To test this I generated my own set of classes from my own xsd and some  items do have a setStringValue()/getStringValue() which is not deprecated and when used returns me the data I expect.

 

I’m using XMLBeans 2.2.0 with JDK 1.5.0

My scomp command: scomp -noann -noupa -out xhtml1-strict.jar -compiler \jdk1.5.0_07\bin\javac.exe xhtml1-strict.xsd

 

 

Any ideas

 

Reply via email to