473,574 Members | 2,972 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

mixing raw xml display w/ formated display

I am an xml beginner trying to figure out if xml will be a good tool
for a problem.

I want to use the functionality associated with viewing raw xml files
(namely the expanding +'s and -'s), but I also want to not display
elements.

For example, if I had:

<name attr='Person 1'>
<first>Carl</first>
<last>Strange </last>
</name>
<name attr='Person 2'>
<first>Jules</first>
<last>Verne</last>
</name>

I would want it to display as

+ Person 1
+ Person 2

where I could then expand it to:

- Person 1
Carl Strange
+ Person 2

Any recommendations ? Is this easy in xml? Or is some other tool
better? Thanks

Jul 20 '05 #1
2 3441


blank101 wrote:

I want to use the functionality associated with viewing raw xml files
(namely the expanding +'s and -'s)
Raw XML files are text files so if you view them raw then you should
only the markup.
What you describe is what some browsers do (namely IE 5/6 on Win and
Mozilla browsers) which apply some XSLT default stylesheet to XML not
associated otherwise with a stylesheet to create a HTML document
displaying the XML as a tree structure that can be collapsed and
expanded with the help of script.
but I also want to not display
elements.

For example, if I had:

<name attr='Person 1'>
<first>Carl</first>
<last>Strange </last>
</name>
<name attr='Person 2'>
<first>Jules</first>
<last>Verne</last>
</name>

I would want it to display as

+ Person 1
+ Person 2

where I could then expand it to:

- Person 1
Carl Strange
+ Person 2

Any recommendations ? Is this easy in xml? Or is some other tool
better?


As said, what you see in the browser is HTML with script generated from
XSLT, that is possible of course to do, you need to write an XSLT
stylesheet that generates HTML with script as necessary.
The default stylesheet is available I think, google for that.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 20 '05 #2

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

Similar topics

3
2208
by: Don Grover | last post by:
Hi I have to return dates formated in different ways in an asp page from sql server. What function can I use or how can I return dates formated like so I tried DATEPART ie.. but that does not work they way I would expect "dd/mm/yy" "dd/mm/ccyy" "mm/dd/ccyy"
3
1808
by: BC | last post by:
Hi I am trying to display the formated text, a table like, in the tooptip in C#. Something like this: Apple 4 lime 100 I put "\t" after the "Apple". Somehow the tab "\t" won't show in the tooltip. When the tooltip shown, it displayed "Apple" only in the tooltip.
0
1772
by: Ben | last post by:
Hi, Can you display data, for example datagrid, in a "Formatted Excel Form" dynamically? I mean the data in datagrid will be display on the webpage as Full Formatted Excel like frame, different font styles, formatted column header, colors... Please show me how or any information related. Thank you,
3
1243
by: Mike Allen | last post by:
Can anyone recommend a component that displays asp.net source code on a web page, with formatted layout and vs.net-like color scheme? Basically looking for a way to share some asp.net source code on my page and format it nicely. I searched around but was surprised I could only find one such component - it looked decent but was wondering if...
3
1145
by: Tim | last post by:
Hi I have a program that I had written in Managed C++ that writes messages to the console while running. I wanted to allow the user to enter commands at the console as well, but this became difficult since the console was continuously being updated with messages. I thought to write a VB front end for the program to have a console-like window...
3
5354
by: sb Luis | last post by:
I Use the following code to read from MS Word, but I couldent read Formated Text (RTF). How Can I read formated text from MS Word Doc without using clipboard. thanks. Word.ApplicationClass WordApp = new Word.ApplicationClass(); ..... // Let's get the content from the document Word.Paragraphs DocPar = Doc.Paragraphs; // Count number of...
7
2660
by: Ubantu Rococo | last post by:
Hi all, Sorry for this stupid question, but I am having trouble mixing imagecopy etc. with HTML. What I am trying to do is copy an image, and then obtain co-ordinates from a database which will then be drawn on the image (to create a clickable imagemap). The image will then be displayed as part of a webpage. I've included my code snippet...
0
8654
southoz
by: southoz | last post by:
Good ay all , I'm fairly new to access(a little over 5 weeks now). Since I'v started I have picked up a lot of useful information from forums such as this and in doing so will share that information with others. I have seen many request for information on mail merging an how to send data to word documents this is something I have put together...
3
1298
by: lialie | last post by:
Hi, Is there a fine way to read a formated file like: %HEADER title = "Untilted" username = "User" %DATA ....... ....... The formated file may be very popularly, but the module ConfigPaser
0
7726
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8237
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7817
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8098
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5622
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3752
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2245
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 we have to send another system
1
1341
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1060
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.