473,473 Members | 1,415 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Raad Attributes and there Values from an xml file

2 New Member
I am having a problem in reading the XML file

1. I need to read all attribute of a node as well as child node too if there exist any.
2. I need values of these corresponding attributes too if they are.
3. The XML is completely unstructured.
4. When u know only the name of the XML file from which you have too read the
attributes and values.

I have searched so many site but I could not solve my problem
So is there any one who could help me in doing so



The XML file is below


[html]<?xml version="1.0" encoding="UTF-8"?>
<!--Naming convention = [unique identifier] + "_cm.xml"-->
<view key="cmd_bar">
<menuassets>
<menucolors>
<color type="bkgrd">0xE7E5E3</color>
<color type="alt">0x666666</color>
<color type="hilt">0xE7E5E3</color>
<color type="txt">0x444518</color>
<color type="ttlbar">0xE7E5E3</color>
<color type="ttlbar_txt">0x444518</color>
<color type="sbar">0x73ADDE</color>
<color type="ops">0x737373</color>
</menucolors>
<menus>
<menu type="CMD" name="CommandBar">
<item actionType="getview" actionTarget="local" actionValue="home" viewType="r">
<label>Home</label>
</item>
<item actionType="getview" actionTarget="local" actionValue="" viewType="Map">
<label> Plan</label>
</item>
<item actionType="getview" actionTarget="local" actionValue="" viewType="gg">
<label> A tour of his work</label>
</item>
<item actionType="doHelp" actionTarget="view" actionValue="aide" viewType="">
<label> Help</label>
</item>
</menu>
</menus>
</menuassets>
</view>[/html]
Apr 11 '07 #1
1 1226
dorinbogdan
839 Recognized Expert Contributor
What language are you using? VB, C#, Java...?
Apr 11 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Alexander Kervero | last post by:
Hi ,today i was reading diveinto python book,in chapter 5 it has a very generic module to get file information,html,mp3s ,etc. The code of the example is here :...
1
by: Fred Iannon | last post by:
All, I am trying to figure out a clean solution to the following issues: (1) - We have a number of dlls/exes that need to have the same "values" for the various assembly attributes (like...
5
by: WindAndWaves | last post by:
Greetings once more, I was wondering if someone figured out the difference between attributes and properties. I noticed that things like fields have a number of properties, but also...
6
by: Samuel M. Smith | last post by:
I have been playing around with a subclass of dict wrt a recipe for setting dict items using attribute syntax. The dict class has some read only attributes that generate an exception if I try to...
1
by: jaloplo | last post by:
Hi, I'm having a big problem cause I need to write attributes values without knowing the name of these attributes. For example, my xml file is like this: <element id="1" name="pepe"...
6
by: Jakub.Bednarczuk | last post by:
Hallo everybody I have the problem with getting attributes values and also attributes names. I am reading an xml file with DOM. Lets see an example: file I read <root> <Def></Def>...
1
by: passpass | last post by:
I am having a problem in reading the XML file 1. I need to read all attribute of a node as well as child node too if there exist any. 2. I need values of these corresponding attributes too if...
1
by: nitusa | last post by:
Hi All, First time poster, and newbie C# programmer so be patient with my ignorance. :) For my current project I need to store some information (install dir., file names, passwords, ect.) and...
0
by: rautsmita | last post by:
hello friends , i am using to jdk6 and JAXB2.0, i have geomtry.xsd file i am trying to compile this file using jaxb but i got some error i.e.The particle of the type is not a valid restriction of...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.