There are extension methods in System.Xml.Schemas that allow for XSD validation.


--- On Sun, 2/21/10, Matt Lynch <m...@bonafidesoftware.com> wrote:

> From: Matt Lynch <m...@bonafidesoftware.com>
> Subject: Re: [WiX-users] Programmatically edit .wxs files throughCodeDomReader
> To: chr...@deploymentengineering.com, "General discussion for Windows 
> Installer XML toolset." <wix-users@lists.sourceforge.net>
> Date: Sunday, February 21, 2010, 6:23 PM
> Hi Chris,
> 
> I looked at using Linq to XML, but you miss out on
> validation because L2XML doesn't check anything against the
> schema.  Have a look at my post about changing
> CodeDomReader to handle <? include ?>.  This
> method works *far* better than any L2XML solution.  You
> get to work with actual objects and properties, rather than
> using XElement and having to discover what the properties
> are.
> 
> Cheers,
> 
> Matt
> ----- Original Message ----- From: "Christopher Painter"
> <chr...@deploymentengineering.com>
> To: "General discussion for Windows Installer XML toolset."
> <wix-users@lists.sourceforge.net>
> Sent: Sunday, February 21, 2010 3:11 PM
> Subject: Re: [WiX-users] Programmatically edit .wxs files
> throughCodeDomReader
> 
> 
> I've been using Linq to XML for the last 9 months or so and
> find it to be heaven for doing this type of stuff. 
> Hopefully I'll be able to share something soon.
> 
> 
> --- On Thu, 2/11/10, Matt Lynch <m...@bonafidesoftware.com>
> wrote:
> 
> > From: Matt Lynch <m...@bonafidesoftware.com>
> > Subject: [WiX-users] Programmatically edit .wxs files
> through CodeDomReader
> > To: "Wix Users" <wix-users@lists.sourceforge.net>
> > Date: Thursday, February 11, 2010, 12:19 AM
> > Hi,
> > 
> > I'm writing a tool which makes some changes to a wix
> file
> > based on a set of rules. The basic process is:
> > 1.. Deserialize
> > 2.. Make changes
> > 3.. Serialize
> > I'm using the CodeDomReader class to read the xml into
> a
> > object model, but I am unable to keep any processing
> > instructions in tact, such as <? include ?>. It
> > seems that CodeDomReader doesn't interpret these
> guys.
> > I'm trying to avoid editing the files as plain xml.
> > 
> > Any hints, advice, comments are welcome.
> > 
> > Cheers,
> > 
> > 
> > Matt
> >
> ------------------------------------------------------------------------------
> > SOLARIS 10 is the OS for Data Centers - provides
> features
> > such as DTrace,
> > Predictive Self Healing and Award Winning ZFS. Get
> Solaris
> > 10 NOW
> > http://p.sf.net/sfu/solaris-dev2dev
> > _______________________________________________
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> > 
> 
> 
> 
> 
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling,
> find bugs
> proactively, and fine-tune applications for parallel
> performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
> 
> 
> 


      

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to