Welcome to WebmasterWorld Guest from 50.19.53.104

Forum Moderators: httpwebwitch

Message Too Old, No Replies

well-formed xml newbie question

problem syntax errors

     

malhotra

3:32 pm on Aug 6, 2007 (gmt 0)

5+ Year Member



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 &nbsp;<a>
<b>a less-than symbol is @lt<b>
<c>an ampersand must be escaped<c>
</#*$!>
<root>

cmarshall

3:55 pm on Aug 6, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld!

<a>a break is &nbsp;<a>
<b>a less-than symbol is @lt<b>
<c>an ampersand must be escaped<c>

Should be:

<a>a break is &nbsp;</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 &lt;</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?

 

Featured Threads

Hot Threads This Week

Hot Threads This Month