⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 build.txt

📁 目前在JAVA下编程时对XML的操作很重要
💻 TXT
字号:
Building XMLBeans with Interface extension feature, and PrePost extension feature is divided into four steps.

1> Put xml comments around both <xb:extension> elements in localInfo.xsdconfig file, then at a prompt in the working directory where you extracted the files from the example archive, type the following line.

       scomp -out localinfo_XmlBeans.jar localInfo.xsd localInfo.xsdconfig
       
2> Compile extension interface, and handler class using localinfo_XmlBeans.jar, and xbean.jar. 

       SET CLASSPATH=%CLASSPATH%;localinfo_XmlBeans.jar;.;c:\xmlbeans-1.0.3\lib\xbean.jar 

       javac -d . weatherExtension.java
       javac -d . weatherExtensionHandler.java

3> Remove xml comment around <xb:extension> element of interface extension feature in localInfo.xsdconfig file. Then run scomp again with localInfo.xsd and localInfo.xsdconfig files, make sure that compiled interface extension classes are on the classpath.    

       scomp -out localinfo_XmlBeans.jar localInfo.xsd localInfo.xsdconfig

   Compile PrePostSet handler class,

       javac -d . MapPrePostSetHandler.java


4> Now remove xml comment around <xb:extension> element of PrePost extension feature in localInfo.xsdconfig file. Then run scomp again with localInfo.xsd and localInfo.xsdconfig files, make sure that compiled PrePost extension class is on the classpath. 

       scomp -out localinfo_XmlBeans.jar localInfo.xsd localInfo.xsdconfig


We are ready to compile, and run our XMLBeans based client application prePostClient.java, 

       javac prePostClient.java
       java prePostClient localInfo_68154.xml

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -