[Webinar] Learn how to a build a cloud-first strategyRegister Now


XmlTextWriter add schema deff from string

Posted on 2006-05-01
Medium Priority
Last Modified: 2008-02-01
I have my schema deff in string:

string sch =  "ExpiredRecurringItemList xmlns \"https://secure.exectracash.net\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"https://secure.e.ectracash.net MyPath.xsd\"  ";

I have my XML output working fine in XmlTextWrite.

How do I add that sch above to the XmlTextWriter object?  

This is my code :
StringWriter stringWriter = new StringWriter();
        XmlTextWriter W = new XmlTextWriter(stringWriter);

        //Use indentation for readability.
        W.Formatting = Formatting.Indented;
        W.Indentation = 4;

        // now fill in the tables / rows / columns
        W.WriteName( "ExpiredRecurringItemList xmlns \"https://secure.exectracash.net\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"https://secure.e.ectracash.net MyPath.xsd\"  ");

I bomb on the WriteName.

any ideas?

Question by:srussell705
1 Comment
LVL 12

Accepted Solution

topdog770 earned 600 total points
ID: 16579810
Here's a pretty decent web page ( & site )


Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses

865 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question