feat(working-with-solutionxml-elements): add 34 compiler-validated C# examples - Working With Solutionxml Elements [26.8.0/net8.0] - #100
Merged
amjad-sahi merged 41 commits intoAug 29, 2026
Conversation
…-a-specific-shape-within-the-solutionxml-and-update-the-file Task: Add a custom data row to a specific shape within the solutionxml and update the file - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…to-a-shape-in-the-solutionxml-and-define-its-target-url Task: Add a hyperlink element to a shape in the solutionxml and define its target url - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…atting-rule-in-the-solutionxml-that-highlights-shapes-based-on-data-values Task: Apply a conditional formatting rule in the solutionxml that highlights shapes based on data values - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…that-removes-all-external-references-from-the-solutionxml-before-distribution Task: Apply a security policy that removes all external references from the solutionxml before distribution - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…slt-to-the-solutionxml-to-generate-a-custom-shape-properties-report Task: Apply a transformation xslt to the solutionxml to generate a custom shape properties report - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…f-visio-files-updating-each-solutionxml-to-include-a-timestamp-attribute Task: Batch process a folder of visio files updating each solutionxml to include a timestamp attribute - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…node-in-the-solutionxml-and-reposition-the-duplicate-on-the-same-page Task: Clone an existing shape node in the solutionxml and reposition the duplicate on the same page - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…files-to-identify-added-removed-or-modified-shapes-between-versions Task: Compare two solutionxml files to identify added removed or modified shapes between versions - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…-content-using-gzip-before-embedding-it-into-a-vsdx-package Task: Compress the solutionxml content using gzip before embedding it into a vsdx package - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…space-mapping-for-solutionxml-to-avoid-naming-collisions-with-other-schemas Task: Create a custom xml namespace mapping for solutionxml to avoid naming collisions with other schemas - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…n-the-solutionxml-and-assign-a-background-style Task: Create a new page node in the solutionxml and assign a background style - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…on-that-injects-a-predefined-style-sheet-into-any-solutionxml-document Task: Create a reusable function that injects a predefined style sheet into any solutionxml document - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…utionxml-segment-with-a-provided-key-and-verify-its-integrity Task: Decrypt an encrypted solutionxml segment with a provided key and verify its integrity - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…o-a-formatted-json-file-for-easier-consumption-by-web-services Task: Export the solutionxml to a formatted json file for easier consumption by web services - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…sections-from-the-solutionxml-and-export-them-to-a-csv-file Task: Extract all custom data sections from the solutionxml and export them to a csv file - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…t-of-shape-counts-per-page-by-analyzing-the-solutionxml-hierarchy Task: Generate a summary report of shape counts per page by analyzing the solutionxml hierarchy - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…ge-from-the-solutionxml-by-rendering-the-first-page-at-low-resolution Task: Generate a thumbnail image from the solutionxml by rendering the first page at low resolution - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…rol-system-that-stores-incremental-solutionxml-changes-as-separate-diff-files Task: Implement a version control system that stores incremental solutionxml changes as separate diff files - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…-to-catch-malformed-solutionxml-nodes-and-log-detailed-diagnostics Task: Implement error handling to catch malformed solutionxml nodes and log detailed diagnostics - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…tion-of-diagram-elements-and-merge-it-into-the-existing-solutionxml Task: Import a json representation of diagram elements and merge it into the existing solutionxml - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…library-to-validate-xml-namespaces-within-the-solutionxml-before-saving Task: Integrate a third party library to validate xml namespaces within the solutionxml before saving - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…ectors-in-the-solutionxml-and-adjust-their-line-weight-uniformly Task: Iterate through all connectors in the solutionxml and adjust their line weight uniformly - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…tain-its-solutionxml-representation-for-analysis Task: Load a visio file and obtain its solutionxml representation for analysis - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…-size-by-removing-redundant-style-definitions-and-consolidating-identical-elements Task: Optimize the solutionxml size by removing redundant style definitions and consolidating identical elements - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…-extract-each-shape-s-id-and-corresponding-name Task: Parse the solutionxml to extract each shape s id and corresponding name - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…-the-solutionxml-document-to-clean-up-metadata-before-saving Task: Remove all comments from the solutionxml document to clean up metadata before saving - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…ferences-from-the-solutionxml-to-prevent-rendering-errors Task: Remove orphaned shape references from the solutionxml to prevent rendering errors - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…-a-specific-font-name-in-the-solutionxml-with-a-new-font Task: Replace all instances of a specific font name in the solutionxml with a new font - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…or-shapes-containing-a-specific-keyword-and-list-their-ids Task: Search the solutionxml for shapes containing a specific keyword and list their ids - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…olutionxml-back-into-the-original-vsdx-package-while-preserving-all-resources Task: Serialize the modified solutionxml back into the original vsdx package while preserving all resources - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…vel-property-in-the-solutionxml-for-version-tracking Task: Set a custom document level property in the solutionxml for version tracking - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…n-the-solutionxml-to-modify-the-diagram-canvas-size-programmatically Task: Update page dimensions in the solutionxml to modify the diagram canvas size programmatically - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…ciently-querying-shape-attributes-within-the-solutionxml Task: Use linq to xml for efficiently querying shape attributes within the solutionxml - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…-against-the-visio-schema-to-ensure-structural-integrity Task: Validate the solutionxml against the visio schema to ensure structural integrity - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…ifest with API index and example table
…dable example catalogue for Working With Solutionxml Elements category
amjad-sahi
deleted the
feat/examples-working-with-solutionxml-elements-20260829
branch
August 29, 2026 15:56
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Working With Solutionxml Elements — Compiler-Validated C# Examples
What this PR does
Adds 34 AI-generated, compiler-validated C# examples for the Working With Solutionxml Elements category of Aspose.Diagram for .NET.
All examples were generated by the Aspose.Diagram Examples Generator Agent and passed the full three-attempt validation pipeline before being included.
Validation Summary
dotnet builddotnet runPipeline
Each example was generated and validated through:
Only examples that passed both
dotnet buildanddotnet runare included in this PR.Examples Added
add-a-custom-data-row-to-a-specific-shape-within-the-solutionxml-and-update-the-file.csadd-a-hyperlink-element-to-a-shape-in-the-solutionxml-and-define-its-target-url.csapply-a-conditional-formatting-rule-in-the-solutionxml-that-highlights-shapes-based-on-data-values.csapply-a-security-policy-that-removes-all-external-references-from-the-solutionxml-before-distribution.csapply-a-transformation-xslt-to-the-solutionxml-to-generate-a-custom-shape-properties-report.csbatch-process-a-folder-of-visio-files-updating-each-solutionxml-to-include-a-timestamp-attribute.csclone-an-existing-shape-node-in-the-solutionxml-and-reposition-the-duplicate-on-the-same-page.cscompare-two-solutionxml-files-to-identify-added-removed-or-modified-shapes-between-versions.cscompress-the-solutionxml-content-using-gzip-before-embedding-it-into-a-vsdx-package.cscreate-a-custom-xml-namespace-mapping-for-solutionxml-to-avoid-naming-collisions-with-other-schemas.cscreate-a-new-page-node-in-the-solutionxml-and-assign-a-background-style.cscreate-a-reusable-function-that-injects-a-predefined-style-sheet-into-any-solutionxml-document.csdecrypt-an-encrypted-solutionxml-segment-with-a-provided-key-and-verify-its-integrity.csexport-the-solutionxml-to-a-formatted-json-file-for-easier-consumption-by-web-services.csextract-all-custom-data-sections-from-the-solutionxml-and-export-them-to-a-csv-file.csgenerate-a-summary-report-of-shape-counts-per-page-by-analyzing-the-solutionxml-hierarchy.csgenerate-a-thumbnail-image-from-the-solutionxml-by-rendering-the-first-page-at-low-resolution.csimplement-a-version-control-system-that-stores-incremental-solutionxml-changes-as-separate-diff-files.csimplement-error-handling-to-catch-malformed-solutionxml-nodes-and-log-detailed-diagnostics.csimport-a-json-representation-of-diagram-elements-and-merge-it-into-the-existing-solutionxml.csintegrate-a-third-party-library-to-validate-xml-namespaces-within-the-solutionxml-before-saving.csiterate-through-all-connectors-in-the-solutionxml-and-adjust-their-line-weight-uniformly.csload-a-visio-file-and-obtain-its-solutionxml-representation-for-analysis.csoptimize-the-solutionxml-size-by-removing-redundant-style-definitions-and-consolidating-identical-elements.csparse-the-solutionxml-to-extract-each-shape-s-id-and-corresponding-name.csremove-all-comments-from-the-solutionxml-document-to-clean-up-metadata-before-saving.csremove-orphaned-shape-references-from-the-solutionxml-to-prevent-rendering-errors.csreplace-all-instances-of-a-specific-font-name-in-the-solutionxml-with-a-new-font.cssearch-the-solutionxml-for-shapes-containing-a-specific-keyword-and-list-their-ids.csserialize-the-modified-solutionxml-back-into-the-original-vsdx-package-while-preserving-all-resources.csset-a-custom-document-level-property-in-the-solutionxml-for-version-tracking.csupdate-page-dimensions-in-the-solutionxml-to-modify-the-diagram-canvas-size-programmatically.csuse-linq-to-xml-for-efficiently-querying-shape-attributes-within-the-solutionxml.csvalidate-the-solutionxml-against-the-visio-schema-to-ensure-structural-integrity.csValidation Details
dotnet build— compiled without errors against Aspose.Diagram for .NET 26.8.0dotnet run— executed without unhandled exceptionsThis PR was created automatically by the Aspose.Diagram Examples Generator Agent. Merge after reviewing the examples above.