Preparations
Java Runtime (required when installing the XML Publisher desktop plug-in)
Oracle XML Publisher desktop 5.6.2 for Microsoft Windows
: Http://edelivery.oracle.com/EPD/Download/get_form? Egroup_aru_number = 8430763
Office Word 2000 or later
Installation (omitted)
Use design
After installation, a plug-in will be added to Office Word. I currently use Word 2007 to see the figure.
Step 1,
Prepa
But the author himself in writing code is also encountered a problem, the file format can only be UTF-8, but when creating a DOM object, there is a parameter that can select encoding. If you know what is going on, contact me. In "XML entry 6: loading XML documents with DOM objects", we have learned how to use the php dom extension component to load
NewRuntimeException ("Error parsing action.xml file:" +e.getmessage ()); } } /*** Each request will be executed by the filter, * According to the requested URL to find the corresponding processing xxxaction, determine which method processing*/@Override Public voidDoFilter (servletrequest request, servletresponse response, Filterchain chain)throwsIOException, servletexception {httpservletrequest req=(httpservletrequest) request; HttpServletR
The XML format is as follows"1.0"encoding="Utf-8"?>001.jpg001.aspxTen002.jpg002.aspx -003.jpg003.aspx -004.jpg004.aspx +005.jpg005.aspx -//www.google.com -Operations on XML files/// ///Creating an XML file/// /// Public voidCreatexmlfile (stringfilename) {XmlDocument xmldoc=NewXmlDocument (); XmlNod
This article is an example of using ElementTree to generate an XML file for a class library# *-* coding=utf-8from xml.etree.ElementTree import elementtreefrom xml.etree.ElementTree import Elementfrom Xml.etree.ElementTree Import subelementfrom xml.etree.ElementTree import dumpfrom xml.etree.ElementTree Import Commentfrom xml.etree.ElementTree import tostringimpor
* #consistent with parentnode.append (Element) Effect $NewNode = elementtree.subelement (node,'Activetype')Panax Notoginseng #Setting Properties -newnode.attrib['ID'] ='9' thenewnode.attrib[' Level'] =' -' +newnode.attrib['begin'] ='201401010000' Anewnode.attrib['End'] ='201401010000' the #Chinese need special decoding +newnode.attrib['Tip'] ='Test'. Decode ('Utf-8') - #symbol at the end of a node $Newnode.tail ='\ n' $ #node.append (N
; Property> Propertyname= "UserName"value= "Zhang San Feng"> Property> Propertyname= "Userage"value= "Male"> Property> Bean>Beans> PackageJava_spring.a_main;ImportOrg.springframework.context.ApplicationContext;ImportOrg.springframework.context.support.ClassPathXmlApplicationContext;ImportJava_spring.modle.Person; Public classTestone { Public Static voidMain (string[] args) {//Gets the IOC container object for spring, which is the path of the configuration
HowMyeclipse10CreateStruts2Configuration FileStruts. xml, That is, buildingStruts2Style configuration fileXMLFile?
1. decompress the latestStruts2 packageFile. Mine is:Struts-2.3.8-all.zipAnd then findStruts-2.3.dtdPath and copy it.
2.Myeclipse, SelectWindows-->Preferences--> In"Type Filter text"Input in the input boxXML catalog, ClickAdd.
Location:D: \ Download \ Java \ struts \ Lib \ Struts-2.3.8 \ DTD \ struts-2.3.dtd --------------->Location of t
Create an Excel file using NPOI and an excel file using npoi
I. NPOI function Syntax:
There are seven NPOI writing scripts, and NPOI writing can be used in the http://npoi.codeplex.com. The difference is:NPOI. DLL: NPOI core handler.NPOI. DDF. DLL: NPOI compression function.
Transferred to IntelliJ has been 1 months, the programming efficiency is really much faster than eclipse, and can directly use MAVEN, and then want to write a small project to play, architecture, thinking about everything, not the first time to play the frame, divert to die half a day can be completed, As a result, I never thought, full-time investment (fill) into (pit) spent half a day, and most of it is aimless trial and error, sweat, found out the problem on the Internet can not find the time
Package com.bjpowernodetest;
Import Java.io.FileWriter;
Import java.io.IOException;
Import org.dom4j.Document;
Import Org.dom4j.DocumentHelper;
Import org.dom4j.Element;
Import Org.dom4j.io.OutputFormat;
Import Org.dom4j.io.XMLWriter;
Import Junit.framework.TestCase; /** * * @author Kevin * Create an XML document and save it to a disk file (GBK) */public class
Oracle Server-Enterprise Edition Version: 11.2.0.1 to 11.2.0.2-release: 11.2 to 11.2
The procedure is as follows:
1) create a XML file (e.g. diskgroup. XML) with the next code:
2) then execute the XML script thru asmcmd as follow:
[Grid @ dbaasm ~] $ Asmcmd mkdg diskgrou
This article mainly introduced the C # creation, reads, writes the XML file The method, has the very good reference value. Let's take a look at the little series.
The XML file is as follows:
operations on XML files
=Outputformat.createprettyprint (); Format.setencoding ("Utf-8"); XMLWriter writer=NewXMLWriter (Out,format); Writer.write (DOC); Writer.close ();The creation effect is as follows:To modify a code snippet:@Test Public voidModify3 ()throwsException {//modify this three lines of code Document doc=NewSaxreader (). Read (NewFile ("E:/contact2.xml")); Element name=doc.getrootelement (). Element ("contact"). Element ("name"); Name.settext ("Jimi");File
Multipurpose Internet Mail Extensions (MIME) encoding for the form and must be set to "multipart/form-Data" for file upload forms. when we set this property to "multipart/form-Data" we obtain a different structure of the POST buffer (which is also more complex) and the request ASP object can't access the form contents. therefore, we can read the Post buffer using the request. binaryread method, but we can'
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.