... |
... |
@@ -1,0 +1,9 @@ |
|
1 |
+In Eclipse, you can right click on an xsd file, like the xsd for the REST api [[described here>>XWikiRESTfulAPI#HXWikiRESTfulAPIDocumentation]], and choose "Generate->JAXB classes". |
|
2 |
+ |
|
3 |
+Whatever package that you choose to generate them in, you would use in the |
|
4 |
+{{code language="java"}} |
|
5 |
+context = JAXBContext.newInstance("org"); |
|
6 |
+{{/code}} |
|
7 |
+ In the examples I gave, I just generated them under a package called "org", mostly due to extreme laziness. So I ended up with org.Page, org.ObjectFactory, org.Space and so on. |
|
8 |
+ |
|
9 |
+ |