<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.dotnetzone.gr:443/cs/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>ASP.NET WebForms</title><link>https://www.dotnetzone.gr:443/cs/forums/13/ShowForum.aspx</link><description>Θέματα για web εφαρμογές, σε ASP.NET WebForms</description><dc:language>el</dc:language><generator>CommunityServer 2.1 SP3 (Build: 20423.1)</generator><item><title>Απ: Apo asp se aspx mesw xml ..?</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/10552.aspx</link><pubDate>Fri, 10 Mar 2006 19:59:38 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:10552</guid><dc:creator>H-3-X</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/10552.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=10552</wfw:commentRss><description>&lt;P&gt;Akrivws auto pou epsaxna!!!&lt;/P&gt;
&lt;P&gt;Thanks!!&lt;/P&gt;
&lt;P&gt;----------&lt;BR&gt;Gia opoion endiaferetai:&lt;/P&gt;
&lt;P&gt;Imports System.Xml.Xsl&lt;/P&gt;
&lt;P&gt;Module Module1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sub Main()&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim objXsl As XslTransform&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim newD As New DataSet&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; objXsl = New XslTransform&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; objXsl.Load(MapPath("valid.xslt"))&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; objXsl.Transform(MapPath("selection.xml"), MapPath("selection1.xml"))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; newD.ReadXml(MapPath("selection1.xml"), XmlReadMode.Auto)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DataGrid.DataSource = newD&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DataGrid.DataBind()&lt;BR&gt;&amp;nbsp;End Sub&lt;/P&gt;
&lt;P&gt;End Module&lt;BR&gt;--------------------&lt;/P&gt;
&lt;P&gt;selection.xml einai to arxiko adiamorfoto xml&lt;BR&gt;selection1.xml einai afto pou prokyptei meta to Transform&lt;BR&gt;valid.xslt einai to xslt pou egrapse o pkanavos sthn prwth apanthsh tou.Euxaristw!!&lt;/P&gt;
&lt;P&gt;-------------------&lt;/P&gt;
&lt;P&gt;&lt;img src="/cs/emoticons/emotion-1.gif" alt="Smile [:)]" /&gt;&lt;BR&gt;&lt;/P&gt;</description></item><item><title>Απ: Apo asp se aspx mesw xml ..?</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/10537.aspx</link><pubDate>Fri, 10 Mar 2006 08:43:05 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:10537</guid><dc:creator>Παναγιώτης Καναβός</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/10537.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=10537</wfw:commentRss><description>Το πρόβλημα δεν είναι στο datagrid αλλά στο xml αρχείο. Έτσι όπως είναι γραμμένο, ΤΙΠΟΤΑ δεν καθορίζει ότι το πρώτο item είναι point και το δεύτερο category. Όπως και να δοκιμάσεις να το δείξεις, θα έχεις το ίδιο πρόβλημα, είτε μιλάμε για .NET είτε για Java είτε για VB6. &lt;br /&gt;&lt;br /&gt;Αυτό που έχεις είναι ένα μάτσο items, που περιέχουν κάποια cells σε απροσδιόριστη σειρά, τα οποία με τη σειρά τους έχουν δύο attributes, το name και το value. Το τί περιέχουν τα attributes είναι επίσης απροσδιόριστο.&lt;br /&gt;&lt;br /&gt;Για να μπορέσεις να το χρησιμοποιήσεις θα πρέπει να το φέρεις σε μία άλλη μορφή.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Τώρα, το datagrid δέχεται ένα Dataset, όχι απευθείας ένα XML. Αν θέλεις να φορτώσεις ένα αρχείο XML στο Dataset, το φορτώνεις όπως έκανες με την ReadXml. Αν θέλεις να εκτελέσεις ένα transformation στο XML πριν το χρησιμοποιήσεις, θα πρέπει να χρησιμοποιήσεις την κλάση XslTransform. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Απ: Apo asp se aspx mesw xml ..?</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/10525.aspx</link><pubDate>Fri, 10 Mar 2006 04:01:02 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:10525</guid><dc:creator>H-3-X</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/10525.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=10525</wfw:commentRss><description>&lt;P align=justify&gt;Συγνώμη για τα greeklish αλλά ήμουν σε Η/Υ χωρίς Ελληνικά.&lt;/P&gt;
&lt;P align=justify&gt;Ευχαριστώ για την απάντηση σου.&lt;/P&gt;
&lt;P align=justify&gt;Καταρχήν&amp;nbsp; το IEnumerable κολλάει στο ότι το Datagrid δεν διαβάζει σωστά&amp;nbsp;απευθείας xml αρχεία αν δεν είναι σε μια μορφή όπως αυτή που μετέτρεψες εσύ το αρχικό xml. Αν δηλαδή δοκιμάσω να διαβάσω να κάνω bind μια template column στα nodes του αρχείου (πχ στο value), αυτό που θα πάρω είναι&amp;nbsp;:&lt;/P&gt;
&lt;P align=justify&gt;p1&lt;/P&gt;
&lt;P align=justify&gt;c1&lt;/P&gt;
&lt;P align=justify&gt;p2&lt;/P&gt;
&lt;P align=justify&gt;c1&lt;/P&gt;
&lt;P align=justify&gt;p3&lt;/P&gt;
&lt;P align=justify&gt;c2 &lt;/P&gt;
&lt;P align=justify&gt;Ο μόνος τρόπος να το διαβάσω σε μια aspx σελίδα είναι χρησιμοποιώντας ένα xml tag, το οποίο χρειάζεται 2 παραμέτρους :&lt;/P&gt;
&lt;P align=justify&gt;DocumentSource : το αρχείο xml στην αρχική του μορφή&lt;/P&gt;
&lt;P align=justify&gt;TransformSource : το αρχείο xslt που απαιτείται για να διαβαστεί σωστά το xml. (σαν αυτό που προτείνεις)&lt;/P&gt;
&lt;P align=justify&gt;To πρόβλημα μου είναι ότι θέλω να το διαβάσω "σωστά" σε ένα Datagrid. &lt;/P&gt;
&lt;P align=justify&gt;Μπορεί να ακουστεί χαζό αλλά δεν έχω καταλάβει ακριβώς πως μπορώ να μετατρέψω το αρχικό xml πρακτικά "on the fly" κάθε φορά που δημιουργείται (όταν δηλαδή ο χρήστης επιλέγει κάποια points στο χάρτη). Το xslt λειτουργεί σαν φίλτρο του αρχικού xml και το φέρνει στην επιθυμητή μορφή αλλά το Datagrid δεν ζητάει xslt για να διαβασει xml αρχεία, γι'αυτό και δεν μπορώ να το διαβάσω σωστά.&lt;/P&gt;
&lt;P align=justify&gt;Ευχαρίστω και πάλι&lt;/P&gt;
&lt;P align=justify&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>Απ: Apo asp se aspx mesw xml ..?</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/10491.aspx</link><pubDate>Thu, 09 Mar 2006 09:22:34 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:10491</guid><dc:creator>Παναγιώτης Καναβός</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/10491.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=10491</wfw:commentRss><description>&lt;P&gt;Κάτι τα greeklish, κάτι το μέγεθος του post, δεν νομίζω ότι κατάλαβα τί λες. Μήπως θα έπρεπε να το γράψεις λίγο πιο σύντομο και στα Ελληνικά? Προσπαθώ να το διαβάσω και με έπιασε πονοκέφαλος! (Εντάξει, τον είχα ήδη αλλά χειροτέρεψε).&lt;/P&gt;
&lt;P&gt;Απ' ότι κατάλαβα, το XML που θέλεις να χρησιμοποιήσεις είναι προβληματικό. Το schema που χρησιμοποιείς φαίνεται ότι ορίζει απλά τα πεδία ενός grid, χωρίς συγκεκριμένη σειρά. Θα μπορούσε π.χ. άνετα το ένα πεδίο να περιέχει πρώτα ένα item CATEGORY και μετά το POINT. Καλύτερα θα ήταν να χρησιμοποιήσεις ένα XSLT για να το σουλουπώσεις πριν το χρησιμοποιήσεις. To IEnumerable πάντως δεν κατάλαβα που κολλάει.&lt;/P&gt;
&lt;P&gt;Υποθέτω ότι χρησιμοποιείς το GIS της Manifold, καθώς βρήκα αναφορές στο MapServer.ResultXML μέσω του Google. Στο παρακάτω link &lt;A href="http://www.pinetoprairie.org/phpBB2/viewtopic.php?p=1272&amp;amp;sid=7aabeb3b02dae59e743d52b829591c06"&gt;http://www.pinetoprairie.org/phpBB2/viewtopic.php?p=1272&amp;amp;sid=7aabeb3b02dae59e743d52b829591c06&lt;/A&gt; νομίζω συζητάνε κάτι παρόμοιο με αυτό που θέλεις να κάνεις κι εσύ.&amp;nbsp; Χρησιμοποιώντας το παράδειγμα του άρθρου, έφτιαξα το παρακάτω XSLT:&lt;/P&gt;
&lt;P&gt;&lt;span style="color: Black;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt; &lt;br /&gt;&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: Maroon;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;xsl:stylesheet&lt;/span&gt; &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;xmlns:xsl&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;="&amp;lt;A href="&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&lt;/span&gt;http://www.w3.org/1999/XSL/Transform"&amp;gt;http://www.w3.org/1999/XSL/Transform&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: Maroon;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;A&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;gt;&lt;/span&gt;" version="1.0"&amp;gt;&lt;br /&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: Maroon;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;xsl:output&lt;/span&gt; &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;method&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;="xml"&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: Maroon;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;xsl:template&lt;/span&gt; &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;match&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;="data"&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;  &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: Maroon;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;data&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;   &amp;lt;xsl:apply-templates select="item"/&amp;gt;&lt;br /&gt;  &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: Maroon;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;data&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: Maroon;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;xsl:template&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: Maroon;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;xsl:template&lt;/span&gt; &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;match&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;="item"&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;  &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: Maroon;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;item&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;   &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: Maroon;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;Point&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;gt;&lt;/span&gt;&amp;lt;xsl:value-of select="cell[@name='POINT']/@value" /&amp;gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: Maroon;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;Point&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;   &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: Maroon;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;Category&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;gt;&lt;/span&gt;&amp;lt;xsl:value-of select="cell[@name='CATEGORY']/@value" /&amp;gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: Maroon;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;Category&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;  &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: Maroon;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;item&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: Maroon;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;xsl:template&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: Maroon;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;xsl:stylesheet&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Το οποίο μετατρέπει το αρχικό XML στην παρακάτω μορφή:&lt;/P&gt;
&lt;P&gt;&lt;span style="color: Black;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt; &lt;br /&gt;&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;lt;?&lt;/span&gt;&lt;span style="color: Maroon;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;xml&lt;/span&gt; &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;version&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;="1.0"&lt;/span&gt; &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;encoding&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;="utf-8"&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;?&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: Maroon;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;data&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: Maroon;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;item&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;  &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: Maroon;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;Point&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;gt;&lt;/span&gt;p1&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: Maroon;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;Point&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;  &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: Maroon;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;Category&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;gt;&lt;/span&gt;C1&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: Maroon;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;Category&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: Maroon;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;item&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: Maroon;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;item&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;  &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: Maroon;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;Point&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;gt;&lt;/span&gt;p2&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: Maroon;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;Point&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;  &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: Maroon;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;Category&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;gt;&lt;/span&gt;C1&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: Maroon;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;Category&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: Maroon;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;item&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: Maroon;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;item&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;  &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: Maroon;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;Point&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;gt;&lt;/span&gt;p3&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: Maroon;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;Point&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;  &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: Maroon;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;Category&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;gt;&lt;/span&gt;C2&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: Maroon;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;Category&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: Maroon;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;item&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: Maroon;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;data&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Απ' ότι είδα πάντως, το Manifold δουλεύει και σαν WMS server. Μήπως θα ήταν καλύτερα να κάνεις τα queries καλώντας τον WMS server σαν web service?&lt;/P&gt;</description></item><item><title>Apo asp se aspx mesw xml ..?</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/10488.aspx</link><pubDate>Thu, 09 Mar 2006 07:28:55 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:10488</guid><dc:creator>H-3-X</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/10488.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=10488</wfw:commentRss><description>&lt;P&gt;&lt;SPAN class=postbody&gt;Xairetw apantes! &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=postbody&gt;Exw anaptyksei mia web efarmogh gia diaxeirish dedomenwn kai reporting gia etairies engineering consultancy. Olh h efarmogh einai grammenh se ASP.NET kai VB.NET. Prosfata prosethesa ena GIS interface gia to opoio egrapsa polla tools se javascript. To kako einai oti logw tou GIS engine pou xrhsimopoiw (Manifold) h selida me to interface einai asp. Den exoun vgalei akoma web control gia asp.net(isws mexri to kalokairi..). Mia apo tis leitourgeies sth selida afth (asp) einai h dynatothta apo to xrhsth na epilegei antikeimena sto xarth kai na vlepei info gia afta. Eidikotera gia kapoia&amp;nbsp;antikeimena tou xarth (freatia parakolouthisis, stathmoi sulloghs dedomenwn klp) mporei o xrhsths na ta epilegei kai na ta prowthei gia peretairw erevna stis aspx selides. Afto ginetai mesw dhmiourgias enos xml arxeiou pou swzetai sto Mappath kathe fora pou o xrhsths epilegei kati kai sth synexeia anakaleitai apo ena Datagrid se mia aspx selida.&lt;BR&gt;&lt;BR&gt;To&amp;nbsp;xml file einai ths morfhs: &lt;/SPAN&gt;&lt;SPAN class=postbody&gt;&lt;BR&gt;&lt;BR&gt;&amp;lt;data&amp;gt; &lt;BR&gt;&amp;lt;item&amp;gt; &lt;BR&gt;&amp;lt;cell name="POINT" value="p1"/&amp;gt; &lt;BR&gt;&amp;lt;cell name="CATEGORY" value="C1"/&amp;gt; &lt;BR&gt;&amp;lt;/item&amp;gt; &lt;BR&gt;&amp;lt;item&amp;gt; &lt;BR&gt;&amp;lt;cell name="POINT" value="p2"/&amp;gt; &lt;BR&gt;&amp;lt;cell name="CATEGORY" value="C1"/&amp;gt; &lt;BR&gt;&amp;lt;/item&amp;gt; &lt;BR&gt;&amp;lt;item&amp;gt; &lt;BR&gt;&amp;lt;cell name="POINT" value="p3"/&amp;gt; &lt;BR&gt;&amp;lt;cell name="CATEGORY" value="C2"/&amp;gt; &lt;BR&gt;&amp;lt;/item&amp;gt; &lt;BR&gt;&amp;lt;/data&amp;gt; &lt;BR&gt;&lt;BR&gt;To arxeio afto swzetai ws (selection.xml) &amp;nbsp;sto Mappath mesw fso &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=postbody&gt;&amp;lt;%&lt;BR&gt;....&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=postbody&gt;....&lt;BR&gt;var rs = mapserver.ResultXml; //Na eksigisw. Edw dhmiourgeitai to recordset mou. To mapserver Object dhmiourgeitai &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=postbody&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //apo ena GIS engine sto server. ResultXml einai mia property tou mapserver pou epistrefei&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=postbody&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //apotelesmata apo ena spatial query se morfh xml.&lt;BR&gt;&lt;/P&gt;&lt;/SPAN&gt;
&lt;P&gt;&lt;SPAN class=postbody&gt;MyFile = Server.Mappath("selection.xml"); &lt;BR&gt;var fso = Server.CreateObject("Scripting.FileSystemObject"); &lt;BR&gt;var a = fso.CreateTextFile(MyFile,true); &lt;BR&gt;a.Write(rs); &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=postbody&gt;..%&amp;gt;&lt;BR&gt;&lt;BR&gt;Sth synexeia kai mesw mias aspx selidas prospathw na diavasw to selection.xml &lt;BR&gt;To provlima einai oti enw gia na to diavasw se ena xml tag prepei na xrhsimopoihsw ena xslt gia transformation kai ola einai ok, gia na to diavasw se ena datagrid den ginetai kateutheian giati den einai normalized xml arxeio. &lt;BR&gt;Dhladh to : &lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=postbody&gt;&lt;span style="color: Black;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: Maroon;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;SPAN&lt;/span&gt; &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;class&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;=postbody&lt;/span&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;DataSet ds = new DataSet() &lt;br /&gt;ds.ReadXml(MapPath("selection.xml"), XmlReadMode.Auto ) &lt;br /&gt;DataGrid1.DataSource = ds.Tables("cell") &lt;br /&gt;DataGrid1.DataBind() &lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN class=postbody&gt;
&lt;P&gt;&lt;BR&gt;den pezei dioti epistrefei ola ta periexomena se morfh :&lt;BR&gt;&lt;BR&gt;ItemID&amp;nbsp;&amp;nbsp;&amp;nbsp; name&amp;nbsp;&amp;nbsp; &amp;nbsp;value &lt;BR&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;POINT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; p1 &lt;BR&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CATEGORY &amp;nbsp;C1 &lt;BR&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;POINT&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;p2 &lt;BR&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CATEGORY&amp;nbsp; C1 &lt;BR&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; POINT&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;p3 &lt;BR&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CATEGORY &amp;nbsp;C2 &lt;BR&gt;&lt;BR&gt;Afto pou thelw omws einai :&lt;BR&gt;&lt;BR&gt;POINT CATEGORY &lt;BR&gt;&amp;nbsp;&amp;nbsp; P1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; C1 &lt;BR&gt;&amp;nbsp;&amp;nbsp; P2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; C2 &lt;BR&gt;&amp;nbsp;&amp;nbsp; P3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;C3&amp;nbsp;&lt;BR&gt;&lt;BR&gt;To provlima&amp;nbsp; yfistatai arxika giati to XmlDocument den ypostirizei IEnumerable. &lt;/P&gt;
&lt;P&gt;Mi lysh pou skeftomai einai&amp;nbsp;&amp;nbsp;kata kapoio tropo na exw 2 template columns sto datagrid (POINT kai CATEGORY) kai na pernei to kathena data (bind) isws kapws etsi: &lt;BR&gt;&amp;lt;%#(Ctype(Container.DataItem, System.Xml.XmlNode))("ElementName").InnerText %&amp;gt; &lt;BR&gt;&lt;/P&gt;
&lt;P&gt;na kanw dhladh bind sta nodes to xmldocument. Gia na ginei afto omws prepei na kanw select ta nodes. Apo oti exw katalavei h XmlNode class exei mia method SelectNodes kai epistrepfei ena object XmlNodeList to opoio einai mia syllogh pou yposthrizei IEnumerable! Profanws to parapanw tha ginei me xrhsh XPath. &lt;/P&gt;
&lt;P&gt;Ws edw exw ftasei kai ... to palevw&lt;/P&gt;
&lt;P&gt;Idees kalodexoumenes... &lt;/P&gt;
&lt;P&gt;&lt;IMG alt="Indifferent &lt;img src=" /&gt;" src="/cs/emoticons/emotion-8.gif"&gt;&lt;IMG alt="Indifferent &lt;img src=" /&gt;" src="/cs/emoticons/emotion-8.gif"&gt;&lt;IMG alt="Indifferent &lt;img src=" /&gt;" src="/cs/emoticons/emotion-8.gif"&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&lt;/P&gt;&lt;/SPAN&gt;</description></item></channel></rss>