T
Tony Johansson
Hi!
Below I have two blocks of data.the first block is from 3 Movie objects that
have been XML serialized.
The second block of data is just these three movie object in an XML file.
I just wonder when I look at these two blocks of data they look almost
identical.. There are some minor differences.
So my question is simply is a XML serialized file the same as an normal XML
file ?
?xml version="1.0"?>
<ArrayOfMovie xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Movie>
<Title>My Sister's Keeper</Title>
<RunningLength>109</RunningLength>
<ProductionYear>2009</ProductionYear>
<IsbnNumber>9100120820</IsbnNumber>
<Url>http://images.filmtipset.se/posters/86432038.jpg</Url>
</Movie>
<Movie>
<Title>Fight Club</Title>
<RunningLength>139</RunningLength>
<ProductionYear>1999</ProductionYear>
<IsbnNumber>9100123064</IsbnNumber>
<Url>http://images.filmtipset.se/posters/93394736.jpg</Url>
</Movie>
<Movie>
<Title>Star Trek</Title>
<RunningLength>127</RunningLength>
<ProductionYear>2009</ProductionYear>
<IsbnNumber>9172321385</IsbnNumber>
<Url>http://images.filmtipset.se/posters/83532544.jpg</Url>
</Movie>
</ArrayOfMovie>
//This is a normal XML file consisting of three Movie objects.
<?xml version="1.0" encoding="utf-8" ?>
- <movies>
- <movie>
<title>My Sister's Keeper</title>
<runningLength>109</runningLength>
<productionYear>2009</productionYear>
<isbn>9100120820</isbn>
<url>http://images.filmtipset.se/posters/86432038.jpg</url>
</movie>
- <movie>
<title>Fight Club</title>
<runningLength>139</runningLength>
<productionYear>1999</productionYear>
<isbn>9100123064</isbn>
<url>http://images.filmtipset.se/posters/93394736.jpg</url>
</movie>
- <movie>
<title>Star Trek</title>
<runningLength>127</runningLength>
<productionYear>2009</productionYear>
<isbn>9172321385</isbn>
<url>http://images.filmtipset.se/posters/83532544.jpg</url>
</movie>
</movies>
Below I have two blocks of data.the first block is from 3 Movie objects that
have been XML serialized.
The second block of data is just these three movie object in an XML file.
I just wonder when I look at these two blocks of data they look almost
identical.. There are some minor differences.
So my question is simply is a XML serialized file the same as an normal XML
file ?
?xml version="1.0"?>
<ArrayOfMovie xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Movie>
<Title>My Sister's Keeper</Title>
<RunningLength>109</RunningLength>
<ProductionYear>2009</ProductionYear>
<IsbnNumber>9100120820</IsbnNumber>
<Url>http://images.filmtipset.se/posters/86432038.jpg</Url>
</Movie>
<Movie>
<Title>Fight Club</Title>
<RunningLength>139</RunningLength>
<ProductionYear>1999</ProductionYear>
<IsbnNumber>9100123064</IsbnNumber>
<Url>http://images.filmtipset.se/posters/93394736.jpg</Url>
</Movie>
<Movie>
<Title>Star Trek</Title>
<RunningLength>127</RunningLength>
<ProductionYear>2009</ProductionYear>
<IsbnNumber>9172321385</IsbnNumber>
<Url>http://images.filmtipset.se/posters/83532544.jpg</Url>
</Movie>
</ArrayOfMovie>
//This is a normal XML file consisting of three Movie objects.
<?xml version="1.0" encoding="utf-8" ?>
- <movies>
- <movie>
<title>My Sister's Keeper</title>
<runningLength>109</runningLength>
<productionYear>2009</productionYear>
<isbn>9100120820</isbn>
<url>http://images.filmtipset.se/posters/86432038.jpg</url>
</movie>
- <movie>
<title>Fight Club</title>
<runningLength>139</runningLength>
<productionYear>1999</productionYear>
<isbn>9100123064</isbn>
<url>http://images.filmtipset.se/posters/93394736.jpg</url>
</movie>
- <movie>
<title>Star Trek</title>
<runningLength>127</runningLength>
<productionYear>2009</productionYear>
<isbn>9172321385</isbn>
<url>http://images.filmtipset.se/posters/83532544.jpg</url>
</movie>
</movies>