tags:

views:

119

answers:

6

can someone please tell me why this xml formatting is incorrect and why my vb.net application does not want to read it?

http://sites.google.com/site/shadchanproject/Home/lots1.xml

is it OK to have an apostrophe between the tags? my vb debugger is saying: Invalid character in the given encoding. Line 33, position 10. (this is where i put the apostrophe)

A: 

Are you serious? Where's the closing tag?

John Saunders
to close what? it's all there
I__
Did you actually download the file and look at it. Alex is right. It's all there.
spender
Yes, I looked. I saw an open tag <7.. something> and nothing else.
John Saunders
This looks like it's fixed now.
John Saunders
+1  A: 

XML elements cannot begin with digits. You should try to stick with just letters. Prefix it with some extra data if you need to, to get it to be valid XML.

great_llama
A: 

Is the file static or being generated dynamically? Something in the download causes the content to be truncated...

EDIT:

Actually; I downloaded the xml and it looks fine. I did notice the use of unescaped quotes though.

Do you need to replace the ' with &#39; ?

John Weldon
View source is your friend.
spender
I got the point... my original response didn't actually account for a raw get of the source. In addition to the numeric tag names needing to change, I think escaping the quotes may be a good idea too. Please undo the downvote ;)
John Weldon
I did actually do view source, but chrome choked. I had to use powershell to actually download the source (in place of wget)
John Weldon
+1  A: 

I suspect it is because you are using numbers for your element names. Try prefixing these with another character, and it should parse.

spender
+4  A: 
Demi
I think you misread the XML. It's well formed wrt to balanced tags. Correct about the numeric starting char of the element name.
spender
@spender: thanks for the heads-up. You are correct - I missed the closing and opening tags in the middle of the xml on first reading. Thanks!
Demi
+1  A: 

You can't have a tag that start with a number, see specifications.

substitute 7190 and 7191 tags with, for example, _7190 and _7191 and your xml will bi well formed

Eineki