Click here to Skip to main content
15,895,084 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to add home page in start menu...? Pin
Pankaj - Joshi23-Oct-07 19:18
Pankaj - Joshi23-Oct-07 19:18 
GeneralRe: How to add home page in start menu...? Pin
Abhijit Jana23-Oct-07 21:16
professionalAbhijit Jana23-Oct-07 21:16 
GeneralRe: How to add home page in start menu...? Pin
N a v a n e e t h23-Oct-07 19:48
N a v a n e e t h23-Oct-07 19:48 
GeneralRe: How to add home page in start menu...? Pin
Abhijit Jana23-Oct-07 21:18
professionalAbhijit Jana23-Oct-07 21:18 
QuestionWhat is the important of <!DOCTYPE > ? [modified] Pin
bug_aonz23-Oct-07 17:02
bug_aonz23-Oct-07 17:02 
AnswerRe: What is the important of <!DOCTYPE > ? Pin
N a v a n e e t h23-Oct-07 18:50
N a v a n e e t h23-Oct-07 18:50 
AnswerRe: What is the important of <!DOCTYPE > ? Pin
Guffa23-Oct-07 20:36
Guffa23-Oct-07 20:36 
QuestionData organization ideas Pin
kenprog23-Oct-07 13:54
kenprog23-Oct-07 13:54 
I create an XML document using the following:

XmlDocument doc = new XmlDocument();
doc.LoadXml(WeatherProxy.NDFDgen(dlatitude, dlongitude, gov.weather.www.productType.timeseries, System.DateTime.Now, System.DateTime.Now.AddDays(7) ,WeatherParameters));
doc.Save("../../forecast.xml");

Everything works great and the data requests are very flexible. WeatherParameters contains about 20 different bools for parameters.
The xml file is loaded with DATA!
Anyway, the nodes for the specific data like daily high temp for example are matched with time-span key-layout nodes. I need to match these keys that tell the datetime with the proper parameters. The data can contain many variable keys and parameters.
I need some ideas for grouping and manipulating this data so I can write a class, struct, array... whatever to organize it. Here's a snippet of the xml doc.

<time-layout time-coordinate="local" summarization="none">
<layout-key>k-p3h-n19-12
<start-valid-time>2007-10-22T14:00:00-04:00
<start-valid-time>2007-10-22T17:00:00-04:00
<start-valid-time>2007-10-22T20:00:00-04:00
<start-valid-time>2007-10-22T23:00:00-04:00
<start-valid-time>2007-10-23T02:00:00-04:00
<start-valid-time>2007-10-23T05:00:00-04:00
<start-valid-time>2007-10-23T08:00:00-04:00
<start-valid-time>2007-10-23T11:00:00-04:00
<start-valid-time>2007-10-23T14:00:00-04:00
<start-valid-time>2007-10-23T17:00:00-04:00
<start-valid-time>2007-10-23T20:00:00-04:00
<start-valid-time>2007-10-23T23:00:00-04:00
<start-valid-time>2007-10-24T02:00:00-04:00
<start-valid-time>2007-10-24T05:00:00-04:00
<start-valid-time>2007-10-24T08:00:00-04:00
<start-valid-time>2007-10-24T11:00:00-04:00
<start-valid-time>2007-10-24T14:00:00-04:00
<start-valid-time>2007-10-24T17:00:00-04:00
<start-valid-time>2007-10-24T20:00:00-04:00

<time-layout time-coordinate="local" summarization="none">
<layout-key>k-p12h-n9-13
<start-valid-time>2007-10-22T20:00:00-04:00
<start-valid-time>2007-10-23T08:00:00-04:00
<start-valid-time>2007-10-23T20:00:00-04:00
<start-valid-time>2007-10-24T08:00:00-04:00
<start-valid-time>2007-10-24T20:00:00-04:00
<start-valid-time>2007-10-25T08:00:00-04:00
<start-valid-time>2007-10-25T20:00:00-04:00
<start-valid-time>2007-10-26T08:00:00-04:00
<start-valid-time>2007-10-26T20:00:00-04:00

<parameters applicable-location="point1">
<temperature type="maximum" units="Fahrenheit" time-layout="k-p24h-n7-1">
<name>Daily Maximum Temperature
<value>81
<value>83
<value>70
<value>77
<value>77
<value>78
<value>76

<temperature type="minimum" units="Fahrenheit" time-layout="k-p24h-n6-2">
<name>Daily Minimum Temperature
<value>68
<value>60
<value>58
<value>59
<value>57
<value>56


layout-key and time-layout must be matched. I hope someone has dealt with something similar and can help.

Thanks
Ken
AnswerRe: Data organization ideas Pin
PIEBALDconsult23-Oct-07 14:07
mvePIEBALDconsult23-Oct-07 14:07 
GeneralRe: Data organization ideas Pin
kenprog23-Oct-07 14:18
kenprog23-Oct-07 14:18 
GeneralRe: Data organization ideas Pin
PIEBALDconsult23-Oct-07 16:45
mvePIEBALDconsult23-Oct-07 16:45 
GeneralRe: Data organization ideas Pin
kenprog24-Oct-07 11:01
kenprog24-Oct-07 11:01 
QuestionPossible to combine unmanaged dlls in a resource ? Pin
User 226147423-Oct-07 12:15
User 226147423-Oct-07 12:15 
Questionthis the code which i ask u about it please when u know the error tell me and i'm wait [modified] Pin
memaia23-Oct-07 12:12
memaia23-Oct-07 12:12 
AnswerRe: this the code... Pin
Guffa23-Oct-07 12:27
Guffa23-Oct-07 12:27 
GeneralRe: this the code... Pin
Luc Pattyn23-Oct-07 14:08
sitebuilderLuc Pattyn23-Oct-07 14:08 
AnswerRe: this the code which i ask u about it please when u know the error tell me and i'm wait [modified] Pin
Spacix One23-Oct-07 12:43
Spacix One23-Oct-07 12:43 
GeneralRe: this the code which i ask u about it please when u know the error tell me and i'm wait Pin
Christian Graus23-Oct-07 16:09
protectorChristian Graus23-Oct-07 16:09 
GeneralRe: this the code which i ask u about it please when u know the error tell me and i'm wait Pin
Dave Kreskowiak23-Oct-07 16:22
mveDave Kreskowiak23-Oct-07 16:22 
GeneralRe: this the code which i ask u about it please when u know the error tell me and i'm wait Pin
Colin Angus Mackay5-Nov-07 13:44
Colin Angus Mackay5-Nov-07 13:44 
AnswerRe: this the code which i ask u about it please when u know the error tell me and i'm wait Pin
Colin Angus Mackay5-Nov-07 13:48
Colin Angus Mackay5-Nov-07 13:48 
QuestionDate Conversion, XML, DB etc...` Pin
lune1223-Oct-07 12:10
lune1223-Oct-07 12:10 
AnswerRe: Date Conversion, XML, DB etc...` Pin
Not Active23-Oct-07 12:47
mentorNot Active23-Oct-07 12:47 
QuestionWhat is the prefered bi-directional encryption procedure using C#/SQL Server? Pin
xbadenx23-Oct-07 11:37
xbadenx23-Oct-07 11:37 
AnswerRe: What is the prefered bi-directional encryption procedure using C#/SQL Server? Pin
Dave Kreskowiak23-Oct-07 14:00
mveDave Kreskowiak23-Oct-07 14:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.