¾ÛÅøÁî
46.¢½.168.138
46.¢½.168.129
46.¢½.168.161
46.¢½.168.136
46.¢½.168.145
46.¢½.168.162
46.¢½.168.144
46.¢½.168.140
115.¢½.135.198
46.¢½.168.139
 
°Ô½Ã¹° 88°Ç
   
xml Á÷·Äó¸®
±Û¾´ÀÌ : °í¹ü¼®                   ³¯Â¥ : 2012-09-24 (¿ù) 17:22 Á¶È¸ : 4387
½ÉÇÃÇÁ·¹ÀÓ¿öÅ© *.jar µî·Ï
package bean;
import org.simpleframework.xml.*;

/**
*
* @author KB_Mr2
*/
@Root
public class KB_bean {

@Attribute
private String type;
@Element
private String company;
@Element
private String id;
@Element
private int quantityInStock;
@Element
private String model;
/**
* @return the type
*/
public String getType() {
return type;
}
/**
* @param type the type to set
*/
public void setType(String type) {
this.type = type;
}
/**
* @return the company
*/
public String getCompany() {
return company;
}
/**
* @param company the company to set
*/
public void setCompany(String company) {
this.company = company;
}
/**
* @return the quantityInStock
*/
public int getQuantityInStock() {
return quantityInStock;
}
/**
* @param quantityInStock the quantityInStock to set
*/
public void setQuantityInStock(int quantityInStock) {
this.quantityInStock = quantityInStock;
}
/**
* @return the model
*/
public String getModel() {
return model;
}
/**
* @param model the model to set
*/
public void setModel(String model) {
this.model = model;
}
/**
* @return the id
*/
public String getId() {
return id;
}
/**
* @param id the id to set
*/
public void setId(String id) {
this.id = id;
}

}
//¸ÞÀÎ ºÎºÐ ó¸®
package kb_xml_parsing;
import bean.KB_bean;
import java.io.File;
import org.simpleframework.xml.Serializer;
import org.simpleframework.xml.core.Persister;
/**
*
* @author KB_Mr2
*/
public class KB_Xml_Parsing {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here

try{

Serializer serializer = new Persister();
KB_bean kb = new KB_bean();
kb.setCompany("¹«¶óµ¿");
kb.setModel("ÁýÁý½º");
kb.setId("kill");
kb.setType("´©¶ó½º");
kb.setQuantityInStock(23);

File file = new File("kb1.xml");
serializer.write(kb, file);

}catch (Exception e){
e.printStackTrace();
}


System.out.print("À¯´ÏƼ Â¥Áõ³ª __");


}
}
* ±ÛÀ» µî·ÏÇϽǶ§ ²À ÇÊ¿äÇÑ °æ¿ì°¡ ¾Æ´Ï¸é °³ÀÎÁ¤º¸¸¦ ³²±âÁö ¸¶¼¼¿ä ^^ (¿¬¶ôó,À̸ÞÀÏÁÖ¼Ò,Áֹεî·Ï¹øÈ£ µî)





   

°Ô½Ã¹° 88°Ç
¹øÈ£ Á¦¸ñ ±Û¾´ÀÌ ³¯Â¥ Á¶È¸
28  À§Ä¡±â¹Ý¼­ºñ½º ½Å°í¾ç½Ä +2 ±è±â¹ü 01-12 4598
27  ¸¶ÄÏ µî·Ï½Ã ÀÛ¼ºÇؾßÇÏ´Â ³»¿ë (¿µ¹®¹ø¿ª??) +3 ±è±â¹ü 03-26 4597
26  12¿ù Á¤±Ô¸ðÀÓ PPT ÀÚ·á ÀÔ´Ï´Ù. +1 ¼¼À̹ڽº 12-12 4583
25  ÇÑ´«¿¡ º¸´Â ¾Èµå·ÎÀÌµå ½º¸¶Æ®Æù ½ºÆå°ú µð½ºÇ÷¹ÀÌ »çÀÌÁî ºñ±³ +2 Á¤Çöö 11-18 4550
24  AdapterView °­ÀÇ pdf +2 ±è±â¹ü 01-12 4486
23  ½º¸¶Æ®Æù ÁÖ¼Ò·Ï °ü·Ã ¼Ò½ºÀÔ´Ï´Ù. +1 ±è±â¹ü 01-26 4401
22  ¸Æ¿¡¼­ ±¸±Û API key µî·Ï¹æ¹ý ¼º±âµ¿ 08-29 4401
21  xml Á÷·Äó¸® °í¹ü¼® 09-24 4388
20  [±âÃÊ] HelloWorld ¸¸µé±â µ¿¿µ»ó +3 ÀÌ°æ¿ë 12-01 4384
19  Designing for Performance ¿ä¾à +1 ¹®±â¼® 07-07 4384
18  ¾îÇà Á¾·ù ±¸ºÐ ¹× Àå´ÜÁ¡ +6 ±è±â¹ü 12-23 4221
17  ListView °ü·Ã pdf ÆÄÀÏÀÔ´Ï´Ù +1 ±è±â¹ü 02-11 4209
16  À¥¾Û¿¡¼­ À¥ºä³ª Æù°¸ »ç¿ë½Ã ÁÖÀÇÁ¡ +1 ¹ÚÂù¿ì 04-08 4068
15  ÅÍÄ¡,¼­ºñ½º,µå·Î¿ì °ü·Ã ³»¿ëÀÔ´Ï´Ù. pdf +1 ±è±â¹ü 01-17 4040
14  °­ÀÇ 2ÀÏ pdf +1 ±è±â¹ü 12-23 4020
13  ±¸±Û MapView Å° ¹ß±Þ°ú »ç¿ëÀÔ´Ï´Ù ±è±â¹ü 01-28 4009
12  ±â´É È°¿ë ¿¹½ÃÀÔ´Ï´Ù (Ãßõ!) +4 ±è±â¹ü 01-21 3971
11  °­ÀÇ 1ÀÏ pdf +1 ±è±â¹ü 12-23 3912
10  °³Àΰ³¹ßÀÚ SW°³¹ßȯ°æ Áö¿ø»ç¾÷ ¾È³» Áظð 10-28 3893
9  °ÔÀÓÁ¦ÀÛ ½Ã Äɸ¯À̵¿¸Þ¼Òµå Â¥±â. +2 ±èº´ÁÖ 09-26 3836
 1  2  3  4  5  
 
 
 
Copyright ¨Ï wwwold.androidstudy.co.kr. All rights reserved.