Bugs item #1656871, was opened at 2007-02-10 20:58
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1656871&group_id=105970

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: v3.0
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Serge Baltic (hypersw)
Assigned to: Nobody/Anonymous (nobody)
Summary: CodeDomReader: Class/@Context Attribute Won't Roundtrip

Initial Comment:
After reading a WXS source with CodeDomReader.Load and writing back with 
ISchemaElement.OutputXml, the Context attribute on the Class element is 
stripped off.

Minimal sample, before:

<Class Context="InprocServer32" />

After:

<Class Context="" xmlns="http://schemas.microsoft.com/wix/2006/wi"; />

Sample roundtripping code (C#):

public static void RoundtripWxs(string sIn, string sOut)
{
        CodeDomReader reader = new CodeDomReader();
        ISchemaElement element = reader.Load(sIn);
        using(XmlTextWriter xw = new XmlTextWriter(sOut, Encoding.UTF8))
        {
                xw.Formatting = Formatting.Indented;
                element.OutputXml(xw);
        }
}


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1656871&group_id=105970

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
WiX-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-devs

Reply via email to