Skip to content

Instantly share code, notes, and snippets.

@hugodahl
Created January 23, 2012 18:34
Show Gist options
  • Save hugodahl/30068c9d82259c3564d3 to your computer and use it in GitHub Desktop.
Save hugodahl/30068c9d82259c3564d3 to your computer and use it in GitHub Desktop.
Make ignorable elements & attributes in Markup (XML/XAML/XSL/etc)
<BaseElement xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:ignore="http://ignore.domain.com/ignore"
mc:Ignorable="ignore">
<Element attrib="value" ignore:attrib="ignored">Value</Element>
<ignore:Element attrib="value2" attrib2="fullyIgnored>Ignored Element</ignore:Element>
</BaseElement>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment