CN103532993B - Contact person's Custom Attributes synchronous method based on XML and device - Google Patents

Contact person's Custom Attributes synchronous method based on XML and device Download PDF

Info

Publication number
CN103532993B
CN103532993B CN201210229000.XA CN201210229000A CN103532993B CN 103532993 B CN103532993 B CN 103532993B CN 201210229000 A CN201210229000 A CN 201210229000A CN 103532993 B CN103532993 B CN 103532993B
Authority
CN
China
Prior art keywords
contact
information
custom attributes
attribute
associated person
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210229000.XA
Other languages
Chinese (zh)
Other versions
CN103532993A (en
Inventor
曾小波
连东洲
王德锁
王昕�
赵金
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201210229000.XA priority Critical patent/CN103532993B/en
Publication of CN103532993A publication Critical patent/CN103532993A/en
Application granted granted Critical
Publication of CN103532993B publication Critical patent/CN103532993B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a kind of contact person's Custom Attributes synchronous method and device based on XML, the method includes:Associated person information is obtained from external relation personal data source;Using user-defined attribute resolution rules and the associated person information, the contact attribute XML file of the Custom Attributes comprising respective contacts is generated;The contact attribute XML file is parsed, obtains the Custom Attributes information of respective contacts, and by the Custom Attributes information update to local contact database.The present invention can be in complete process contact person Custom Attributes under different platform.

Description

Contact person's Custom Attributes synchronous method based on XML and device
Technical field
The present invention relates to a kind of contact person's Custom Attributes synchronous method and relevant apparatus based on XML, makes contact person answer With the Custom Attributes that can such as synchronize processing contact person in scene under cross-platform.
Background technology
With the continuous development of information technology, the demand of the mobile intelligent terminals such as human opponent's machine is increasing, contact People applies as one of most important application in the intelligent movables such as mobile phone, has been subjected to people and has more and more paid close attention to, and uses Higher requirements are also raised for user experience of the family to this.In existing market, universal smart mobile phone is carrying out one as user It is some synchronous, when the cross-platform service such as importing, it can only often parse some fixed attributes of contact person, such as phone, Email Deng, and some Custom Attributes preserved to user cannot be handled very well, widespread practice is to abandon this Custom Attributes, It is natural when showing these contact persons to show these Custom Attributes, for example, if same from Google servers It walks user and synchronizes the contact person for including Custom Attributes up in other platforms, and when there are many user-defined attribute Time is the content that user is concerned about, current common practice is to go to handle this Custom Attributes by the way of abandoning, and lacks one Kind meets the needs of can meeting User Defined attribute and enables Custom Attributes is cross-platform to use, can be in difference The method of complete process Custom Attributes under platform.
Invention content
The purpose of the present invention is to provide a kind of contact person's Custom Attributes synchronous method and device based on XML, can be more Cross-platform lower processing contact person's Custom Attributes is solved the problems, such as well.
According to an aspect of the invention, there is provided contact person's Custom Attributes synchronous method based on XML, including:
A) associated person information is obtained from external relation personal data source;
B) utilization user-defined attribute resolution rules and the associated person information generates oneself comprising respective contacts The contact attribute XML file of defined attribute;
C the contact attribute XML file) is parsed, obtains the Custom Attributes information of respective contacts, and by described in certainly Defined attribute information update is to local contact database.
Preferably, the step A) include:
Using cross-platform service module, it includes contact data and its attribute data to be obtained from external relation personal data source Associated person information, wherein the attribute data includes the build-in attribute data and Custom Attributes data of contact person.
Preferably, the step A is executed) after, further include:
Using cross-platform service module, the associated person information is associated with local contact information.
Preferably, the step B) include:
Using cross-platform service module, the associated person information is parsed, and according to analysis result, generate respective contacts Associated person information XML file;
According to user-defined attribute resolution rules, the associated person information XML file is parsed, and tie according to parsing Fruit generates the contact attribute XML file of the Custom Attributes comprising respective contacts.
Preferably, the step C) include:
Using contact attribute XML parsing modules, the contact attribute XML file is parsed, respective contacts are obtained Custom Attributes information, and by calling contact database memory module, by the Custom Attributes information update to local Contact database.
Preferably, the step C) further include:
Using contact person's UI display modules, the Custom Attributes information is edited, and by edited information update to originally The contact database on ground.
Preferably, further include:
Using associated person information XML parsing modules, the associated person information XML file is parsed, and analysis result is updated To local contact database.
According to another aspect of the present invention, a kind of self-defined category of the contact person based on expandable mark language XML is provided Property synchronizing device, including:
Cross-platform service module for obtaining associated person information from external relation personal data source, and utilizes User Defined Attribute resolution rules and the associated person information, generate comprising respective contacts Custom Attributes contact attribute XML File;
Contact attribute XML parsing modules obtain respective contacts for parsing the contact attribute XML file Custom Attributes information;
Contact database memory module is used for the Custom Attributes information update of the respective contacts to local Contact database.
Preferably, described device further includes:
Contact person's UI display modules, for editing the Custom Attributes information, and by edited information update to originally The contact database on ground.
Preferably, described device further includes:
Associated person information XML parsing modules, for parsing the associated person information XML file, so as to by analysis result more Newly to local contact database..
Compared with prior art, the beneficial effects of the present invention are:
The present invention can either meet the needs of User Defined attribute, and can enable Custom Attributes is cross-platform to make With the complete process Custom Attributes that is, under different platform.
Description of the drawings
Fig. 1 is contact person's Custom Attributes synchronous method schematic diagram provided in an embodiment of the present invention based on XML;
Fig. 2 is contact person's Custom Attributes synchronizing device integrated stand composition provided in an embodiment of the present invention based on XML;
Fig. 3 is contact person's Custom Attributes synchronous method flow chart provided in an embodiment of the present invention based on XML.
Specific implementation mode
Below in conjunction with attached drawing to a preferred embodiment of the present invention will be described in detail, it should be understood that described below is excellent Select embodiment only for the purpose of illustrating and explaining the present invention and is not intended to limit the present invention.
Fig. 1 is contact person's Custom Attributes synchronous method schematic diagram provided in an embodiment of the present invention based on XML, such as Fig. 1 Shown, step includes:
Step S101, associated person information is obtained from external relation personal data source.
Furtherly, using cross-platform service module, obtained from external relation personal data source comprising contact data and its The associated person information of attribute data, wherein the attribute data includes the build-in attribute data and Custom Attributes number of contact person According to, and cross-platform service module is utilized, the associated person information is associated with local contact information.
Step S102, it using user-defined attribute resolution rules and the associated person information, generates comprising corresponding connection It is the contact attribute XML file of the Custom Attributes of people.
Furtherly, using cross-platform service module, the associated person information is parsed, and according to analysis result, generate phase Answer the associated person information XML file of contact person;According to user-defined attribute resolution rules, the associated person information is parsed XML file, and according to analysis result, generate the contact attribute XML file of the Custom Attributes comprising respective contacts.
Step S103, the contact attribute XML file is parsed, the Custom Attributes information of respective contacts is obtained, and By the Custom Attributes information update to local contact database.
Furtherly, using contact attribute XML parsing modules, the contact attribute XML file is parsed, is obtained corresponding The Custom Attributes information of contact person, and by calling contact database memory module, more by the Custom Attributes information Newly to local contact database.Using contact person's UI display modules, the Custom Attributes information is edited, and will be after editor Information update to local contact database.
Further, associated person information XML parsing modules can also be utilized, the associated person information XML file is parsed, and Analysis result is updated to local contact database.
Fig. 2 is contact person's Custom Attributes synchronizing device integrated stand composition provided in an embodiment of the present invention based on XML, such as Shown in Fig. 2, including:
External relation personal data source 201 is used for storing contact information, these associated person informations may be that user synchronizes It goes, it is also possible to which user creates above and gets.
The cross-platform service module 202 such as synchronize, for obtaining associated person information, and profit from external relation personal data source 201 With user-defined attribute resolution rules and the associated person information, the connection of the Custom Attributes comprising respective contacts is generated It is humanized XML file.Specifically, the module is with the following functions:
1, the associated person information comprising contact data and its attribute data is obtained from external relation personal data source 201. That is cross-platform service module 202 obtains associated person information from outside, include under contact data and the data format Attribute information, such as can be obtained from synchronous Google servers.
2, corresponding associated person information XML file is generated according to the associated person information of acquisition.That is, cross-platform service The associated person information that module is analyzed and acquired by, and according to the corresponding associated person information XML file of the structural generation of associated person information.
3, UI operation interfaces are provided to the user, are associated with the contact attribute got, i.e., by the associated person information and this Ground associated person information is associated.That is, cross-platform service module 202 by providing UI operation interfaces to the user, allows use Family is by the contact attribute information got and the humanized information association of local linkages.
4, UI operation interfaces are provided to the user, so that user is carried out Custom Attributes resolution rules self-defined.That is, To the Custom Attributes information got, cross-platform service module 202 provides UI operation interfaces to the user, and user can be to these Self-defining attribute resolution rules.
5, obtained associated person information XML file is parsed, contact attribute XML file is generated.That is, cross-platform clothes Business parses the associated person information XML file structure of generation, is collected to the contact attribute information in structure, wherein Include some user-defined attributes, and is generated corresponding contact attribute XML file.
Contact attribute XML parsing modules 203 obtain respective contacts for parsing the contact attribute XML file Custom Attributes information.Specifically, the contact attribute XML parsing modules 203 are responsible for from cross-platform service module 202 Contact attribute XML file is obtained, the parsing of contact attribute XML file is completed, and provides the progress of UI operation interfaces to the user Attributes edit allows user easily to the attribute information that gets into edlin, and sends messages to contact database Update contact attribute table.Since contact attribute XML file has been parsed and has been preserved to contact number in synchronizing process According to library, therefore, after cross-platform service module 102 obtains associated person information XML file and parsing, passes through and call contact data The contact data that parsing obtains is directly stored in contact database by library storage module.
Associated person information XML parsing modules 204, for parsing the associated person information XML file, so as to by analysis result It is updated to local contact database.Specifically, the associated person information XML parsing modules 204 are responsible for from cross-platform clothes Module 202 of being engaged in obtains associated person information XML file, completes the parsing of contact details, and send messages to contact database more New associated person information table.
Contact database memory module 205 is used for the Custom Attributes information update of the respective contacts to originally The contact database on ground.Specifically, the contact database memory module 205 is responsible for phases such as contact person and its attributes It closes information update and enters contact database.
Contact database 206 is used for actual storage contact data and its attribute data.
Contact person UI display modules 207, for providing a UI operation interface to the user, so that user is edited, change include The contact attribute of Custom Attributes information, and by edited information update to local contact database.Further, The contact person of contact database is arrived in the display of contact person UI display modules 207 storage, and passes through and call contact database Memory module calls contact attribute XML parsing modules to complete the display of contact person on demand.
Fig. 3 is contact person's Custom Attributes synchronous method flow chart provided in an embodiment of the present invention based on XML, such as Fig. 3 Shown, 2 pass through the synchronous Google contact persons comprising Custom Attributes to flow that is local, and completing displaying below in conjunction with the accompanying drawings To illustrate the present invention, it should illustrate, contact person's cross-platform of synchronous Custom Attributes described herein is used only for solving The present invention is released, is not intended to limit the present invention.
Step S301, it includes contact data and its attribute data that cross-platform service module is obtained from Google servers Associated person information.
Step S302, UI operation interfaces are provided to the user, the known attribute of Associate to Contact passes through Custom Attributes Providing the interfaces UI to the user makes User Defined resolution rules, according to Custom Attributes resolution rules, the connection that will finally get It is that people's information generates corresponding associated person information XML file.
Step S303, associated person information XML file is parsed, corresponding contact attribute XML file is generated.
Step S304, contact attribute XML parsing modules parse the contact attribute sent from cross-platform service module XML file, and provide UI operation interfaces to the user, user can be above to contact attribute into edlin, modifications, after the completion Update contact attribute table.
Step S305, the associated person information XML file that obtaining step S302 is generated completes associated person information XML file Parsing, and it is updated to associated person information table.
Step S306, judge whether to need to show contact person, if it is S307 is thened follow the steps, otherwise, execute step S308。
Step S307, contact data access modules are called, updated contact person is shown, base is finally realized In the cross-platform of the self-defined contact attribute of XML.
Step S308, the same the end of the step of contact attribute.
Although describing the invention in detail above, but the invention is not restricted to this, those skilled in the art of the present technique It can be carry out various modifications with principle according to the present invention.Therefore, all to be changed according to made by the principle of the invention, all it should be understood as Fall into protection scope of the present invention.

Claims (10)

1. contact person's Custom Attributes synchronous method based on expandable mark language XML, which is characterized in that including:
A the connection for including contact person's build-in attribute data and contact person's Custom Attributes data) is obtained from external relation personal data source It is people's information;
B cross-platform service module) is utilized, parses the associated person information, and according to analysis result, generate the connection of respective contacts It is people's information XML file;According to user-defined attribute resolution rules, the associated person information XML file is parsed, and according to Analysis result generates the contact attribute XML file of the Custom Attributes comprising respective contacts;
C) the contact attribute XML file of the Custom Attributes comprising respective contacts is parsed, obtains respective contacts Custom Attributes information, and by contact person's Custom Attributes information update to local contact database.
2. according to the method described in claim 1, the it is characterized in that, step A) include:Using cross-platform service module from External relation personal data source obtains the associated person information.
3. according to the method described in claim 2, it is characterized in that, execute the step A) after, further include:
Using cross-platform service module, the associated person information is associated with local contact information.
4. according to the method described in claim 1, it is characterized in that, the associated person information also includes contact data.
5. according to the method described in claim 4, the it is characterized in that, step C) include:
Using contact attribute XML parsing modules, the contact attribute XML file is parsed, making by oneself for respective contacts is obtained Adopted attribute information, and by calling contact database memory module, by the Custom Attributes information update to local connection It is personal data library.
6. according to the method described in claim 5, the it is characterized in that, step C) further include:
Using contact person's UI display modules, the Custom Attributes information is edited, and by edited information update to local Contact database.
7. according to the method described in claim 4-6 any one, which is characterized in that further include:
Using associated person information XML parsing modules, the associated person information XML file is parsed, and analysis result is updated to this The contact database on ground.
8. contact person's Custom Attributes synchronizing device based on expandable mark language XML, which is characterized in that including:
Cross-platform service module, for from external relation personal data source obtain comprising contact person's build-in attribute data and contact person from The associated person information of defined attribute data;And the associated person information is parsed, and according to analysis result, generate respective contacts Associated person information XML file;And according to user-defined attribute resolution rules, the associated person information XML file is parsed, And according to analysis result, generate the contact attribute XML file of the Custom Attributes comprising respective contacts;
Contact attribute XML parsing modules, for the contact attribute XML file to the Custom Attributes comprising respective contacts It is parsed, obtains the Custom Attributes information of respective contacts;
Contact database memory module, for the contact by the Custom Attributes information update of the respective contacts to local Personal data library.
9. device according to claim 8, which is characterized in that further include:
Contact person's UI display modules, for editing the Custom Attributes information, and by edited information update to local Contact database.
10. device according to claim 8 or claim 9, which is characterized in that further include:
Associated person information XML parsing modules, for parsing the associated person information XML file, so that analysis result to be updated to Local contact database.
CN201210229000.XA 2012-07-04 2012-07-04 Contact person's Custom Attributes synchronous method based on XML and device Active CN103532993B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210229000.XA CN103532993B (en) 2012-07-04 2012-07-04 Contact person's Custom Attributes synchronous method based on XML and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210229000.XA CN103532993B (en) 2012-07-04 2012-07-04 Contact person's Custom Attributes synchronous method based on XML and device

Publications (2)

Publication Number Publication Date
CN103532993A CN103532993A (en) 2014-01-22
CN103532993B true CN103532993B (en) 2018-08-14

Family

ID=49934671

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210229000.XA Active CN103532993B (en) 2012-07-04 2012-07-04 Contact person's Custom Attributes synchronous method based on XML and device

Country Status (1)

Country Link
CN (1) CN103532993B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI546727B (en) * 2014-12-18 2016-08-21 群暉科技股份有限公司 Computer accessible storage medium and method for cross-platform synchronizing attributes of files
CN106776062B (en) * 2016-11-29 2020-12-01 北京元心科技有限公司 Multi-system contact person attribute information synchronization method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1968076A (en) * 2006-04-28 2007-05-23 华为技术有限公司 Method for data synchronization between devices
CN101572677A (en) * 2008-04-28 2009-11-04 华为技术有限公司 Method for integrating address books and integrated address book server

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090136013A1 (en) * 2007-11-19 2009-05-28 Kuykendall Peter A System for obtaining information regarding telephone calls
CN101527755B (en) * 2009-03-30 2011-07-13 中兴通讯股份有限公司 Voice interactive method based on VoiceXML movable termination and movable termination

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1968076A (en) * 2006-04-28 2007-05-23 华为技术有限公司 Method for data synchronization between devices
CN101572677A (en) * 2008-04-28 2009-11-04 华为技术有限公司 Method for integrating address books and integrated address book server

Also Published As

Publication number Publication date
CN103532993A (en) 2014-01-22

Similar Documents

Publication Publication Date Title
CN102713906B (en) Location-based search
CN103702297B (en) Short message enhancement, apparatus and system
CN108885639A (en) Properties collection navigation and automatic forwarding
CN109508423A (en) Source of houses recommended method, device, equipment and storage medium based on semantics recognition
CN103428377A (en) Visible IVR (Interactive Voice Response) implementation method and system
CN103970861B (en) Information demonstrating method and equipment
KR101406528B1 (en) Apparatus and method for providing and sharing consumption pattern
CN108701127A (en) Electronic equipment and its operating method
CN110119294A (en) The generation method of menu page, apparatus and system
CN105872966A (en) Method and device for pushing customized message
CN103546623B (en) Method, apparatus and equipment for sending voice messaging and its text description information
CN103778128B (en) The method for drafting and device of a kind of list information
CN106709974B (en) Game scene drawing method and device
CN111240669A (en) Interface generation method and device, electronic equipment and computer storage medium
CN103412885A (en) Contact person photo setting method and device
CN104216982B (en) A kind of information processing method and electronic equipment
CN103167082A (en) Mobile phone auxiliary system and method enabling old people to go shopping conveniently
CN103532993B (en) Contact person's Custom Attributes synchronous method based on XML and device
CN106293317A (en) Method, device and the electronic equipment of a kind of hiding Message Record
CN107609032A (en) A kind of matching process and electronic equipment
CN108628988A (en) A kind of clothing matching recommends method, apparatus, Intelligent clothes cabinet and storage medium
CN108595141A (en) Pronunciation inputting method and device, computer installation and computer readable storage medium
CN105847596A (en) Anti-addiction method, anti-addiction device and terminal equipment
CN104320387A (en) Local module customizing method, terminal and server
CN111580916A (en) Data processing method, device, equipment and storage medium based on client

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant