
- Forum
- Programming Talk
- XML
- Help to Resolve
Help to Resolve
This is a discussion on Help to Resolve within the XML forums, part of the Programming Talk category; I tried my first XML application as below. <!--Sample XML--!> <?xml version="1.0"?> <?xml-stylesheet type="text/css" href="style.css"?> <BOOKS> <BOOK> <TITLE CLASS="BLUE">WELCOME</TITLE> <AUTHOR>SAMPLE</AUTHOR> ...
-
Help to Resolve
I tried my first XML application as below.
<!--Sample XML--!>
<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="style.css"?>
<BOOKS>
<BOOK>
<TITLE CLASS="BLUE">WELCOME</TITLE>
<AUTHOR>SAMPLE</AUTHOR>
</BOOK>
</BOOKS>
But I got error and I could not find the error in the above program. Kindly help me to resolve the error.
-
Hi
<!--Sample XML -->
<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="style.css"?>
<BOOKS>
<BOOK>
<TITLE CLASS="BLUE">WELCOME</TITLE>
<AUTHOR>SAMPLE</AUTHOR>
</BOOK>
</BOOKS>
You have wrongly closed the comment on the first line. Check the above first line for correction.
-
03-01-2012, 03:50 AM #3
- Join Date
- Feb 2012
- Answers
- 66
<code>[QUOTE=amitky;410971]<!--Sample XML -->
<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="style.css"?>
<BOOKS>
<BOOK>
<TITLE CLASS="BLUE">WELCOME</TITLE>
<AUTHOR>SAMPLE</AUTHOR>
</BOOK>
</BOOKs></code>
The error lies in the third line of ur code the href attribute should appear before type in style tag.
-
03-01-2012, 03:52 AM #4
- Join Date
- Feb 2012
- Answers
- 66
The href attribute should appear before type attribute in the style tag which is the third line of ur code.
-
04-17-2012, 04:18 PM #5
- Join Date
- Apr 2012
- Answers
- 8
I thought there was supposed to be some kind of Doctype XML command? I feel a little bit self-conscious asking this but I've seen something like that on top of most XML/HTML web pages. Can someone explain?
-
Sponsored Ads

Reply With Quote





