Click here to Skip to main content
15,894,297 members
Home / Discussions / XML / XSL
   

XML / XSL

 
QuestionCSS... Pin
Jamal Abdul Nasir8-Jun-09 3:11
Jamal Abdul Nasir8-Jun-09 3:11 
AnswerRe: CSS... Pin
Christian Graus8-Jun-09 18:08
protectorChristian Graus8-Jun-09 18:08 
GeneralRe: CSS... Pin
Stuart Dootson8-Jun-09 22:27
professionalStuart Dootson8-Jun-09 22:27 
GeneralRe: CSS... Pin
Christian Graus9-Jun-09 11:17
protectorChristian Graus9-Jun-09 11:17 
GeneralRe: CSS... Pin
Stuart Dootson9-Jun-09 13:02
professionalStuart Dootson9-Jun-09 13:02 
AnswerRe: CSS... Pin
Stuart Dootson8-Jun-09 22:25
professionalStuart Dootson8-Jun-09 22:25 
GeneralRe: CSS... Pin
Jamal Abdul Nasir2-Feb-10 7:58
Jamal Abdul Nasir2-Feb-10 7:58 
QuestionAnother boring XML question. URGENT Pin
Etienne_1237-Jun-09 6:15
Etienne_1237-Jun-09 6:15 
Hi
I have 2 XML files. The one looks like the following at the top:

  <?xml version="1.0" standalone="yes" ?> 
- <NewDataSet>


And the other one as follows:

  <?xml version="1.0" standalone="yes" ?> 
- <dsParrys_offoice_furniture xmlns="http://tempuri.org/dsParrys_offoice_furniture.xsd">


I use the following in my XAML to bind to them:

<!--XmlDataProvider used to populate treeview-->
        <XmlDataProvider x:Key="dpNewDS" XPath="*"/>

        <!--ProductRange template-->
        <HierarchicalDataTemplate DataType="ProductRange" ItemsSource="{Binding XPath=*}">
            <WrapPanel>
                <TextBlock Text="{Binding XPath=ProductRangeDesc}"/>
            </WrapPanel>
        </HierarchicalDataTemplate>

        <!--Products template-->
        <HierarchicalDataTemplate DataType="Products" ItemsSource ="{Binding XPath=Products}">
            <WrapPanel>
                <TextBlock Text="{Binding XPath=Product}"/>
            </WrapPanel>
        </HierarchicalDataTemplate>


As well as these lines in the code behind file:
NOTE: I specify the path to the XML files using an OpenFileDialog

System.Windows.Forms.OpenFileDialog ofd = new System.Windows.Forms.OpenFileDialog();
            if (ofd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                string fileName = ofd.FileName;
                XmlDataProvider dp = this.FindResource("dpNewDS") as XmlDataProvider;
                dp.Source = new Uri(fileName);
            }


Now when I select the FIRST XML file my treeview binds fine, but when I select to the 2nd one (the one with the XMLNS defined), it does not bind correctly.
Is there something I should change in my XAML when binding to the 2nd XML file?
AnswerRe: Another boring XML question. URGENT Pin
Christian Graus8-Jun-09 18:07
protectorChristian Graus8-Jun-09 18:07 
GeneralRe: Another boring XML question. URGENT Pin
Etienne_1238-Jun-09 23:00
Etienne_1238-Jun-09 23:00 
GeneralRe: Another boring XML question. URGENT Pin
Christian Graus9-Jun-09 14:54
protectorChristian Graus9-Jun-09 14:54 
AnswerRe: Another boring XML question. URGENT Pin
kamagra10-Jun-09 2:10
kamagra10-Jun-09 2:10 
QuestionHow do I specify a new Uri path? Pin
Etienne_1234-Jun-09 4:56
Etienne_1234-Jun-09 4:56 
QuestionBinding TreeView Header to XML Nodes Pin
Etienne_1234-Jun-09 0:49
Etienne_1234-Jun-09 0:49 
AnswerRe: Binding TreeView Header to XML Nodes Pin
Etienne_1234-Jun-09 2:06
Etienne_1234-Jun-09 2:06 
AnswerRe: Binding TreeView Header to XML Nodes Pin
Etienne_1234-Jun-09 2:10
Etienne_1234-Jun-09 2:10 
QuestionI want to create a Tree(root,left node,right node) Pin
Member 42602703-Jun-09 18:57
Member 42602703-Jun-09 18:57 
AnswerRe: I want to create a Tree(root,left node,right node) Pin
jacel0265-Aug-09 22:09
jacel0265-Aug-09 22:09 
Questionhow to encrypt element <wsu:expires xmlns:wsu="#unknown"> element</wsu:expires> Pin
manasha3-Jun-09 4:17
manasha3-Jun-09 4:17 
QuestionWhat's the solution of this error message: Unable to cast object of type 'System.Xml.XmlElement' to type 'System.Web.Services.Description.ServiceDescriptionFormatExtension'. Pin
ashish bhakhar3-Jun-09 1:25
ashish bhakhar3-Jun-09 1:25 
Answercross post Pin
J4amieC3-Jun-09 2:04
J4amieC3-Jun-09 2:04 
QuestionNeed help with XSLT Pin
Alsvha1-Jun-09 22:18
Alsvha1-Jun-09 22:18 
QuestionRe: Need help with XSLT Pin
led mike2-Jun-09 5:34
led mike2-Jun-09 5:34 
AnswerRe: Need help with XSLT Pin
Alsvha2-Jun-09 6:16
Alsvha2-Jun-09 6:16 
GeneralRe: Need help with XSLT [modified] Pin
led mike4-Jun-09 5:11
led mike4-Jun-09 5:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.