D
David
I need to find a good online resource which teaches the use of the
XmlDocument framework in more depth than is covered in MS's online
doc. I need to create a multi-level XML document like the one listed
below. Using XmlDocument, I can create the <books> and the individual
<name> and <price> elements, but I am unsure how to create the
<category> and <title> elements and close them after creating the
detail elements. Eg. how can I go 2+ levels deep?
Also, is it adventatgious to use the XmlDocument or the XmlWriter
class to create more complex XML?
Thanks
<?xml version="1.0" encoding="utf-8" ?>
<books>
<category name="dotnet">
<title>
<name>ASP.NET in 15 seconds</name>
<price>$34.99</price>
</title>
<title>
<name>C# in 15 seconds</name>
<price>$44.99</price>
</title>
</category>
<category name="othernet">
<title>
<name>WHY AM I HERE</name>
<price>$34.99</price>
</title>
</category>
</books>
XmlDocument framework in more depth than is covered in MS's online
doc. I need to create a multi-level XML document like the one listed
below. Using XmlDocument, I can create the <books> and the individual
<name> and <price> elements, but I am unsure how to create the
<category> and <title> elements and close them after creating the
detail elements. Eg. how can I go 2+ levels deep?
Also, is it adventatgious to use the XmlDocument or the XmlWriter
class to create more complex XML?
Thanks
<?xml version="1.0" encoding="utf-8" ?>
<books>
<category name="dotnet">
<title>
<name>ASP.NET in 15 seconds</name>
<price>$34.99</price>
</title>
<title>
<name>C# in 15 seconds</name>
<price>$44.99</price>
</title>
</category>
<category name="othernet">
<title>
<name>WHY AM I HERE</name>
<price>$34.99</price>
</title>
</category>
</books>