Question subject: update an xml file with jaxb and accessing to its elements
Posted: Wed Jul 15, 2009 10:47 am
Joined: Wed Jul 15, 2009 8:39 am Posts: 21 Has thanked: 0 time Have thanks: 0 time
HI
I am working with jaxb .I has get my java classes from my schema xml . My root element is binded to a java classs with getters and setters for its attributes and a method that returns a list of the other elements .
Code:
public List<Object> getContent() { if (content == null) { content = new ArrayList<Object>(); } return this.content; }
I have an xml file that contains just the basic elements and i want to insert elemets and values of attributes .I succed to add attributes to my root element but how can i acceed by this method to other elements and use its methods? IDE:Netbeans 6.5.1 Technology:jaxb
msi_333
Question subject: Re: update an xml file with jaxb and accessing to its elements
Posted: Thu Jul 16, 2009 6:00 am
Joined: Tue Mar 27, 2007 10:55 pm Posts: 2279 Location: Earth Has thanked: 39 time Have thanks: 61 time