Skip to content

C# Objects translated from XSD schema published alongside ISO/IEC 19770-2:2015 Software identification tag. Includes SWID Tag Extensions from NISTIR 8060. Also some utility functions for extracting hash attributes.

License

andrewmedak/SWIDFromXSD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This library offers C# Objects that are generated from XSD schema published alongside ISO/IEC 19770-2:2015 Software identification tag. It includes SWID Tag Extensions from NISTIR 8060. Additionally, there are some utility functions for extracting hash attributes.

This project is intended to save others the step of converting the SWID XSDs. The library is available via Nuget https://www.nuget.org/packages/SWIDFromXSD.

The README.md on the project page outlines the steps taken to convert the XSD into C#.

Usage

Loading a SWID XML file is fairly simple

using org.iso.standards.swid;

namespace YourNamespace {
    public class YourClass {
	    public void YourMethod {
		    SoftwareIdentity swid = SoftwareIdentity.Load("/path/to/swidtag");
			...
		}
	}
}

From that point, you can drill down and access any elements defined in the ISO SWID schema.

Additional elements and attributes can also be accessed. The unit tests under SWIDFromXSDTests provide some example code for accessing Hash attributes.

About

C# Objects translated from XSD schema published alongside ISO/IEC 19770-2:2015 Software identification tag. Includes SWID Tag Extensions from NISTIR 8060. Also some utility functions for extracting hash attributes.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages