Share Link
Copied to clipboard
Embed on Your Page
Copied to clipboard
We Stand with Ukraine
questions/47611954/parse-xml-file-and-grab-value-from-parent-node by dbc_MinLength
Environment version: 4.0.30319.42000


Result of deserializing and reserializing the List<Book>: 
<?xml version="1.0" encoding="utf-16"?>
<ArrayOfBook xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Book>
    <Author>Gambardella, Matthew</Author>
    <Title>XML Developer's Guide</Title>
    <Genre>Computer</Genre>
    <Price>44.95</Price>
    <PublishDate>2000-10-01T00:00:00</PublishDate>
    <Description>An in-depth look at creating applications with XML.</Description>
  </Book>
  <Book>
    <Author>Ralls, Kim</Author>
    <Title>Midnight Rain</Title>
    <Genre>Fantasy</Genre>
    <Price>5.95</Price>
    <PublishDate>2000-12-16T00:00:00</PublishDate>
    <Description>A former architect battles corporate zombies, an evil sorceress, and her own childhood to become queen of the world.</Description>
  </Book>
</ArrayOfBook>
Cached Result
Last Run: 11:04:15 am
Compile: 0.342s
Execute: 0.331s
Memory: 1.46Mb
CPU: 0.25s