473,809 Members | 2,842 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

data and HTML

I searched the XHTML and other specifications first, but could not
find an answer for this little problem:

I would like to send HTML, or XHTML, and some special purpose data
together. The special data is in a specially designed XML vocabulary
that does not conflict with XHTML.

An example is:

<html>
<body>
Normal text, visible for users <br />
with markup and all.

<!-- here comes the "special" data -->
<SpecialXML>
<data>
<half>something </half>
<go>
<iin>a</iin>
<iin>b</iin>
</go>
</data>
</SpecialXML>

</body>
</html>

I would like to "hide" the "SpecialXML " stuff. As it is now, the
browser does display the text contents: "something" and "a" and "b".
Is there some trick to wrap the "SpecialXML " stuff inside a div or
something that hides it?

Putting all SpecialXML stuff inside a comment ( <!-- .. --> ) does
hide it, but the XML parser I am using on the user side throws all
comments away. So I am looking at some normal XHTML element that
prevents the display of its text contents. Does it exist? Maybe some
CSS trick can do it?
Jul 20 '05 #1
8 1578
Will Stuyvesant wrote:

I would like to send HTML, or XHTML, and some special purpose data
together. The special data is in a specially designed XML vocabulary

I would like to "hide" the "SpecialXML " stuff. As it is now, the
browser does display the text contents: "something" and "a" and "b".

prevents the display of its text contents. Does it exist? Maybe some
CSS trick can do it?


display: none;
will turn off the display of the content, but the xml would still be
parsed by the browser, I think. So it might not be terribly robust.

--
Brian
follow the directions in my address to email me

Jul 20 '05 #2
Will Stuyvesant wrote:
I would like to send HTML, or XHTML, and some special purpose data
together. The special data is in a specially designed XML vocabulary
that does not conflict with XHTML.

[...]

Putting all SpecialXML stuff inside a comment ( <!-- .. --> ) does
hide it, but the XML parser I am using on the user side throws all
comments away. So I am looking at some normal XHTML element that
prevents the display of its text contents. Does it exist? Maybe some
CSS trick can do it?


You could put this in the HEAD section or you could apply 'display:
none' CSS property to the element.

--
Stanimir

Jul 20 '05 #3
In article <cb************ *************@p osting.google.c om>, one of infinite monkeys
at the keyboard of hw***@hotmail.c om (Will Stuyvesant) wrote:
I would like to "hide" the "SpecialXML " stuff. As it is now, the
browser does display the text contents: "something" and "a" and "b".
Is there some trick to wrap the "SpecialXML " stuff inside a div or
something that hides it?


1. Define your own mnamespace for the SpecialXML.
2. Use CSS to hide it, as suggested by others.
3. Your document is XML, not HTML. So give it an XML Content-Type,
not text/html. That means you'll need to style the HTML elements
with CSS rather than rely on browser defaults, too.

--
Nick Kew

In urgent need of paying work - see http://www.webthing.com/~nick/cv.html
Jul 20 '05 #4
Thanks to the people who replied, I have 2 solutions now. One is CSS
display: none, the other is CSS visibility: hidden. The "put in the
HEAD" solution did not work. Thank you all!

XHTML with hidden data in the body:
<html>
<body>
Normal text, visible for users <br />
with markup and all.

<!-- here comes the hidden data -->
<SpecialXML style="visibili ty: hidden">
<data>
<half>something </half>
<go>
<iin>a</iin>
<iin>b</iin>
</go>
</data>
</SpecialXML>

</body>
</html>

Jul 20 '05 #5
Will Stuyvesant wrote:
Thanks to the people who replied, I have 2 solutions now. One is CSS
display: none, the other is CSS visibility: hidden.


'visibility: hidden' still affects the layout
<http://www.w3.org/TR/CSS21/visufx.html#vis ibility>.

--
Stanimir

Jul 20 '05 #6
Brian wrote:
Will Stuyvesant wrote:

I would like to send HTML, or XHTML, and some special purpose data
together. The special data is in a specially designed XML vocabulary

I would like to "hide" the "SpecialXML " stuff. As it is now, the
browser does display the text contents: "something" and "a" and "b".

prevents the display of its text contents. Does it exist? Maybe some
CSS trick can do it?


display: none;
will turn off the display of the content, but the xml would still be
parsed by the browser, I think. So it might not be terribly robust.

can you try it in <pre></pre> in stad of CSS to?
Jul 20 '05 #7
endlesscam wrote:
Will Stuyvesant wrote:
I would like to send HTML, or XHTML, and some special purpose data
together. The special data is in a specially designed XML vocabulary

I would like to "hide" the "SpecialXML " stuff. As it is now, the
browser does display the text contents: "something" and "a" and "b".

