Thread View: pl.comp.xml
1 messages
1 total messages
Started by GG
Sun, 03 Aug 2008 21:05
Java Xstream generacja kodu
Author: GG
Date: Sun, 03 Aug 2008 21:05
Date: Sun, 03 Aug 2008 21:05
35 lines
1300 bytes
1300 bytes
Cześć,
Czy istnieje jakieś narzędzie do generacji kodu class pojo
w javie (oprocz JAXB) na podstawie schematu xsd lub pliku xml.
Klasy wygenerowane miałyby być serializowane do xml'a
z uĹĽyciem biblioteki Xstream ( warunek konieczny ).
Przykład:
<person>
<name>Zibi</name>
...
<adress>
<city>Los Angeles</city>
...
</address>
<address>
<city>Chicago</city>
...
</address>
</person>
Miałby wygenerować:
public class Person {
String name;
List<Address> adressList = new ArrayList<Address>();
}
pozdrawiam i dziękuję za pomoc
GG
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads