diff -r 89d6a7a84779 -r 25a17d01db0c Symbian3/PDK/Source/GUID-E6B3E575-80E3-58E3-9950-E0A5F6798861.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/PDK/Source/GUID-E6B3E575-80E3-58E3-9950-E0A5F6798861.dita Fri Jan 22 18:26:19 2010 +0000 @@ -0,0 +1,56 @@ + + + + + + Using +the Parser Plug-in Resource File +

This section explains how to specify the field values for a parser plug-in +resource file.

+
Procedure

The XML framework is designed to manage +numerous parser implementations and has functionality to choose the implementation +most suited to the current document.

The criteria used to make the +selection are held in the Xml::CMatchData class. When this +information does not force the selection of exactly one parser, the framework +defaults firstly to choose a Symbian-supplied parser if present, else it will +choose the one with the lowest UID. When a parser implementation is created, +a resource file which supplies the related information must also be created.

The implementation_uid field +must contain the UID of the plug-in. The default_data field +must contain the document type it can parse. The opaque_data field +specifies the supplier (Symbian or other). The following is a sample resource +file:

+RESOURCE REGISTRY_INFO validatorInfo + { + dll_uid = 0x10273863; + interfaces = + { + INTERFACE_INFO + { + interface_uid = 0x101FAA0B; + implementations = + { + IMPLEMENTATION_INFO + { + implementation_uid = 0x10273864; + version_no = 2; + display_name = "Example parser"; + default_data = "text/xml||text/wbxml"; + opaque_data = "LicenseeX"; + } + }; + } + }; + } +

For more details on how to write a sample registration resource +file, refer to Creating +a Standard Registration Resource File

+
+XML Framework +Overview +
\ No newline at end of file