Skip to content

surgicalcoder/XCCDFParser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XCCDFParser

XCCDF is a specification language for writing security checklists, benchmarks, and related kinds of documents. An XCCDF document represents a structured collection of security configuration rules for some set of target systems.

Why this library?

The XCCDF is a bit of a rats nest of nested XML. The generated parsing code out of xsd2cs is less than optimal.

How to use?

var readAllText = File.ReadAllText(Path);

XmlDocument document = new XmlDocument();

document.LoadXml(readAllText);

var json = JsonConvert.SerializeXmlNode(document);

XCCDFParser.Container ee = JsonConvert.DeserializeObject<XCCDFParser.Container>(json);

How to install?

Nuget

Install-Package XCCDFParser

Or

dotnet add package XCCDFParser

Or build from source. Tested on Visual Studio 2017.

About

Parsing XCCDF files

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages