Specifications
2-3
Linksys SPA Provisioning Guide
Version 3.01
Chapter 2 Creating Provisioning Scripts
Open Format Configuration File
</Profile_Rule>
</flat-profile>
The profiles in Example 2-1 and Example 2-2 are functionally equivalent. Example 2-2 contains
additional information and comments, which are ignored by the SPA. Also, in Example 2-2 the
<flat-profile> element is encapsulating within the <top-level> element. Such extra encapsulation is
allowed, and the parameters within it are still recognized.
Example 2-2 XML Profile with Comments
<?xml version=’1.0’?>
<top-level>
<!-- Unrecognized element ‘generator’ is ignored by SPA -->
<generator> Telco Profile Compiler v.1.2
</generator>
<!-- Unrecognized flat-profile attribute ‘device’ is ignored by SPA -->
<flat-profile device=”Linksys”>
<!-- three parameters are specified by this profile -->
<Resync_On_Reset> Yes
</Resync_On_Reset>
<Resync_Periodic> 7200
</Resync_Periodic>
<Profile_Rule>
tftp://prov.telco.com:6900/Linksys/config/spa2102.cfg
</Profile_Rule>
</flat-profile>
</top-level>
The SPA recognizes and translates basic XML character escapes, including escapes for those shown in
Table 2-1.
Numeric character escapes, using decimal and hexadecimal values (s.a. ( and .), are also
translated.
Note The SPA firmware does not support the full Unicode character set, but only the ASCII subset.
The profile in Example 2-3illustrates character escapes. This example defines an information hotline
dial plan, which sets the Dial_Plan[1] parameter equal to ( S0 <:18005551212> ).
Example 2-3 Dial Plan Example
<flat-profile>
<Dial_Plan_1_>
( S0 <:18005551212> )
</Dial_Plan_1_>
Table 2-1
Special Character XML Escape Sequence
& (ampersand) &
< (less than) <
> (greater than) >
’ (apostrophe) '
” (double quote) "