Skip to content

Tag Archives: array

Java: Pick a random value from XML file?

I am writing a Java GUI App that is a fortune teller, the only problem is I can’t get it to pick a random value from the XML files of fortunes if you could please give a bit of code that shows how to do it it would be greatly appreciated the layout of the [...]

XML code for the search?

i want to implement the search in the xml and it fills the following requirements? create an array with some elements. when your tying a keyword(the drop down menu comes with those keywords) in the search box.

Plz plz how can I draw points of array as Line in xml using Javascript,I need the code,plz help me?

I need the code to enter the values of points of array as (x,y) to draw it in graph in html using Javascript— enter point then the program draw it in x.y axise thank u

how to use xml to add items such as buttons to my vb.net application?

i want to use xml to add items to my appliction using xml code.i want to define each item in xml.and the program should read it and add those items depending on the number of nodes and the values. <myxm><button name="ok" top="15" left ="10" function="click" do="msgbox" extras="hello world">button></myxm> i want to use the xml like [...]

How to create an XML with multiple root?

I want to create an XML sample like below: <company> <agents> <name></name> <address></address> </agents> <employees> <name></name> <address></address> </employees> </company> Is this possible? If it’s possible, how? the code I used is the one below: // create root node $root = $doc->createElement(‘customer’); $root = $doc->appendChild($root); // process one row at a time while($row = mysql_fetch_array($dbresult,MYSQL_ASSOC)) { [...]

How do you write an array (in ONE node) in xml?

I wish to import already made arrays in Macromedia Flash. Can you actually create an array in only ONE node in XML? *****Wow! Thanks Hybrid but that page is waaaay beyond me! I would like to see a SIMPLE example of an XML page with an array in one node.*****