prevents the display of its text contents. Does it exist? Maybe some
CSS trick can do it?


can you try it in <pre></pre> in stad of CSS to?


And how would that hide the xml content?

--
Brian
follow the directions in my address to email me

Jul 20 '05 #8
Brian wrote:
endlesscam wrote:
Will Stuyvesant wrote:

I would like to send HTML, or XHTML, and some special purpose data
together. The special data is in a specially designed XML vocabulary

I would like to "hide" the "SpecialXML " stuff. As it is now, the
browser does display the text contents: "something" and "a" and "b".

prevents the display of its text contents. Does it exist? Maybe some
CSS trick can do it?

can you try it in <pre></pre> in stad of CSS to?

And how would that hide the xml content?

If you just want to hide I suggest you use XML (also HTML) comments
(<!-- <data>I am XML data</data> -->)

This way it won't show up in any existing browser and no search engine
would index it.

--
Anne van Kesteren
http://www.annevankesteren.nl/
Jul 20 '05 #9

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

Similar topics

31
4163
by: Greg Scharlemann | last post by:
Given some recent success on a simple form validation (mainly due to the kind folks in this forum), I've tried to tackle something a bit more difficult. I'm pulling data down from a database and populating a simple table. I'd like the table to contain 10 entries per page and have the option for the user to scroll through the pages of data without having to go back to refresh the page (I've already pulled all the info I need from the...
4
2262
by: Cerebral Believer | last post by:
Hi I need help! Forgive me I am a PHP newbie. I have a small script that enables me to send a form from an HTML page. I want to use the HTML formatted form because the design of my website is complex, and I don't want to have to mess around with formatting a page using HTML within php. So basically the "action" of the HTML page sends the form to "ProcReg.php". This is the code: <?php /* Script name: ProcReg.php
0
2405
by: Jacob Donajkowski | last post by:
Once the user logs in I want to have the users switch from the Roster View to the Profile View and enter their profile infomation and save it. Then the next time they login and go to the Profile View I want the form populated from there profile on the sql server. The code to save the profile works fine. But when the user logs back in they data doesn't load back to the form. The multiview is located inside the LoginView's Logged-In View ....
5
2884
nmm32
by: nmm32 | last post by:
I have a DataGrid which displays data with the aid of a procedure. I have tested the procedure inside the database and it is working fine. I have another procedure which adds another row to the table, which is working fine inside the programming, and in the database. However, I still cannot figure out what am I doing wrong with the DataGrid configurations OR Database OR DataAdapter OR SqlSelectCommand ... I really don't know yet and I...
19
248296
Atli
by: Atli | last post by:
Introduction At some point, all web developers will need to collect data from their users. In a dynamic web page, everything revolves around the users input, so knowing how to ask for and collect this data is essential to any developer. This article is a basic tutorial on how to user HTML Forms, the most common method of data collection. Assumptions - Basic HTML knowledge. - Basic PHP knowledge. HTML Forms A common and simple way of...
4
2767
by: ink | last post by:
Hi all, I am trying to pull some financial data off of an HTML web page so that I can store it in a Database for Sorting and filtering. I have been thinking about this for some time and trying to find the best way to do it but I am just not experienced enough with this sort of thing to make the best decision, so any advice would be great. The data is on a number of different nested tables with in the HTML, and on a number of different...
7
12318
ADezii
by: ADezii | last post by:
There are essentially three techniques for publishing Access Data on the Web. The first technique is static, and does not allow for the dynamic addition or modification to the data, There is no direct link to the data, and in order to update it, you must republish. I am referring to the HTML Format. The second format, IDC, is an older, obsolete technology that runs on Microsoft web Servers. IDC has limited functionality, no script language...
2
2262
by: malcster2 | last post by:
hello, i am a beginner to ajax. i have created a mysql database, which i would like to access from a web page. i have created 3 files, a html to display the data, a php file to extract the data, and a javascript file to to the clever stuff. when i access the html page, all the data is displayed correcty, but if i add or delete any records, and press the button i have created to refresh the data(without reloading), the data doesn't change....
2
2051
by: manugm1987 | last post by:
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <style type="text/css"><!-- span.cls_002{font-family:Times,serif;font-size:12px;color:rgb(0,0,0);font-weight:normal;font-style:normal} div.cls_002{font-family:Times,serif;font-size:12px;color:rgb(0,0,0);font-weight:normal;font-style:normal} span.cls_004{font-family:Times,serif;font-size:11px;color:rgb(0,0,0);font-weight:normal;font-style:normal}
0
10376
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10375
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
10114
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9198
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6880
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5548
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4331
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
2
3860
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3011
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.