Skip to content

Commit f1cacb5

Browse files
committed
Update URLs
1 parent 94c44f0 commit f1cacb5

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<!-- badges: start -->
44
[![R-CMD-check](https://github.com/r-lib/xml2/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/r-lib/xml2/actions/workflows/R-CMD-check.yaml)
55
[![R build status](https://github.com/r-lib/xml2/workflows/R-CMD-check/badge.svg)](https://github.com/r-lib/xml2/actions)
6-
[![Coverage Status](https://img.shields.io/codecov/c/github/r-lib/xml2/master.svg)](https://codecov.io/github/r-lib/xml2?branch=master)
6+
[![Coverage Status](https://img.shields.io/codecov/c/github/r-lib/xml2/master.svg)](https://app.codecov.io/github/r-lib/xml2?branch=main)
77
<!-- badges: end -->
88

99
The xml2 package is a binding to [libxml2](http://xmlsoft.org), making it easy to work with HTML and XML from R. The API is somewhat inspired by [jQuery](https://jquery.com).

vignettes/modification.Rmd

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -171,12 +171,12 @@ gc()
171171
## Namespaces ##
172172

173173
We want to construct a document with the following namespace layout. (From
174-
https://stackoverflow.com/questions/32939229/creating-xml-in-r-with-namespaces/32941524#32941524).
174+
<https://stackoverflow.com/questions/32939229/creating-xml-in-r-with-namespaces/32941524#32941524>).
175175
```xml
176176
<?xml version = "1.0" encoding="UTF-8"?>
177-
<sld xmlns="http://www.o.net/sld"
178-
xmlns:ogc="http://www.o.net/ogc"
179-
xmlns:se="http://www.o.net/se"
177+
<sld xmlns="http://www.opengis.net/sld"
178+
xmlns:ogc="http://www.opengis.net/ogc"
179+
xmlns:se="http://www.opengis.net/se"
180180
version="1.1.0" >
181181
<layer>
182182
<se:Name>My Layer</se:Name>
@@ -186,10 +186,11 @@ https://stackoverflow.com/questions/32939229/creating-xml-in-r-with-namespaces/3
186186

187187
```{r}
188188
d <- xml_new_root("sld",
189-
xmlns = "http://www.o.net/sld",
190-
"xmlns:ogc" = "http://www.o.net/ogc",
191-
"xmlns:se" = "http://www.o.net/se",
192-
version = "1.1.0") %>%
189+
"xmlns" = "http://www.opengis.net/sld",
190+
"xmlns:ogc" = "http://www.opengis.net/ogc",
191+
"xmlns:se" = "http://www.opengis.net//se",
192+
version = "1.1.0"
193+
) %>%
193194
xml_add_child("layer") %>%
194195
xml_add_child("se:Name", "My Layer") %>%
195196
xml_root()

0 commit comments

Comments
 (0)