Click here to Skip to main content
15,905,427 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralRendering xforms in xslt Pin
korayyersel6-Jul-05 0:03
korayyersel6-Jul-05 0:03 
GeneralXML relational data Pin
Member 17770424-Jul-05 10:51
Member 17770424-Jul-05 10:51 
GeneralRe: XML relational data Pin
toujin4-Jul-05 14:06
toujin4-Jul-05 14:06 
GeneralRe: XML relational data Pin
Member 17770425-Jul-05 9:42
Member 17770425-Jul-05 9:42 
Generalhelp needed for parsing XML document Pin
satishrg1-Jul-05 9:04
satishrg1-Jul-05 9:04 
GeneralRe: help needed for parsing XML document Pin
DavidNohejl1-Jul-05 13:22
DavidNohejl1-Jul-05 13:22 
QuestionWeb Service chat? Pin
wakkerjack1-Jul-05 3:45
wakkerjack1-Jul-05 3:45 
GeneralNeed help creating objects from xml file!! Pin
richiemac30-Jun-05 0:44
richiemac30-Jun-05 0:44 
Hi all,

I have a .xml file that looks similar to this,

<real_time_data_screen>

<screen_title>
<english>Screen Title</english>
<alternate_language>xzScreen xzTitle</alternate_language>
</screen_title>
<screen_classification>4294967295</screen_classification>
<screen_group>256</screen_group>

<guage_configuration>
<name>
<english>Guage Name</english>
<alternate_language>xzGuage xzName</alternate_language>
</name>
<guage_id>2</guage_id>
<units>
<english>Units</english>
<alternate_language>xzUnits</alternate_language>
</units>
<minimum>1</minimum>
<maximum>10</maximum>
<sections>
<number>10</number>
<limits>10</limits>
<color>234</color>
</sections>
</guage_configuration>

<analogue_variable>
<name>
<english>Variable Name</english>
<alternate_language>xzVariable xzName</alternate_language>
</name>
<input_values>
<minimum>1</minimum>
<maximum>10</maximum>
</input_values>
<output_values>
<minimum>1</minimum>
<maximum>10</maximum>
</output_values>
<needle_color>234</needle_color>
<guage_id>2</guage_id>
</analogue_variable>

<digital_led>
<name>
<english>LED Name</english>
<alternate_language>xzLED xzName</alternate_language>
</name>
<variable_id>2</variable_id>
<clear_color>255</clear_color>
<set_color>0</set_color>
</digital_led>

</real_time_data_screen>

I need to read through this file and create objects and update attributes depending on the data in this file. The objects will be screen, gauge, analogue and digitalLed. I've got very basic knowledge of xml and can just about read through the file and get elements and the corresponding value. How would I best go about reading throuh the file and when I find a screen tag (for instance) create a screen object and anything within that tag be written to the object.

Hope this makes sense and thanks in advance.
GeneralRe: Need help creating objects from xml file!! Pin
richiemac1-Jul-05 0:13
richiemac1-Jul-05 0:13 
GeneralRe: Need help creating objects from xml file!! Pin
Gavin Jeffrey1-Jul-05 2:20
Gavin Jeffrey1-Jul-05 2:20 
GeneralRe: Need help creating objects from xml file!! Pin
richiemac1-Jul-05 7:03
richiemac1-Jul-05 7:03 
GeneralRe: Need help creating objects from xml file!! Pin
richiemac8-Jul-05 1:01
richiemac8-Jul-05 1:01 
QuestionIE Requirements for DOM and XSLT? Pin
Anonymous29-Jun-05 8:08
Anonymous29-Jun-05 8:08 
AnswerRe: IE Requirements for DOM and XSLT? Pin
DavidNohejl29-Jun-05 8:29
DavidNohejl29-Jun-05 8:29 
AnswerRe: IE Requirements for DOM and XSLT? Pin
Christian Graus29-Jun-05 11:59
protectorChristian Graus29-Jun-05 11:59 
Generalinfopath: need help Pin
Steven M Hunt28-Jun-05 6:37
Steven M Hunt28-Jun-05 6:37 
GeneralNeed resources for C++ &amp; XML Pin
Wheatbread28-Jun-05 5:03
Wheatbread28-Jun-05 5:03 
GeneralRe: Need resources for C++ &amp; XML Pin
DavidNohejl28-Jun-05 7:12
DavidNohejl28-Jun-05 7:12 
GeneralLooking for Developers to try new C++ XML interface. Pin
Stuart Konen25-Jun-05 12:35
Stuart Konen25-Jun-05 12:35 
GeneralXML text reader Pin
letusC#24-Jun-05 11:25
letusC#24-Jun-05 11:25 
GeneralRe: XML text reader Pin
DavidNohejl25-Jun-05 1:24
DavidNohejl25-Jun-05 1:24 
GeneralXML and SAX and C# Pin
letusC#24-Jun-05 11:00
letusC#24-Jun-05 11:00 
GeneralRe: XML and SAX and C# Pin
Michael A. Barnhart24-Jun-05 11:18
Michael A. Barnhart24-Jun-05 11:18 
GeneralXML as data processing Pin
mooncatcher24-Jun-05 9:23
mooncatcher24-Jun-05 9:23 
GeneralRe: XML as data processing Pin
Michael A. Barnhart24-Jun-05 9:42
Michael A. Barnhart24-Jun-05 9:42 

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.