Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > XML comments viewed in browser

Thread Tools

XML comments viewed in browser

Posts: n/a
I have the following piece of XML:
<?xml version="1.0" encoding="UTF-8" ?>
<TopLevel> <!-- TopLevel comment -->
<SubLevel /> <!-- SubLevel comment -->

When viewed in the browser it looks like this:

<?xml version="1.0" encoding="UTF-8" ?>
<!-- TopLevel comment -->
<SubLevel />
<!-- SubLevel comment -->

This makes it hard to determine which element the comment refers to.
Is there a way to have the comments output on the same line, or is
this dependent on the browser?

Finally, should comments generally be placed before the element is

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mozilla 1.7.12 will not allow preferences to be viewed? Theodore Baldwin Boothe III Firefox 0 03-03-2006 08:44 PM
Order of Recently Viewed Sites Agent777 Firefox 3 05-25-2005 03:51 AM
Q: prevent the source code from being viewed =?Utf-8?B?SklNLkgu?= ASP .Net 2 03-22-2005 05:07 PM
i would like to build a small web page which can be viewed from a mobile device D.Rudiani ASP .Net 2 03-08-2005 01:57 AM
'current custom error settings for application prevent details of application error from being viewed. ' Damian ASP .Net 3 12-30-2003 08:01 PM