| well-formed xml newbie question problem syntax errors |
malhotra

msg:3414927 | 3:32 pm on Aug 6, 2007 (gmt 0) | hey, 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>
|
cmarshall

msg:3414956 | 3:55 pm on Aug 6, 2007 (gmt 0) | Welcome to WebmasterWorld! <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: I think you mean this: Do you mean "<root"? This one has me stumped: What is it you're trying o do?
|
|
|