GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - WikiTransformationProject/AngleSharp.Xml: :angel: Library to add XML and DTD parsing capabilities to AngleSharp.

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

111 Commits
111 Commits

Folders and files

NameName
Last commit message
Last commit date
.config
.config
 
 
.fallout
.fallout
 
 
.github
.github
 
 
build
build
 
 
docs
docs
 
 
src
src
 
 
.editorconfig
.editorconfig
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
AGENTS.md
AGENTS.md
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CLAUDE.md
CLAUDE.md
 
 
CONTRIBUTORS.md
CONTRIBUTORS.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
build.cmd
build.cmd
 
 
build.ps1
build.ps1
 
 
build.sh
build.sh
 
 
header.png
header.png
 
 
logo.png
logo.png
 
 

Repository files navigation

logo

AngleSharp.Xml

CI GitHub Tag NuGet Count Issues Open CLA Assistant

AngleSharp.Xml extends the core AngleSharp library with some XML capabilities. This repository is the home of the source for the AngleSharp.Xml NuGet package.

Basic Configuration

If you just want a configuration that works you should use the following code:

var config = Configuration.Default
    .WithXml(); // from AngleSharp.Xml

This will register a parser for XML related content.

XML Parser

Alternatively, you can also the XmlParser directly:

var parser = new XmlParser();
parser.ParseDocument(@"<?xml version=""1.0"" encoding=""ISO-8859-1""?>
    <note>
        <to>Tove</to>
        <from>Jani</from>
        <heading>Reminder</heading>
        <body>Don't forget me this weekend!</body>
    </note>"
);

The XmlParser supports a variety of options, most notably it can suppress (i.e., not throw on) errors.

Advantages of AngleSharp.Xml over System.Xml

The main advantage is that AngleSharp.Xml is part of the AngleSharp ecosystem and integrates well, e.g., by allowing remove XML files to be loaded, interpreting SVG documents or XHTML. A major point is AngleSharp.Xml also contains parts of a DTD parser, which could be used to validate XML documents.

Finally, the integration of AngleSharp.Xml in AngleSharp means that not only HTML documents may refer or use XML freely, but also the other way round. This is therefore as close to XML in a browser as you may get in .NET.

Features

  • Fully compliant XML parser
  • XML DOM similar to HTML(5)
  • DTD parser and validation check
  • XML serialization

Participating

Participation in the project is highly welcome. For this project the same rules as for the AngleSharp core project may be applied.

If you have any question, concern, or spot an issue then please report it before opening a pull request. An initial discussion is appreciated regardless of the nature of the problem.

Live discussions can take place in our Gitter chat, which supports using GitHub accounts.

This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behavior in our community.

For more information see the .NET Foundation Code of Conduct.

.NET Foundation

This project is supported by the .NET Foundation.

License

AngleSharp.Xml is released using the MIT license. For more information see the license file.

About

👼 Library to add XML and DTD parsing capabilities to AngleSharp.

anglesharp.github.io

Resources

Readme
MIT license

Code of conduct

Code of conduct

Contributing

Contributing
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.