Forum Moderators: open
a newbie here having problems with xml syntax. i am getting lots of parsing errors and looking through exercise question to find errors. it keeps saying XML Parsing Error: junk after document element.
<?xml version = "1.0" encoding = "UTF-8"?>
<room xmlns:a="AAA" xmlns:b="BBB" (namespaces) />
<#*$! c: "CCC" />
<yyy d:"DDD"/>
<a>a break is <a>
<b>a less-than symbol is @lt<b>
<c>an ampersand must be escaped<c>
</#*$!>
<root>
<a>a break is <a>
<b>a less-than symbol is @lt<b>
<c>an ampersand must be escaped<c>
Should be:
<a>a break is </a>
<b>a less-than symbol is @lt</b>
<c>an ampersand must be escaped</c>
Furthermore, you may want this:
<b>a less-than symbol is <</b>
Also, I'm not sure what this means:
<#*$! c: "CCC" />
I think you mean this:
<c:#*$!>
.
.
</c:#*$!>
<room
Do you mean "<root"?
This one has me stumped:
<yyy d:"DDD"/>
What is it you're trying o do?