473,385 Members | 1,536 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

XML, where do I start?

Hi,
I'm doing a custom web control. In this web control, I must load an xml file
and parse it to get all the items to add to the control. I will be a menu
bar, so I will have to find all the menubar items and their children, et al.
For the rendering logic, I have no problem, the problem appears when it
comes to parse the xml... I absolutely don't know where to start. I never
worked with XML files before.

Is there a place where parsing an xml file is detailed as if I were a 3
years old boy? lol ;) or can somebody give me a hint please on how to do
it?

My XML looks like this :

<XMLMenuBar bgcolor="#000000" Orientation=0>
<XMLMenuBarItem Name="MBIHome" Text="Home" URL="./home.aspx" Width="75"
/>
<XMLMenuBarItem Name="MBIAboutUs" Text="About Us" URL="./aboutus.aspx"
Width="80">
<XMLMenuBarItem Name="MBIAboutUsHistory" Text="Our History"
URL="./ourhistory.aspx" />
<XMLMenuBarItem Name="MBIAboutUsGoal" Text="Our Goal"
URL="./ourgoal.aspx" />
</XMLMenuBarItem>
<XMLMenuBarItem Name="MBIServices" Text="Services"
URL="./services.aspx">
<XMLMenuBarItem Name="MBIServices_InrastMon" Text="Internet Radio
Monitoring" URL="./services.aspx?service=1" />
</XMLMenuBarItem>
........... and so on........
</XMLMenuBar>

So the structure is simple. Now, I think I must use an XmlDocument object to
load the file and parse it, but how can I do that? XMLMenuBar is my
container class and XMLMenuBarItem is a nested class within XMLMenuBar
(maybe it is important to specify, as I am totally new to all this).

Thanks

Jan 22 '06 #1
2 961
"ThunderMusic" <NO.danlat.at.hotmail.com.SPAM> wrote in message
news:Oj**************@TK2MSFTNGP12.phx.gbl...
Is there a place where parsing an xml file is detailed as if I were a 3
years old boy? lol ;)


http://www.amazon.com/gp/product/076...Fencoding=UTF8

XML is everywhere these days. I'd suggest you get the above book and read it
from cover to cover.
Jan 22 '06 #2
excellent idea... I didn't think they had done this book... I've seen many
"for dummies" book, but never seen "Xml for dummies" at my local store...
thanks for the link.

"Mark Rae" <ma**@markN-O-S-P-A-M.co.uk> a écrit dans le message de news:
e5**************@TK2MSFTNGP15.phx.gbl...
"ThunderMusic" <NO.danlat.at.hotmail.com.SPAM> wrote in message
news:Oj**************@TK2MSFTNGP12.phx.gbl...
Is there a place where parsing an xml file is detailed as if I were a 3
years old boy? lol ;)


http://www.amazon.com/gp/product/076...Fencoding=UTF8

XML is everywhere these days. I'd suggest you get the above book and read
it from cover to cover.

Jan 22 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: engsol | last post by:
I'm using Python to parse a bunch of s/w test files and make csv files for later report generation by MS ACCESS....(my boss loves the quick turn-around compared to C). Each log file may contain one...
0
by: Mark Adams | last post by:
I am a relative newbie to MySQL. I had a Postfix+Courier+MySQL mail server running for several months. It took me a week or so to get it up and running in September. Now, I did a clean upgrade to...
16
by: Serdar Kalaycý | last post by:
Hi everybody, My problem seems a bit clichè but I could not work around. Well I read lots of MSDN papers and discussions, but my problem is a bit different from them. When I tried to run the...
9
by: Tim D | last post by:
Hi, I originally posted this as a reply to a rather old thread in dotnet.framework.general and didn't get any response. I thought it might be more relevant here; anyone got any ideas? My...
0
by: henning.friese | last post by:
Hello NG, I'm need to write some code which creates tiff files from various document types (doc, pdf, xls). I want to do this by ShellExecuting (via System.Diagnostics.Process) the doc-files...
8
by: Challenge | last post by:
Hi, I got error, SQL1768N Unable to start HADR. Reason code = "7", when I tried to start hadr primary database. Here are the hadr configuration of my primary db: HADR database role ...
4
by: carson | last post by:
I have written two windows services: - service A does some crunching of local data files and uploads them to a central processing computer via http. - service B monitors a manifest file on a...
2
by: =?Utf-8?B?Vmlua2k=?= | last post by:
Hello Everyone, I have an exe application that I want to start remotely.Once I start the application, I want to press ok to that application. To start the application, I did...
0
by: Yue Fei | last post by:
I have a multi thread python code, threads can start immediately if I run on command line, but I can get them started right the way if I call the same code from C/C++. test code like this: from...
0
by: Vinod Sadanandan | last post by:
Fast-Start Failover An Overview In Dataguard Environment ============================================================================= This article describes the automatic fast start failover...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.