nsaunders

Untitled

Oct 9th, 2022
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.77 KB | None | 0 0
  1. PS /home/nicholas/xml>
  2. PS /home/nicholas/xml> $raw = get-content ./books.xml
  3. PS /home/nicholas/xml>
  4. PS /home/nicholas/xml> $raw
  5. <?xml version="1.0"?>
  6. <catalog>
  7. <book id="bk101">
  8. <author>Gambardella, Matthew</author>
  9. <title>XML Developer's Guide</title>
  10. <genre>Computer</genre>
  11. <price>44.95</price>
  12. <publish_date>2000-10-01</publish_date>
  13. <description>An in-depth look at creating applications
  14. with XML.</description>
  15. </book>
  16. <book id="bk102">
  17. <author>Ralls, Kim</author>
  18. <title>Midnight Rain</title>
  19. <genre>Fantasy</genre>
  20. <price>5.95</price>
  21. <publish_date>2000-12-16</publish_date>
  22. <description>A former architect battles corporate zombies,
  23. an evil sorceress, and her own childhood to become queen
  24. of the world.</description>
  25. </book>
  26. <book id="bk103">
  27. <author>Corets, Eva</author>
  28. <title>Maeve Ascendant</title>
  29. <genre>Fantasy</genre>
  30. <price>5.95</price>
  31. <publish_date>2000-11-17</publish_date>
  32. <description>After the collapse of a nanotechnology
  33. society in England, the young survivors lay the
  34. foundation for a new society.</description>
  35. </book>
  36. <book id="bk104">
  37. <author>Corets, Eva</author>
  38. <title>Oberon's Legacy</title>
  39. <genre>Fantasy</genre>
  40. <price>5.95</price>
  41. <publish_date>2001-03-10</publish_date>
  42. <description>In post-apocalypse England, the mysterious
  43. agent known only as Oberon helps to create a new life
  44. for the inhabitants of London. Sequel to Maeve
  45. Ascendant.</description>
  46. </book>
  47. <book id="bk105">
  48. <author>Corets, Eva</author>
  49. <title>The Sundered Grail</title>
  50. <genre>Fantasy</genre>
  51. <price>5.95</price>
  52. <publish_date>2001-09-10</publish_date>
  53. <description>The two daughters of Maeve, half-sisters,
  54. battle one another for control of England. Sequel to
  55. Oberon's Legacy.</description>
  56. </book>
  57. <book id="bk106">
  58. <author>Randall, Cynthia</author>
  59. <title>Lover Birds</title>
  60. <genre>Romance</genre>
  61. <price>4.95</price>
  62. <publish_date>2000-09-02</publish_date>
  63. <description>When Carla meets Paul at an ornithology
  64. conference, tempers fly as feathers get ruffled.</description>
  65. </book>
  66. <book id="bk107">
  67. <author>Thurman, Paula</author>
  68. <title>Splish Splash</title>
  69. <genre>Romance</genre>
  70. <price>4.95</price>
  71. <publish_date>2000-11-02</publish_date>
  72. <description>A deep sea diver finds true love twenty
  73. thousand leagues beneath the sea.</description>
  74. </book>
  75. <book id="bk108">
  76. <author>Knorr, Stefan</author>
  77. <title>Creepy Crawlies</title>
  78. <genre>Horror</genre>
  79. <price>4.95</price>
  80. <publish_date>2000-12-06</publish_date>
  81. <description>An anthology of horror stories about roaches,
  82. centipedes, scorpions and other insects.</description>
  83. </book>
  84. <book id="bk109">
  85. <author>Kress, Peter</author>
  86. <title>Paradox Lost</title>
  87. <genre>Science Fiction</genre>
  88. <price>6.95</price>
  89. <publish_date>2000-11-02</publish_date>
  90. <description>After an inadvertant trip through a Heisenberg
  91. Uncertainty Device, James Salway discovers the problems
  92. of being quantum.</description>
  93. </book>
  94. <book id="bk110">
  95. <author>O'Brien, Tim</author>
  96. <title>Microsoft .NET: The Programming Bible</title>
  97. <genre>Computer</genre>
  98. <price>36.95</price>
  99. <publish_date>2000-12-09</publish_date>
  100. <description>Microsoft's .NET initiative is explored in
  101. detail in this deep programmer's reference.</description>
  102. </book>
  103. <book id="bk111">
  104. <author>O'Brien, Tim</author>
  105. <title>MSXML3: A Comprehensive Guide</title>
  106. <genre>Computer</genre>
  107. <price>36.95</price>
  108. <publish_date>2000-12-01</publish_date>
  109. <description>The Microsoft MSXML3 parser is covered in
  110. detail, with attention to XML DOM interfaces, XSLT processing,
  111. SAX and more.</description>
  112. </book>
  113. <book id="bk112">
  114. <author>Galos, Mike</author>
  115. <title>Visual Studio 7: A Comprehensive Guide</title>
  116. <genre>Computer</genre>
  117. <price>49.95</price>
  118. <publish_date>2001-04-16</publish_date>
  119. <description>Microsoft Visual Studio 7 is explored in depth,
  120. looking at how Visual Basic, Visual C++, C#, and ASP+ are
  121. integrated into a comprehensive development
  122. environment.</description>
  123. </book>
  124. </catalog>
  125.  
  126.  
  127. PS /home/nicholas/xml>
  128. PS /home/nicholas/xml> $xml = Import-Clixml $raw
  129. Import-Clixml: Cannot bind argument to parameter 'Path' because it is an empty string.
  130. PS /home/nicholas/xml>
  131.  
Advertisement
Add Comment
Please, Sign In to add comment