Skip to content

Commit

Permalink
Updated documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianRappl committed Sep 6, 2019
1 parent cf94693 commit 1d0c5ea
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 0.13.0

Released on Monday, August 26 2019.
Released on Friday, September 6 2019.

- Added `ToXml` and `ToMarkup` extensions for the formatting

Expand Down
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,24 @@ var config = Configuration.Default

This will register a parser for XML related content.

## XML Parser

Alternatively, you can also the `XmlParser` directly:

```cs
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.
Expand Down

0 comments on commit 1d0c5ea

Please sign in to comment.