Skip to content

Commit 1d0c5ea

Browse files
committed
Updated documentation
1 parent cf94693 commit 1d0c5ea

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# 0.13.0
22

3-
Released on Monday, August 26 2019.
3+
Released on Friday, September 6 2019.
44

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

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,24 @@ var config = Configuration.Default
2323

2424
This will register a parser for XML related content.
2525

26+
## XML Parser
27+
28+
Alternatively, you can also the `XmlParser` directly:
29+
30+
```cs
31+
var parser = new XmlParser();
32+
parser.ParseDocument(@"<?xml version=""1.0"" encoding=""ISO-8859-1""?>
33+
<note>
34+
<to>Tove</to>
35+
<from>Jani</from>
36+
<heading>Reminder</heading>
37+
<body>Don't forget me this weekend!</body>
38+
</note>"
39+
);
40+
```
41+
42+
The `XmlParser` supports a variety of options, most notably it can suppress (i.e., not throw on) errors.
43+
2644
## Advantages of AngleSharp.Xml over System.Xml
2745

2846
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.

0 commit comments

Comments
 (0)