Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Convert object to xml

    • 0
    • 0
    • 0
    • 4
    • 0
    • 0
    • 0
    • 728
    Answer it

    i want to make a program that will create automatically XML data structures. I will not know from the beginning which is the class, and which the attributes so i cant use JAXB.

    For example, if the input is:
    Employee, name,id
    Employeelist, company_name, ArrayList.

     

    Then the program must have the following output:

    <Employeelist >
    <company_name>ssss </company_name >
    <Employee >
    <name>ssss </name>
    
    <id> ss</id>
    
    </Employee >
    
    </Employeelist>

    Can you help? Thank you very much

 4 Answer(s)

  • My problem is that i dont know the classes before the execution. The user will decide the classes and the attributes of them. He will type in the console the classes and the attributes and i need to split it and to separate it .

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: