Conversion Between XML and List
Using System;
Using System. Collections. Generic;
Using System. Linq;
Using System. Text;
Using System. Xml;
Namespace XmlHelper{/// /// Convert objects to Xml and Xml to object classes/// /// Public class
JavaScript basicsJS composition: DOM BOM ECMAScriptECMAScript: "Translation function" JS in the most central part of the profession is called the interpreter almost no compatibleDom:document Object Model ability to manipulate HTML---"Document has
Originally from my finishing, mainly from here. If you have a supplement, we are very welcome to leave a message.First, get the nodedocument.getElementById (),//id= "" "Document.getelementsbyname ();//name=" "document.getElementsByTagName ();//"
1. How to get the objectMethod Onedocument.getElementsByTagName ("div");document.getElementById ("Head");Document.getelementsbyname ("username");Method two//via arraydocument.all//exists for IE, does not exist for
Document method
document.createelement (TAG) : Create an HTML tag object
document.getElementById (ID) : An object that obtains the specified ID value
Document.getelementsbyname (name)//Gets the object with the specified Name value
Using DOM to get page element nodesA) document.getElementById ()//id Get element Node objectb) document.getelementsbytagname ()//html tag get element node object (array)c) Document.getelementsbyname (); Commonly used in forms (arrays)property to
getElementById getelementsbyname getelementsbytagname approximate introductiongetElementById, getelementsbyname, getelementsbytagname# # #adv # #The latter two are to get the set, Byid just get a single objectThe use of getElementByIdAs an example:
From the Internet to find a section of the code to read the RSS, measured energy by:C # code
Load RSS
rss address
number of Articles to extract
Public string Loadrss (string rssurl, int rsscount)
{
XmlDocument doc = new
Reference methods within the same page:
1. Use ID:
Link1.href
2. Use name:
Document.all.link1.href
3, the use of Sourseindex:
document.all (4). href/note, the front also has HTML, head, title and body, so it is 4
4, use the link
1. Get element
getElementById () method, gets the element by the ID of the element, accepts an argument that gets the ID of the element, and returns NULL if the ID does not exist
Be careful not to have the name of the form element the same as the
DOM is an abbreviation of the Document Object model. Based on the DOM specification, Dom is a browser, platform, language-independent interface that allows you to access other standard components of the page.
characteristics and methods of node
Bom:
Browser Object Model: Browser objects models, used to access and manipulate the browser window, so that JS has the ability to "dialogue" with the browser, through the use of BOM, mobile windows, change the status of text, perform other not with
The web passes the appsettings property of the ConfigurationSettings class in system.configuration to facilitate access to the appsettings node data in the Web.config configuration file. For web programs to use this configuration file to store some
Requirements: Complete node additions and deletions to copy operations
Methods and properties to use:
1. Get the parent node of a node
ParentNode Property
2. Get a set of child nodes for a node
ChildNodes Property
3. A new node to create a
//deletes the corresponding node public static string Operatexml (String keyInfo, String valueinfo) {if (File) by passing in the node name and node value.
Exists (FilePath)) {XmlDocument xmldoc = new XmlDocument ();
Xmldoc.load
This article for everyone in detail under the use of JS to complete the node of the deletion and modification of the operation, and so on, the specific implementation of the following, interested friends can refer to the following Requirements:
Recently, it was found that the DOMDocument object is very important, and XMLHTTP is also very important. The case must not be wrong. attribute:
1 Attributes storage node attribute list (read-only)
2. List of child nodes of the childNodes storage
TextNode fragment in FireFox. A common behavior in Ajax applications is to wrap data in XML in the background and return it to the browser. The browser parses XML to obtain nodeValue.
If the content of a single node is long (more than 4096 bytes),
JXTree object, read external xml file data, /*********************************** *******
* JXTree object: reads external xml file data and generates a tree
* @ Author brull
* @ Email brull@163.com
* @ Date 2007-03-27
*********************************
Learn about YUI. ext day 6-about tree TreePanel (Part2 asynchronous node acquisition) The following describes how to asynchronously retrieve all nodes of a tree. The specific method is very different from the official synchronous node retrieval
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.