homepage Welcome to WebmasterWorld Guest from 54.166.8.138
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / XML Development
Forum Library, Charter, Moderators: httpwebwitch

XML Development Forum

    
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 &nbsp;<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 &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?

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / XML Development
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved