gconf storing xml strucutres.
- From: Chema Celorio <chema celorio com>
- To: hp redhat com
- Cc: gconf-list gnome org
- Subject: gconf storing xml strucutres.
- Date: Fri, 29 Sep 2000 15:23:51 -0500
Hello havoc :
I was thinking of using gconf to store the printer settings for
gnome-print. The printer settings are stored in an XML format (I've
attached
a copy of this xml structure at the bottom of this message)
Does it make sense to use gconf for this ? One of the things we need
it for different apps to share the printer configuration, so I thought
gconf
might be the solution for this.
Does it make sense to use gconf with XML data ?
Does it make sense to use gconf to tackle this problem ?
regards,
Chema
------------------------------------------------------------------
<?xml version="1.0"?>
<gmr:Printer
xmlns:gmr="http://www.celorio.com/gnomestuff/gpa/printer_v1">
<gmr:PrinterName>My Printer</gmr:PrinterName>
<gmr:PrinterId>00097017197195004035000970171971</gmr:PrinterId>
<gmr:ModelId>HP-LASERJET--4----ML---</gmr:ModelId>
<gmr:SettingsList>
<gmr:Settings>
<gmr:Name>Artwork</gmr:Name>
<gmr:Selected>TRUE</gmr:Selected>
<gmr:SelectedOptions>
<gmr:Path>PaperSize-Letter</gmr:Path>
<gmr:Path>PaperSource-UpperTray</gmr:Path>
<gmr:Path>PaperMedia-0</gmr:Path>
<gmr:Path>Resolution-1440x720-Mode-Soft</gmr:Path>
<gmr:Path>Resolution-1440x1440-Mode-Soft</gmr:Path>
<gmr:Path>Resolution-1440x720</gmr:Path>
<gmr:Path>Calibration-Intensity</gmr:Path>
<gmr:Path>ResolutionEnhancement-0</gmr:Path>
<gmr:Path>Memory-InstalledMemory</gmr:Path>
<gmr:Path>OptionalLowerTray-0</gmr:Path>
</gmr:SelectedOptions>
<gmr:SettingsInfo>
<gmr:Orientation>Portrait</gmr:Orientation>
<gmr:Memory-InstalledMemory>1025</gmr:Memory-InstalledMemory>
<gmr:Backend>gnome-ps</gmr:Backend>
<gmr:Calibration-Intensity>
100.00000</gmr:Calibration-Intensity>
</gmr:SettingsInfo>
</gmr:Settings>
<gmr:Settings>
<gmr:Name>Cheap Draft quality, lower tray</gmr:Name>
<gmr:Selected>FALSE</gmr:Selected>
<gmr:SelectedOptions>
<gmr:Path>PaperSize-Letter</gmr:Path>
<gmr:Path>PaperSource-UpperTray</gmr:Path>
<gmr:Path>PaperMedia-0</gmr:Path>
<gmr:Path>Resolution-1440x720-Mode-Soft</gmr:Path>
<gmr:Path>Resolution-1440x1440-Mode-Soft</gmr:Path>
<gmr:Path>Resolution-1440x720</gmr:Path>
<gmr:Path>Calibration-Intensity</gmr:Path>
<gmr:Path>ResolutionEnhancement-0</gmr:Path>
<gmr:Path>Memory-InstalledMemory</gmr:Path>
<gmr:Path>OptionalLowerTray-0</gmr:Path>
</gmr:SelectedOptions>
<gmr:SettingsInfo>
<gmr:Orientation>Portrait</gmr:Orientation>
<gmr:Memory-InstalledMemory>1025</gmr:Memory-InstalledMemory>
<gmr:Calibration-Intensity>100.0</gmr:Calibration-Intensity>
<gmr:Backend>gnome-ps</gmr:Backend>
</gmr:SettingsInfo>
</gmr:Settings>
</gmr:SettingsList>
</gmr:Printer>
----------------------------------------------------------
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]