I can't find anything wrong with this document. I am using the xom libraries to parse this doc and they keep giving me an error.
If someone could point out my errors that would be great.

<?xml version = "1.0" encoding = "UTF-8"?>
<update version = "0" date = "3.21.11" time = "1815" systemRestart = "false" programRestart = "false" programOffDuringUpdate = "false"/>
<folder name = "Game Center" hidden = "false" url = "http://kenai.com/projects/resource/downloads/download/GCResourceFiles/">
	<folder name = "Games" hidden = "false" url = "null">
		<folder name = "Panterra" hidden = "false" url = "null">
			<folder name = "data" hidden = "false" url = "null">
				<file url = "http://kenai.com/projects/resource/downloads/directory/GCResourceFiles/FileList.xml" name = "FileList" type = ".xml" size = "null" udatedInVersion = "" />
				<file url = "http://kenai.com/projects/resource/downloads/directory/GCResourceFiles/Castle.blend" name = "castle" type = ".blend" size = "null" udatedInVersion = "" />
			</folder>
		</folder>
	</folder>
</folder>

Thanks.

Recommended Answers

All 3 Replies

all well formed xml documents need a root node. You have two elements at the top level, you can only have one

Thanks I think that did it but I won't know until I am able to parse the entire document with the java xom libraries.

make your xml valid

<?xml version = "1.0" encoding = "UTF-8"?>
<update version = "0" date = "3.21.11" time = "1815" systemRestart = "false" programRestart = "false" programOffDuringUpdate = "false">
<folder name = "Game Center" hidden = "false" url = "http://kenai.com/projects/resource/downloads/download/GCResourceFiles/">
	<folder name = "Games" hidden = "false" url = "null">
		<folder name = "Panterra" hidden = "false" url = "null">
			<folder name = "data" hidden = "false" url = "null">
				<file url = "http://kenai.com/projects/resource/downloads/directory/GCResourceFiles/FileList.xml" name = "FileList" type = ".xml" size = "null" udatedInVersion = "" />
				<file url = "http://kenai.com/projects/resource/downloads/directory/GCResourceFiles/Castle.blend" name = "castle" type = ".blend" size = "null" udatedInVersion = "" />
			</folder>
		</folder>
	</folder>
</folder>
</update>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.