Click here to Skip to main content
15,897,226 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: Max File Size in Isolated Storage? Pin
Steve Maier18-Feb-11 9:36
professionalSteve Maier18-Feb-11 9:36 
GeneralRe: Max File Size in Isolated Storage? Pin
dbrenth18-Feb-11 9:46
dbrenth18-Feb-11 9:46 
AnswerRe: Max File Size in Isolated Storage? Pin
dbrenth18-Feb-11 10:32
dbrenth18-Feb-11 10:32 
GeneralRe: Max File Size in Isolated Storage? Pin
Abhinav S20-Feb-11 17:53
Abhinav S20-Feb-11 17:53 
QuestionXmlDocument Pin
arkiboys18-Feb-11 5:26
arkiboys18-Feb-11 5:26 
AnswerRe: XmlDocument Pin
Abhinav S18-Feb-11 6:12
Abhinav S18-Feb-11 6:12 
GeneralRe: XmlDocument Pin
#realJSOP19-Feb-11 2:35
professional#realJSOP19-Feb-11 2:35 
AnswerRe: XmlDocument Pin
#realJSOP19-Feb-11 2:34
professional#realJSOP19-Feb-11 2:34 
Try this. It's an example I found - using google - on the MSDN web site :

C#
using System.IO;
using System.Xml;
using System.Xml.Schema;

private void LoadXmlData()
{
    XmlValidatingReader reader    = null;
    XmlTextReader       txtReader = null;
    string              filename  = "myfilename.xml";
    try 
    {
        // Create the validating reader and specify DTD validation.
        txtReader = new XmlTextReader(filename);
        reader = new XmlValidatingReader(txtReader);
        reader.ValidationType = ValidationType.DTD;

        // Set a handler to handle validation errors.
        reader.ValidationEventHandler += eventHandler;

        // Pass the validating reader to the XML document.
        // Validation fails due to an undefined attribute, but the 
        // data is still loaded into the document.
        XmlDocument doc = new XmlDocument();
        doc.Load(reader);

        // do something with doc.OuterXml
    }
    finally 
    {
        if (reader != null) 
        {
            reader.Close();
        }
    }
}

void ValidationCallback(object sender, ValidationEventArgs args ) 
{
    // report the validation error
}


EDIT ===

I missed the fact that you're using Silverlight. Loading a client-side file can be problematic if nigh impossible (unless you're running out of browser and the file is in a specific place).
".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997


GeneralRe: XmlDocument Pin
Abhinav S19-Feb-11 3:14
Abhinav S19-Feb-11 3:14 
QuestionAccess xml file from .xaml page Pin
arkiboys18-Feb-11 5:16
arkiboys18-Feb-11 5:16 
AnswerRe: Access xml file from .xaml page Pin
Abhinav S18-Feb-11 6:24
Abhinav S18-Feb-11 6:24 
QuestionMVVM: Best Practices and Design Patterns Pin
IngoVals18-Feb-11 4:54
IngoVals18-Feb-11 4:54 
AnswerRe: MVVM: Best Practices and Design Patterns Pin
Abhinav S18-Feb-11 6:20
Abhinav S18-Feb-11 6:20 
AnswerRe: MVVM: Best Practices and Design Patterns Pin
SledgeHammer0118-Feb-11 6:56
SledgeHammer0118-Feb-11 6:56 
AnswerRe: MVVM: Best Practices and Design Patterns Pin
BubingaMan22-Feb-11 4:35
BubingaMan22-Feb-11 4:35 
QuestionOpen WPF Application from within Excel Add-In Pin
muelito18-Feb-11 3:18
muelito18-Feb-11 3:18 
Question2 different styles - 2 different objects - both affected the same way??? Pin
bigwillyca17-Feb-11 6:35
bigwillyca17-Feb-11 6:35 
AnswerRe: 2 different styles - 2 different objects - both affected the same way??? Pin
dasblinkenlight18-Feb-11 3:06
dasblinkenlight18-Feb-11 3:06 
GeneralRe: 2 different styles - 2 different objects - both affected the same way??? Pin
bigwillyca18-Feb-11 5:02
bigwillyca18-Feb-11 5:02 
QuestionHow to sort the items under some node in Silverlight tree view? Pin
Tesic Goran17-Feb-11 3:20
professionalTesic Goran17-Feb-11 3:20 
AnswerRe: How to sort the items under some node in Silverlight tree view? Pin
SledgeHammer0117-Feb-11 7:14
SledgeHammer0117-Feb-11 7:14 
GeneralRe: How to sort the items under some node in Silverlight tree view? Pin
Tesic Goran17-Feb-11 19:35
professionalTesic Goran17-Feb-11 19:35 
Answersymbols not loaded Pin
cmichaelgraham17-Feb-11 3:04
cmichaelgraham17-Feb-11 3:04 
GeneralRe: symbols not loaded Pin
SledgeHammer0117-Feb-11 7:12
SledgeHammer0117-Feb-11 7:12 
GeneralRe: symbols not loaded Pin
Abhinav S17-Feb-11 17:49
Abhinav S17-Feb-11 17:49 

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.