<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>XML and XmlDataSource Control</title><link>http://forums.asp.net/43.aspx</link><description>All about XML, XSLT, and the XmlDataSource control.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: could this xml layout be used with xmldocument.loadxml in .net somehow</title><link>http://forums.asp.net/thread/1251340.aspx</link><pubDate>Fri, 07 Apr 2006 17:12:13 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1251340</guid><dc:creator>clean</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1251340.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=43&amp;PostID=1251340</wfw:commentRss><description>&lt;p&gt;never mind i figured out what i had to do.&lt;/p&gt;
&lt;p&gt;I created a dtd file called po.dtd and put the ELEMENTS tag in the code above into the dtd file.&lt;/p&gt;
&lt;p&gt;Then in my dynmically created xml file i inputted the following:&lt;/p&gt;&lt;font color=#800000 size=2&gt;
&lt;p&gt;&amp;lt;!DOCTYPE rootitems SYSTEM '"&lt;/p&gt;&lt;/font&gt;&lt;font size=2&gt; + Server.MapPath(&lt;/font&gt;&lt;font color=#800000 size=2&gt;"po.dtd"&lt;/font&gt;&lt;font size=2&gt;) + &lt;/font&gt;&lt;font color=#800000 size=2&gt;"'&amp;gt;&lt;/font&gt;
&lt;p&gt;&lt;font color=#800000 size=2&gt;and it all worked out just great.&lt;/font&gt;&lt;/p&gt;</description></item><item><title>could this xml layout be used with xmldocument.loadxml in .net somehow</title><link>http://forums.asp.net/thread/1251141.aspx</link><pubDate>Fri, 07 Apr 2006 14:46:14 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1251141</guid><dc:creator>clean</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1251141.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=43&amp;PostID=1251141</wfw:commentRss><description>&lt;p&gt;i fairly new to all of this&lt;/p&gt;
&lt;p&gt;listed below is the format of a dynamic xml file that i create on the fly&amp;nbsp;and what i am trying to do with this dynamically created xml file is the following&lt;br /&gt;&lt;br /&gt;XmlDocument docXml = new XmlDocument();&lt;br /&gt;docXml.LoadXml(sb.ToString()); *sb contains the contents of the xml file&lt;br /&gt;XslCompiledTransform docXsl = new XslCompiledTransform();&lt;br /&gt;docXsl.Load(Server.MapPath("items.xsl"));&lt;br /&gt;System.IO.StringWriter strStringWriter = new System.IO.StringWriter();&lt;br /&gt;docXsl.Transform(docXml, null, strStringWriter); &lt;br /&gt;&lt;br /&gt;and it fails abviously because its not formatted properly, but i read somewhere that you could include an ELEMENTS tag at the begining of the file which would read the xml file properly but it did not work and it gave me the following error: 'ELEMENT' is an unexpected token. The expected token is 'DOCTYPE'. Line 1, position 3. &lt;br /&gt;&lt;br /&gt;Could anybody provide any feedback on how to make the xml file listed below function properly with my xml commands above? &lt;font size=2&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size=2&gt;&amp;nbsp;&amp;lt;&lt;span class=tag&gt;ROOTITEMS&lt;/span&gt;&amp;gt;&lt;br /&gt;&amp;lt;&lt;span class=tag&gt;ITEM&lt;/span&gt;&amp;gt;&lt;br /&gt;&amp;lt;&lt;span class=tag&gt;PONUMBER&lt;/span&gt;&amp;gt;&amp;lt;/&lt;span class=tag&gt;PONUMBER&lt;/span&gt;&amp;gt;&lt;br /&gt;&amp;lt;&lt;span class=tag&gt;LOCATION&lt;/span&gt;&amp;gt;&amp;lt;/&lt;span class=tag&gt;LOCATION&lt;/span&gt;&amp;gt;&lt;br /&gt;&amp;lt;&lt;span class=tag&gt;CODE&lt;/span&gt;&amp;gt;&amp;lt;/&lt;span class=tag&gt;CODE&lt;/span&gt;&amp;gt;&lt;br /&gt;&amp;lt;&lt;span class=tag&gt;QUANTITY&lt;/span&gt;&amp;gt;&amp;lt;/&lt;span class=tag&gt;QUANTITY&lt;/span&gt;&amp;gt;&lt;br /&gt;&amp;lt;&lt;span class=tag&gt;DATE&lt;/span&gt;&amp;gt;&amp;lt;/&lt;span class=tag&gt;DATE&lt;/span&gt;&amp;gt;&lt;br /&gt;&amp;lt;/&lt;span class=tag&gt;ITEM&lt;/span&gt;&amp;gt;&lt;br /&gt;&amp;lt;&lt;span class=tag&gt;ITEM&lt;/span&gt;&amp;gt;&lt;br /&gt;&amp;lt;&lt;span class=tag&gt;PONUMBER&lt;/span&gt;&amp;gt;&amp;lt;/&lt;span class=tag&gt;PONUMBER&lt;/span&gt;&amp;gt;&lt;br /&gt;&amp;lt;&lt;span class=tag&gt;LOCATION&lt;/span&gt;&amp;gt;&amp;lt;/&lt;span class=tag&gt;LOCATION&lt;/span&gt;&amp;gt;&lt;br /&gt;&amp;lt;&lt;span class=tag&gt;CODE&lt;/span&gt;&amp;gt;&amp;lt;/&lt;span class=tag&gt;CODE&lt;/span&gt;&amp;gt;&lt;br /&gt;&amp;lt;&lt;span class=tag&gt;QUANTITY&lt;/span&gt;&amp;gt;&amp;lt;/&lt;span class=tag&gt;QUANTITY&lt;/span&gt;&amp;gt;&lt;br /&gt;&amp;lt;&lt;span class=tag&gt;DATE&lt;/span&gt;&amp;gt;&amp;lt;/&lt;span class=tag&gt;DATE&lt;/span&gt;&amp;gt;&lt;br /&gt;&amp;lt;/&lt;span class=tag&gt;ITEM&lt;/span&gt;&amp;gt;&lt;br /&gt;&amp;lt;&lt;span class=tag&gt;SHIPPINGINFORMATION&lt;/span&gt;&amp;gt;&lt;br /&gt;&amp;lt;&lt;span class=tag&gt;COMPANYNAME&lt;/span&gt;&amp;gt;&amp;lt;/&lt;span class=tag&gt;COMPANYNAME&lt;/span&gt;&amp;gt;&lt;br /&gt;&amp;lt;&lt;span class=tag&gt;ADDRESS&lt;/span&gt;&amp;gt;&amp;lt;/&lt;span class=tag&gt;ADDRESS&lt;/span&gt;&amp;gt;&lt;br /&gt;&amp;lt;&lt;span class=tag&gt;CITY&lt;/span&gt;&amp;gt;&amp;lt;/&lt;span class=tag&gt;CITY&lt;/span&gt;&amp;gt;&lt;br /&gt;&amp;lt;&lt;span class=tag&gt;PROVINCE&lt;/span&gt;&amp;gt;&amp;lt;/&lt;span class=tag&gt;PROVINCE&lt;/span&gt;&amp;gt;&lt;br /&gt;&amp;lt;&lt;span class=tag&gt;STATE&lt;/span&gt;&amp;gt;&amp;lt;/&lt;span class=tag&gt;STATE&lt;/span&gt;&amp;gt;&lt;br /&gt;&amp;lt;&lt;span class=tag&gt;CONTACT&lt;/span&gt;&amp;gt;&amp;lt;/&lt;span class=tag&gt;CONTACT&lt;/span&gt;&amp;gt;&lt;br /&gt;&amp;lt;&lt;span class=tag&gt;PHONENUMBER&lt;/span&gt;&amp;gt;&amp;lt;/&lt;span class=tag&gt;PHONENUMBER&lt;/span&gt;&amp;gt;&lt;br /&gt;&amp;lt;&lt;span class=tag&gt;FAXNUMBER&lt;/span&gt;&amp;gt;&amp;lt;/&lt;span class=tag&gt;FAXNUMBER&lt;/span&gt;&amp;gt;&lt;br /&gt;&amp;lt;&lt;span class=tag&gt;CONTACTEMAIL&lt;/span&gt;&amp;gt;&amp;lt;/&lt;span class=tag&gt;CONTACTEMAIL&lt;/span&gt;&amp;gt;&lt;br /&gt;&amp;lt;/&lt;span class=tag&gt;SHIPPINGINFORMATION&lt;/span&gt;&amp;gt;&lt;br /&gt;&amp;lt;/&lt;span class=tag&gt;ROOTITEMS&lt;/span&gt;&amp;gt;&amp;nbsp;&lt;/font&gt;&lt;/p&gt;</description></item></channel></rss>