PDA

View Full Version : XML question



RussianBeer
August 1st, 2003, 11:23 PM
When I try to run this code:

<xml version="10" ?>
<images directory="Images">
<imageNode jpegURL="a2.jpg" thumbURL="tn_2.jpg" title="Image 0">
Comments on Image 0
<imageNode jpegURL="a3.jpg" thumbURL="tn_3.jpg" title="Image 1">
Comments on Image 1
</imageNode>
..
..
.. <imageNode jpegURL="a4.jpg" thumbURL="tn_4.jpg" title="Image n">
.. Comments on Image n
.. </imageNode>
.. </images>


I get this error message:



The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.


--------------------------------------------------------------------------------

Invalid at the top level of the document. Error processing resource 'file:///C:/Documents and Settings/Administrator.AIRBORNE/Desktop/GalleryComponent1_2/gallery/TMP10mxciz2nx.xml'. Line 1, Position 24

<?xml version="1.0" ?>



Any idea what the I should put there instead?

nobody
August 1st, 2003, 11:26 PM
I know nothing about xml but does it have anything to do with it being a local file on your hard drive?

Sorry man, best I can think of

RussianBeer
August 2nd, 2003, 03:35 AM
Nope :(, thanks though

eyezberg
August 2nd, 2003, 12:38 PM
try

<?xml version="1.0" ?>
instead of
<?xml version="10" ?>
(version 10 not out yet ;) )
...just a thought...

thoriphes
August 2nd, 2003, 12:57 PM
fixed: thor.

btw, it's
<? xml version="1.0" ?>(notice the two question marks) ;)

ahmed
August 2nd, 2003, 01:09 PM
im confused