acl-org / acl-org/acl-anthology

load MarkupText from XML string

Open
#9,847 3 comments 0 reactions 1 assignee Claimed by @mbollmann View on GitHub
enhancement python-library
Dominant language
Python
Stars
796
Forks
408
Avg merge
3d 13h
Merged PRs (30d)
34

Description

If I want to correct a title using the library, is there a simpler way than:

```py
from lxml.etree import fromstring
vol.title = MarkupText.from_(fromstring('Proceedings of the ACL 2001 Workshop on Computational Natural Language Learning (CoNLL)'))
```

I.e., first creating an XML element? I had tried `from_xml()`, but that escapes all the XML metacharacters. If that's intentional, something like `from_xml_str()` would be nice to have.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.