1.在model包里创建StrObject.xsd文件:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.w3school.com.cn" xmlns="http://www.w3school.com.cn"
elementFormDefault="qualified">
<xs:element name="StrObject">
<xs:complexType );
PrintWriter out = null;
try {
out = response.getWriter();
out.write(xmlDataString);
out.flush();
} catch (Exception e) {
e.printStackTrace();
}finally{
if(out != null)
out.close();
}
}
}
相关文章: