HTML - Xml - Understanding The Tree??
Hi all - forgive me if I have posted this in the wrong place (noob, 2nd post)
I'm now learning about XML and doing quite well, or so I thought. For example, lets say I have the following XML file... Code: <?xml version="1.0" encoding="iso-8859-1"?> <!--<?xml-stylesheet type="text/xsl" href="stylesheet.xsl"?>--> <news> <story> <headline>Headline</headline> <main>Main story</main> <submain>Sub story, new para1</submain> <submain>Sub story, new para2</submain> <submain>Sub story, new para3</submain> </story> <story> <headline>Headline</headline> <main>Main story</main> <submain>Sub story, new para1</submain> <submain>Sub story, new para2</submain> <submain>Sub story, new para3</submain> </story> </news> I can only retrieve 1 'submain' line. The question is "can I have more than 1 'submain' tag within each 'story' tag"? All the tutorials I have read are either too simple and have just 1 or 2 elements or are way too complex for me to grasp at this stage. Any help would be appriciated. JollyNolly Similar TutorialsHi, This is jyothi, i am creating tree folders in html but i don't know the correct script. Can anyone please help me. Is there anyway to do an expandable/collapsable tree in html without using javascript ? I can only use standard html so what are my options for a tree? Thanks hi, all!! i have been searching for two days for a certain type of file tree/faq menu script. i don't know quite what to call it, and that is probably why i can't find anything!! okay, what i want is a basic file tree. ie: +general info +category 1 +category 2 and when you click on one of those categories, it looks something like: +general info -category 1 +topic 1 +topic 2 +topic 3 +category 2 and when you click on one of those categories, it looks something like: +general info -category 1 -topic 1 this is the information about topic one. ideally, it will appear when you click on topic one and disappear when you click on topic one. when topic one is originally clicked, its + will turn to a - . When topic 1 is clicked a second time to hide the text, its - will turn to a +. +topic 2 +topic 3 +category 2 i cannot use a database for this. i have been looking for html / javascript i hope this makes sense... thanks in advance! erin Its been many years since I did any HTML programming so I know next to nothing. I want to create a very simple local site that will show a layered bill of materials based on files and folders that were already created. I have a large number of folders and files in Windows Explorer. These files and folders make up an assembly's BOM and is structured in WinExp where the top folder is the very top level assembly (ASY1). Inside this folder are the next level of subassemblies (SUBASY1, SUBASY2, SUBASY3, etc.) Inside SUBASY1 there will be a list of parts or more subassemblies (PART1, PART2, PART3, etc...) Since these already exist is there a way using html code to show them in a web page in this nested/layered format, where if I click on a SUBASY it will bring up its contents on the page. etc...) Which I guess is almost like windows explorer itself but as a web page. Thanks Patrick Hey guys i want to create a tree view by using html and java script , i tried lot but failed . So can u help me ?? it would be great if u will provide with certain code to build it Thanks First, forgive me i'm a noob! Am attempting to rebuild our sorry website. Am kinda picking the whole html thing up, however, am building in frontpage and expressions because those are the programs i have. page i'm working on is: ygcc.org/testing i embedded a video, but would like to position it to line up w/ everything else. i like how it looks centered, but its not aligned correctly w/ the other objects on the page. also, everything else is "positioned" on the page, whereas the media is "aligned" so, it doesn't stay put if i resize my browser next problem i'm having is jump menu or tree menu. i want a drop boxes, such as are on the page, however, would like it if it was a horizontal menu, not individual boxes like they are. right now, the drop boxes are only drop boxes (for "forms") and do not hyperlink. if i "insert jumpmenu" then, i cannot put them beside each other in a row. if i attempt to put them in a row, they are like steps, not straight across. i d/led a program to help w/ menus, but i don't even understand it. when i attempted what it told me to do, i do not get a menu. i know i need to put javascript in, but apparently do not understand this enough to actually do it. in short i would truly appreciate some help. thanks in advance Hello all! I'm in the process of doing a redesign for a client of mine. I've already created all the html pages and everything is working fine. My client currently uses a web based application so their clients can log on and order things. But when I link to their web based app it takes them away from their new site im creating. So now they tell me they dont want their customers to leave their site when they order things. I know this can be done with frames. The only problem is can it be done only with this one ordering page only? Also, the ordering page i've created contains a flash nav and a flash banner. Does anybody out there know how I can do this or if it's even possible? Could someone help me with my table structure. I have a horizontal gap or space between my header table row and the rest of the table. Also, I'm not having any luck adjusting the widths of the table colums. I've tried setting them in the stylesheet with not luck. The same with the alignment, no luck getting center alignment for the table within the page. I did get the table center aligned by creating another style for my bicycle_table div tage and then doing text-algin: center. It doesn't work in FireFox though. Could someone give me some pointers with this? HTML Code: <div id="bicycle_table"> <table class="bicycle" border="1"> <!-- <table id="bikeTable" width="700" border="1" align="center" summary="This table contains criteria to use when deciding on the type of bike."> --> <caption style="font-family:'Trebuchet MS'; font-size:16 pt; font-weight:bold; color:#C00" background:#CCCCCC >Choosing A Bike</caption> <tr> <colgroup align="center"> <col class="BikeType"/> <col class="Basics"/> <col class="Terrain"/> </colgroup> <thead> <tr> <th bgcolor="#FFFFFF">Bike Type</span></th> <th bgcolor="#FFFFFF">Basics</span></th> <th bgcolor="#FFFFFF">Terrain</span></th> </tr> </thead> <tr> <th bgcolor="#CCCCCC">Mountain</span></th> <td bgcolor="#CCCCCC" class="paragraph_text">wider tires, heavier frame</span></td> <td bgcolor="#CCCCCC" class="paragraph_text">off road, wilderness</span></td> </tr> <tr> <th bgcolor="#FFFFFF">Road</span></th> <td bgcolor="#FFFFFF" class="paragraph_text">thinner tires, light weight</span></td> <td bgcolor="#FFFFFF" class="paragraph_text">paved roads & trails</span></td> </tr> <tr> <th bgcolor="#CCCCCC">Hybrid</span></th> <td bgcolor="#CCCCCC" class="paragraph_text">everything in between</span></td> <td bgcolor="#CCCCCC" class="paragraph_text">both paved & off road</span></td> </tr> <tr> <th bgcolor="#FFFFFF">Recumbent</span></th> <td bgcolor="#FFFFFF" class="paragraph_text">lean back in seat; legs elevated</span></td> <td bgcolor="#FFFFFF" class="paragraph_text">both paved & off road</span></td> </tr> </table> </div> #entire_page #container #bicycle_table { text_algin: center; } table.bicyle {align: center} table.bicycle col.BikeType {width:20%} table.bicycle col.Basics {width:45%} table.bicycle col.Terrain {width:35} table.bicycle {border: 5px outset solid red; font-family: arial; border-collapse:collapse} table.bicycle tr th {height: 10px; text-align: center; color: #C00} table.bicycle tr td {text-align: center; color: #C00} table.bicycle td {} table.bicycle thead {} table.bicycle tr {height: 10px} }[/html] |