I also planted the OO tree JXTree [js + css + xml] oo, object-oriented, with a significant reduction in the amount of inherited code
X in the JXTree represents xml, and can implement an infinite level tree with the memory allowed.
Compatible with IE Firefox. this is my principle
Batch approval
Because of the
); }Else{//labeled varLi = $ ("); $ (LI). Append (" This). attr ("name") + "). APPENDTO (UL); } }); }Finally, a tree is formed, but remember to add the following to the function that calls Refrest_project_item :// a TreeView control is required to process a new list $ ("#browser"). TreeView ();This is the same as the JS code in the first diagram. If not processed, the result is inconsistent with expectations.Finally, a
The database table structure is as follows:
To get
Channel
Account
Campaign
For such a tree-like Xml structure, the SQL statement is as follows:
select ch.ChannelName as "@Text", (select a.AccountName as "@Text", (select c.CampaignName as "@Text" from Campaign c where c.AccountId = A.AccountId FOR XML
Software Information:
Environment
. Net 4.5
Supported languages
Chinese and English
Work interface:
The function is to display XML or JSON data in a tree.
For more information, seeSource codeOr browse several related articles.Article:
WPF: the XML data is displayed in the Treeview
Tree directory display programProblem description:In our project, we often see self-associated data tables. If we look at the whole table as a tree data structure (for complex situations, it may become a graph ). When we display and edit this table, if we do not adopt a good expression, it will be very clumsy. For this reason, we develop such a tree structure pro
The data source is XML, so it expands.
No more nonsense, directly on the code (for some reason, the partial data modified or streamlined).
XML code:
Copy Code code as follows:
Program code:
Copy Code code as follows:
Using System.Text;
Using System.Collections;
Using System.Xml;
Using System.Web;
Using System;
Summary description of Createtree
public class Menutree
{
int i
As the following code details, HTML references XML data island, how to cross the tree structure of the relationship? I don't know how to use the tag name in XML inside this datafld, how to prefix it, how to get the name child element from resume, and how should my HTML file be modified?
The XML data file is:
Traverse the text block tree in depth first (recursive method ):
1/** // 2 // traverse the text block tree in depth first (recursive method)3 /// 4 /// 5 public void DOMDepthFirst (XmlNode currentNode)6 {7 XmlNode node = currentNode. FirstChild;8 while (node! = Null)9 {10 DOMDepthFirst (node );11 node = node. NextSibling;12}1314 // do something else with currentNode herer15}
SPAN first trave
I just found out when I was doing Tree view binding. Some people on the Internet say that TreeView is used to bind data sources and recursively bind data sources. If I don't want to see it, I tried to writeI did this. If you have any questions, please instruct me. I am a cainiao ..1: Page TreeView is called tvFunction2: Create adminFunction. xmlCopy codeThe Code is as follows:
3: Page bindingCopy codeThe Code is as follows:/// /// Initialize the funct
The text box in Android has many attributes. These tree types can be configured in the XML file in advance, or the textview object can be instantiated in the activity and configured by calling the textview object method.I wanted to extract all of them and read the android reference manual. I found that there are too many such properties. I used the online video and found several common configurations.Textvi
Currently, many software configurations, including the configuration files of the game UI, are in XML format.
There are a lot of open-source XML libraries, such as C ++ xerces, but this library is large and simple XML parsing is enough to use the tinyxml library.
Download: http://sourceforge.net/projects/tinyxml
There are also six files in it. If you have trouble
Oo, object-oriented, through inheritance
CodeSignificantly reduced
X in the jxtree represents XML, and can implement an infinite level tree with the memory allowed.
Compatible with IE Firefox. This is my principle
Batch approval
Because of the XML file, you can only complain about downloading it to your local computer.
Give two
Ask the prawns a question, a
Oo, object-oriented, significantly reduced by the amount of inherited code
The X in Jxtree represents XML and can be implemented with infinite levels of memory allowed
Compatible with IE Firefox, this is the principle I have always
Guys, Batch.
Because there are XML files, so you can only wronged viewers to download to run the local
Give me a screenshot of two, huh?
Also ask the prawns a question, as shown
IOS developmentZhihuiXMLConvertTreeThis is the content to be introduced in this article. Continue to explain how to convert XML into a tree in iOS development.XmlConvertTree, And perform operations, but ignoreXmlNow let me modify the code to add the attribute.
1. Add an attributeDict of the NSDictionary type to the treenode to store attributes. The Code is as follows:
NSDictionary*attributeDict;
2. Y
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.