473,387 Members | 1,520 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,387 software developers and data experts.

update xml value

Hi Dear friend

I have to update xml node and write the new value dynamically. I have to update CDATA[Polygon Region45] this value and data color etc. Please help me.I'll appreciate you.


my xml file :

Expand|Select|Wrap|Line Numbers
  1. <flashimap src="custom.png" width="994" height="1405" type="custom">
  2.     <module id="standard" src="modules/standard.swf">
  3.         <config id="titlealign" value="mc"/>
  4.         <config id="title"><![CDATA[<font face="Arial" size="24" color="#333333"><b></b></font>]]></config>
  5.         <config id="titlefont" face="Arial" size="24" color="333333" bold="yes" italic="no" underline="no"/>
  6.         <config id="bgcolor" value="EEEEEE"/>
  7.         <config id="bgimage" value=""/>
  8.         <config id="bgalpha" value="100"/>
  9.         <config id="tooltips" value="on"/>
  10.         <config id="bordercolor" value="FFFFFF"/>
  11.         <config id="nopadding" value="on"/>
  12.         <config id="zooming" value="on"/>
  13.         <config id="tooltipconfig" txtcolor="000000" bgcolor="FFFFEE" bgalpha="100" borderthick="1" bordercolor="000000" margin="0" roundcorner="0"/>
  14.     </module>
  15.     <region id="45" type="poly" coords="508,868,545,866,546,891,510,894">
  16.         <data id="name"><![CDATA[Polygon Region45]]></data>
  17.         <data id="fill" color="008000" colorover="FFFF00" alpha="50" alphaover="50"/>
  18.         <data id="border" color="808080" alpha="100" thickness="1"/>
  19.         <data id="pointover" type="tooltip">
  20.             <tooltip><![CDATA[Plot 210, Block B
  21. ]]></tooltip>
  22.         </data>
  23.         <data id="pointclick" type="url"><url src="" target="_blank"/></data>
  24.     </region>
  25.     <region id="46" type="poly" coords="510,893,546,891,548,914,511,917">
  26.         <data id="name"><![CDATA[Polygon Region46]]></data>
  27.         <data id="fill" color="008000" colorover="FFFF00" alpha="50" alphaover="50"/>
  28.         <data id="border" color="808080" alpha="100" thickness="1"/>
  29.         <data id="pointover" type="tooltip">
  30.             <tooltip><![CDATA[Plot 211, Block B
  31. ]]></tooltip>
  32.         </data>
  33.         <data id="pointclick" type="url"><url src="" target="_blank"/></data>
  34. </flashimap>
Jul 14 '10 #1
1 2038
dlite922
1,584 Expert 1GB
http://www.php.net/manual/en/simplex...ples-basic.php

Look at all the examples, especially example #9 and #10.

Dan
Jul 15 '10 #2

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

Similar topics

3
by: laurie | last post by:
Hi all, I'm trying to help out a friend who has inherited a client with a PHP shopping cart application. Neither of us know PHP, but I've been muddling my way through, trying to get these old...
10
by: Colleyville Alan | last post by:
I am trying to turn a short and fat (63 columns) table into one that is tall and skinny (7 columns). Basically, I am trying to create a "reverse crosstab" using a looping structure in VBA along...
1
by: esperanza | last post by:
Hello ASPX expert !! Here is my problem. I have a datagrid binded to a dataview. I edit the datagrid and change the value of my textBoxes from my datagrid. When I click to update the data,
2
by: Jose | last post by:
I have a combobox with two possible values: ONE TWO when i was pushed my save button save all values of my forms but this value ONE or TWO don't my code is:...
6
by: rukkie | last post by:
Hi, I have a dynamic HTML page with 4 columns of data, retrieved with PHP from a MySQL database. At the end of every row I have an UPDATE submit button, which activates a php update script to...
1
by: vdama | last post by:
Hi, I am using MS-Access as back end table for VB application. In the access table there are four columns as sno,productioncount ,percentage and totalcount. Here in prodcution count filed we have...
1
by: HarryW | last post by:
Hio, I want to update teh database Slim98 with some values out of database Slim0. The databasestructure is equal. update Slim98.dbo.article set Slim98.dbo.article.insuranceinventory =...
7
by: Sharma Neha | last post by:
How can i update the values in a table in database.The condition to update is a value in a textbox. I hav a textbox containing the order value.The table order_detail should be updated for its some...
6
by: ssecorp | last post by:
dict.update({"a":1}) SETS the dict item "a" 's value to 1. i want to increase it by 1. isnt that possible in an easy way? I should use a tuple for this?
1
by: amit1990 | last post by:
sir i use a datagrid view control in vb.net 2005 to display price of products and discount on those particular products so while i type the discount of those products i need to calculate the price...
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: 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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.