Reading and setting the XML configuration file is the most common operation, try a few C + + XML parser, personal feeling tinyxml is the most comfortable to use, because its API interface and Java is very similar, object-oriented very good.TinyXML is an open source parsing XML parsing library that can be used in C + + and can be compiled in Windows or Linux. The
C Language HTML Parser ekhtml VC Compilation
El-kabong is a fast HTML Parser without verification.You can download the source code from SourceForge.
* Latest ekhtml-0.3.2.However, some important error fixes are not released.Download the latest version from CVS. It is actually v0.3.3, but it is not released.
* The mingw compilation fails. It seems that the in
Transferred from: http://www.cnblogs.com/phinecos/archive/2008/03/11/1100912.htmlReading and setting the XML configuration file is the most common operation, try a few C + + XML parser, personal feeling tinyxml is the most comfortable to use, because its API interface and Java is very similar, object-oriented very good.TinyXML is an open source parsing XML parsing library that can be used in
Http://blog.sina.com.cn/s/blog_676cdfb10100s2bx.htmlReading and setting the XML configuration file is the most common operation, try a few C + + XML parser, personal feeling tinyxml is the most comfortable to use, because its API interface and Java is very similar, object-oriented very good.TinyXML is an open source parsing XML parsing library that can be used in C
last node using HNC[HNC. COUNT-1].Htmldoc. Documentnode.selectnodes: Select all matching nodes, the argument is XPath syntax, you can search the syntax of w3cshool, I mean to get a div that contains class equals S_BTN_WR, the class equals S_ The input node of the BTN.Hnc[hnc. COUNT-1]. attributes["Value"]. Value: Gets the property value of the last node's value.After a basic understanding of the above content, I think you have basically been able to complete the functions you want to do.Reprint
TinyXML: an excellent C ++ XML parser, tinyxmlxml
// Certificate //-----------------------------------------------------------------------------------------------------------------------------------------------
Download the/C ++ // XML/TinyXml.rar file from my online storage. Add to the project directory. Then, add the corresponding header file and source file in
encryption technology" see Snow College"32-bit assembly language programming in Windows environment" (Code-Wei edition) Luo Yunbin"Encryption and decryption" Wu Qiang"Reverse Project Core principles" Li ChengyuanTest software:Stud_peLordpeStudype+Exescope-haCFF ExplorerResource HackerPeidPeviewExeinfopeollydbgIDA ProReferences Source code:PedumpLibpe-masterThe portable executable File Format from Top to BottomPE file Format Official document: Microsoft PE and COFF specificationOnline pedump too
/Hemsleya/base/active task scheduling framework based on co-processWhat did you do, silly B?Https://github.com/qianqians/Hemsleya/tree/master/Hemsleya/base/concurrent/pool Memory PoolWhat did you do, silly B?Https://github.com/qianqians/Fossilizid/tree/master/reliably-%20transmission in frozen UDP reliability transmissionWhat did you do, silly B?Https://github.com/qianqians/Fossilizid/tree/master/remote-queue a long, good-looking network libraryWhat did you do, silly B?Https://github.com/qianqia
TINYXML2 is a very useful C + + written XML file parsing and generator, its project address is: HTTPS://GITHUB.COM/LEETHOMASON/TINYXML2The following is a common API:Main API:Xmldocument:xml document classRootElement (): The root element of an XML documentXmlelement:xml Element ObjectFirstchildelement (): First child nodeNextsiblingelement (): Next sibling nodeXmlattribute:xml node Attribute classFirstAttribute (): First propertyNext (): Next propertyN
JSON-parsed storage form:Small Description:1.{"A": 1,"B": "A ' g,f ' d[][{{}{} ' F","C": ["d,ed", 2,{"a": 1},[1,2],true,null],"D": {"ACC": 1}}2.struct Typevalue:public Value{int type;Void *vpoint;///The pointer will be placed in a container in another class.Class Valueobj:public Value{PublicStd::mapClass Valuearr:public Value{PublicStd::vectorThe 3.typevalue,valueobj,valuearr three are contained in each other, and typevalue knows what type of value is
1, TinyXML's official websitehttp://www.grinninglizard.com/tinyxml/2. There are 2 versions of TinyXML: TinyXML and TINYXML23. The advantages and disadvantages of these 2 versions are as follows:TinyXML-1 or TinyXML-2?
Both parsers:
Simple-to-use with similar APIs.
DOM based parser.
UTF-8 Unicode Support. Http://en.wikipedia.org/wiki/UTF-8
Advantages of TinyXML-2
The focus of all future dev.
Many few
, this is basically equivalent to a large job in the Compilation Principle Course.In other words, the syntax is only for display. The reason why the script appears is to lower the programming threshold. If the syntax of a language is like lisp, it is directly the pattern of the abstract syntax tree, which saves the parsing step. It saves a lot of trouble to execute it. However, it is clear that a program like this abstract syntax tree style is not enjoyed and can be easily accepted by everyone.I
, but it is very important for the software that needs to process this element:
XML Element vs. Attributes
See these examples:
In the first example, sex is an attribute. In the second example, sex is a child element. Both examples provide the same information.
There are no rules to tell us when to use attributes and when to use subelements. In my experience, attributes are easy to use in HTML, but in XML, you should try to avoid using attributes. If the information is similar to data, use
see, here are basically some of the operator overloads and some common things that are provided to the standard library facility in order to provide convenience to the back.
And then the ontology.
namespace Mq{templateBy the template way above is the GNU extension, which is a compile-time string literal that expands into TCHAR ... The function of the sequence, this thing standard does not give, the standard only gives the compiler to expand the numeric constants to char ... The
C # display the PDF file. winform opens the PDF file and displays it in the form.
1. Add the ActiveX control provided by Adobe to the toolbox ,:Select the COM component. I used version 7.0 to check and confirm it. On the Control toolbar, see:
Drag an Adobe PDF Reader control to the form and double-click the form. When
Recent. Because of Perl and learning functional programming, and then further learning Lisp, it is really a learning to find their own insignificance.Accidentally found a very easy C-language version of the Lisp parser.The code is very short, but very good at the foundation, up posture.Also learned the garbage collection, really harvest a lot!http://piumarta.com/software/lysp/I hope the LAN can access the question.Introduction to Lisp
Recently, because of Perl and learning functional programming, and then further learning Lisp, really a learning to find their own insignificance.Inadvertently found a very simple C-language version of the Lisp parser.The code is very short, but it is very good to see the foundation, up posture. Also learned the garbage collection, really harvest a lot!http://piumarta.com/software/lysp/I hope the local area network can access.Introduction to Lisp
. Net exports pdf files. C # exports pdf files,
I recently met a requirement to export a PDF file. I checked the code documents online and summarized the following code to successfully export the PDF file.
You need to download itextsharp. dll online before coding. This Assem
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.