In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
Editor to share with you an example analysis of the vCard structure in XML mode, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
Recording contact information is important for all business applications, and capturing this information through an effective XML structure can simplify the processing of such data. Contact information can vary widely, so you should choose XML. For example, some companies and individuals may have multiple addresses, phone numbers, and e-mail accounts. It is easy to declare multiple pieces of such information in the XML structure. VCar
Recording contact information is important for all business applications, and capturing this information through an effective XML structure can simplify the processing of such data.
Contact information can vary widely, so you should choose XML. For example, some companies and individuals may have multiple addresses, phone numbers, and e-mail accounts. It is easy to declare multiple pieces of such information in the XML structure.
The vCard structure, which is often used to represent contact information on Internet, is platform independent and makes it easy to generate and import different applications. It supports some of the flexibility of the XML structure, but it is actually a simple text-based format that uses declarative fields and extensions to provide information. Unlike the XML,vCard format, which is flat text, you cannot add information directly to various elements. A phone number is a good example, it is not necessarily associated with an address, but only as another phone number in the record.
The W3 Alliance proposes a XML in vCard format, which uses the RDF XML standard to facilitate formatting and exchange of contact information. Using the RDF framework, you can retain some structured information during the declaration process. For example, the RDF standard supports the use of packages, sequences, and alternatives to describe data. Packages support the declaration of an object (such as multiple roles) multiple times, and can be used when the sequence is not important. Sequences are used to define the order of objects, such as the hierarchy of people roles in an organization. Alternatives allow you to select an item from the list, such as multiple e-mail addresses.
Listing 6 shows the vCard of the virtual character Charles Perston.
Listing 6. VCard for Charles Perston
BEGIN:VCARDVERSION:3.0N:Perston;Charles;;;FN:Charles PerstonORG:Perston Technology;EMAIL;type=INTERNET;type=WORK;type=pref:null@perston.co.ukTEL;type=WORK;type=pref:01234 567890item1.ADRTranstypeWORKittytypeWORKTERTITITE Perston House;Perston;Perstonshire;P1 0NSX ABADRVOGBX ABUIDIA 5AE47BB6-4E0F-4558-980C-BD3066FA6154\: ABPersonEND:VCARD
Using the vCard XML standard, the structure in listing 7 can be used to represent the same information.
Listing 7. Using the vCard XML standard to represent Charles Perston
Charles Perston Perston Charles Perston House Perston Perstonshire P1 0NS UK null@perston.co.uk Perston Technology
The XML format is longer, but it is easier to understand what you are looking at and the relationship between the parts. This format allows for more detailed information and details. For example, it is easy to find the country you need in the address, and this information is implicit in the standard vCard output.
For example, it's easy to use XPath or SAX events to extract a list of countries to know the number of contacts in different regions.
The above is all the content of the article "sample Analysis of vCard structure in XML pattern". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.