Preface
In this chapter, we will explain part 1 of The Five Principles of S.O.L. I. D: Implementation of The JavaScript language, and The Principle of Open and Closed OCP (The Open/Closed Principle ).
The opening/closing principle is described as
The last time I talked about. net create XML file (a fixed way, a dynamic method), this time record how to import XML file1. How to import XML files1) XML file format2) Style of form page3) Source code Example3.1) Create the source code for the XML
have been so busy lately, take advantage of 51 to update the program.
This edition mainly adds and improves the following things:
1, to compare the string to Localecompare instead;
2, multiple Sort objects can be used in one sort (reorder when
I. Element Node // test element node, output node name, node type, and node value varliElementsdocument. getElementsByTagName (& quot; li & quot;); for (vari0; I & lt; liElements. length; I ++) {alert (liElements [I]. nodeName);
I. Element nodes
//
Click here to download the source file
In the previous tutorial, we introduced the principles of combining flash and XML and the implementation of a forum. Next we will continue to combine flash and XML to implement a simple chat room, it provides
After all the information in the database can be traversed and displayed, the page is displayed on the JSP page.
// Add nodes implemented by PAGE
FunctionPagesnode (pageshtmlnode, rootnode ){
// Obtain the current page
VaRNowpage = rootnode.
Preface
In this chapter, we will explain part 1 of the Five Principles of s.o.l. I. D: Implementation of the Javascript language, and the principle of open and closed OCP (the open/closed principle ).
The opening/closing principle is described as
Oracle has a package named xmldom, which allows you to easily create an XML file. A simple example is provided to generate test. xml. The content is as follows:
Arwen
123
Tom
456
Certificate ---------------------------------------------
Cause:Today, I encountered a problem when I was working on the project: I needed to dynamically update the pictures on the home page to show that this site was not completed, and someone was still maintaining it. Okay. How can we achieve this if we
1. Message Display page
2. Post a message and allow uploading of pictures
3. Enter the password to log in and delete the message.
1. File directory
Upfile is the directory where the uploaded images are saved.
2. Main interface
(1) Homepage,
Cause:
Today, the project encountered a problem: need to dynamically update the picture on the home page, to show that the site is not finished even if, is someone has been maintaining. Well, the demand has, how to achieve?!
My idea is as
Look at the XML document first
The code is as follows
Copy Code
title1content12009-10-11title2content22009-11-11
So how do we use PHP to generate XML format data?
Method 1: Generate the string using pure PHP
Phpxml entry-level learning materials. Cause: When I was working on a project today, I encountered a problem: I needed to dynamically update the pictures on the home page to show that this site was not completed, and someone was maintaining it all
PHP + XML to create a simple text tutorial. 1. message display page 2. publish a message and allow uploading images 3. enter a password to log on and delete the message. 1. the file directory upfile is the directory for storing uploaded images. 2.
1. Message Display page
2. Publish messages and allow uploading images
3. Enter the password to log on and delete the message.
1. File directory
Upfile is the directory for storing uploaded images.
2. Main Interface
(1) homepage: displays the
Today, I encountered a problem when I was working on the project: I needed to dynamically update the pictures on the home page to show that this site was not completed, and someone was still maintaining it. Okay. how can we achieve this if we have a
This example demonstrates how PHP can manipulate XML. The message book has the following basic functions: 1. message display page
2. publish messages and allow uploading images
3. enter the password to log on and delete the message.
1. file
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.