I am creating an xml document using XMLOutputter in JAVA, then
displaying the xml file in Firefox browser.
My problem is that I want to simply display the XML as idented text,
but the browser adds "-" signs to the text.
So when I try to copy+paste the text I also get the "-" signs with it.
Can I cause the browser to display an idented XML text without the "-"
signs??
An example of copy paste:
*************** *************** *
-
<XML>
-
<defaultConfi g>
-
<Server checkInterval=" 300"/>
</Server>
</defaultConfig>
</XML>
Thanks in advance 5 5989 mi****@gmail.co m wrote: I am creating an xml document using XMLOutputter in JAVA, then displaying the xml file in Firefox browser.
My problem is that I want to simply display the XML as idented text, but the browser adds "-" signs to the text. So when I try to copy+paste the text I also get the "-" signs with it.
Can I cause the browser to display an idented XML text without the "-" signs??
If the XML is not associated with a stylesheet (e.g. CSS stylesheet or
XSLT stylesheet) and if there are no elements in namespaces Mozilla
supports (e.g. XHTML namespace, MathML namespace, SVG namespace) then
Mozilla applies a default XSLT stylesheet to render the tree of the
document in a pretty printed form.
If you don't want that then define your own stylesheet and associate it
with e.g.
<?xml-stylesheet type="text/css" href="file.css" ?>
with the XML document.
--
Martin Honnen http://JavaScript.FAQTs.com/
Do you happen to have such stylesheet that will display the XML tree
without the "-" signs? (or know where I can get one...)
Martin Honnen wrote: mi****@gmail.co m wrote: I am creating an xml document using XMLOutputter in JAVA, then displaying the xml file in Firefox browser.
My problem is that I want to simply display the XML as idented text, but the browser adds "-" signs to the text. So when I try to copy+paste the text I also get the "-" signs with it.
Can I cause the browser to display an idented XML text without the "-" signs??
If the XML is not associated with a stylesheet (e.g. CSS stylesheet or XSLT stylesheet) and if there are no elements in namespaces Mozilla supports (e.g. XHTML namespace, MathML namespace, SVG namespace) then Mozilla applies a default XSLT stylesheet to render the tree of the document in a pretty printed form. If you don't want that then define your own stylesheet and associate it with e.g. <?xml-stylesheet type="text/css" href="file.css" ?> with the XML document.
--
Martin Honnen http://JavaScript.FAQTs.com/ mi*****@gmail.c om wrote: Do you happen to have such stylesheet that will display the XML tree without the "-" signs? (or know where I can get one...)
Those signs are there as script allows to collapse and extend subtrees
dynamically. If you want to see the XML source then use view source.
As for a stylesheet, I can't point you to one.
--
Martin Honnen http://JavaScript.FAQTs.com/ mi*****@gmail.c om wrote: Do you happen to have such stylesheet that will display the XML tree without the "-" signs? (or know where I can get one...)
The standard identity stylesheet, with xsl:output set to do indenting,
ought to do the job. My problem is that I want to simply display the XML as idented text, but the browser adds "-" signs to the text.
Note that the -'s are actually a browser feature -- they're active
controls that can be used to minimize/maximize subtrees of the document.
--
() ASCII Ribbon Campaign | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry
Joe Kesselman wrote: mi*****@gmail.c om wrote: Do you happen to have such stylesheet that will display the XML tree without the "-" signs? (or know where I can get one...)
The standard identity stylesheet, with xsl:output set to do indenting, ought to do the job.
My problem is that I want to simply display the XML as idented text, but the browser adds "-" signs to the text.
Note that the -'s are actually a browser feature -- they're active controls that can be used to minimize/maximize subtrees of the document.
-- () ASCII Ribbon Campaign | Joe Kesselman /\ Stamp out HTML e-mail! | System architexture and kinetic poetry
I know these "-" signs are for collapsing, but I wish to display the
XML as idented text, without those signs.
I can't use view-source and then copy-paste since the identation is
ruined This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: news |
last post by:
I've a site: http://gto.ie-studios.net/products.php that looks
perfectly fine in Windows whether with IE or Firefox 1.0.
But when viewed in the Linux version of Firefox 1.0, images get
misaligned and breaks between then appear.
Why the two different behaviors on the same browser but different OS's?
Anyway, that page as an example DOES W3C HTML validate AND W3C CSS
validate as well.
So, there's no ERRORS per se, but I suppose there's...
|
by: Jarson |
last post by:
My JavaScript is trying to POST data to a CGI script (Perl) using
XMLHttpRequest. My CGI server gets different data from IE than Mozilla
Firefox.
// For Mozilla, req = new XMLHttpRequest();
// For IE req = new ActiveXObject("Microsoft.XMLHTTP");
req.onreadystatechange = requestHandler ; // function to handle async
response
req.open('POST', myURL, true); // use POST
req.send('foo=11&bar=22') ;
|
by: autogoor |
last post by:
I want to put a java Applet in a jsp page. Here is what I used:
<jsp:plugin
type="applet"
code="mypackage.myApplet"
width="450"
height="350"
>
<jsp:params>...</jsp:params>
|
by: thatseattleguy |
last post by:
I'm stumped. Visit:
http://positivesweat.com/class.html
....and look at the tables in the middle labeled "morning" and
"evening". Do this in both IE and Firefox.
The tables appear to me to be defined identically (to take up 100% of
the width of the parent table), and indeed IE makes them the same
width, as I wanted and expected. But in Firefox (latest), the "evening"
|
by: Matthew Wieder |
last post by:
Hi - I have a datagrid that has a black header and the rows alternate
white and gray. The problem is that until items are added to the grid,
the grid appears as a large black rectangle, which is quite ugly. The
black area is larger then it is once an item is added. How can I solve
this problem either by:
A) Having only the header black and the rest of the empty block white or
gray (preffered solution)
B) Having the color gray or white...
| |
by: News |
last post by:
I have a page up trying to learn how to ID a browser and other info.
http://wyght.com/warren/testPos.html
here is the code
<script type = "text/javascript">
var space = ", ";
var name = navigator.appName;
|
by: Alex D. |
last post by:
Hi, I have a frame in one of my pages that I use to show diferent pages each
time. I am experiencing an weird behaviour in Mozilla and Firefox, when the
frame's source is specified in the server side it works OK, but when the
content of the frame is changed in the client browser clicking over a link
then the frame dont render the pinctures but just the text. I dont
understand.
Any ideas??
Thanks.
|
by: Clément |
last post by:
Hi!
I am currently developping a user interface with Ajax/C#/.net. And I am
facing a problem with Mozilla, and Firefox.
I use the function innerHTML to load a Web UserControl into a div, this
way the main page never gets refreshed. It works perfectly under IE,
but with Mozilla and Firefox I got a problem : there is a space before
the thing I want to display everytime I use ".innerHTML".
|
by: michal2 |
last post by:
I am creating an xml document using XMLOutputter in JAVA, then
displaying the xml file in Firefox browser.
My problem is that I want to simply display the XML as idented text,
but the browser adds "-" signs to the text.
So when I try to copy+paste the text I also get the "-" signs with it.
Can I cause the browser to display an idented XML text without the "-"
signs??
|
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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...
| |
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,...
|
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...
|
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |