Support for prefixed names in writing xml nodes

Đang mở
#438 10 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
r, xml
Lĩnh vực
tooling

Hướng nghiên cứu

Start by reproducing the reported xml2::xml_set_namespace behavior and compare it with XML::xmlOutputDOM and its nameSpace argument. Trace the namespace handling used when writing XML nodes, then check existing namespace-related tests. Done means prefixed element names can be written for multiple namespaces without relying on repeated xmlns attributes, with coverage for the requested behavior.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Dear all, i'm in the process to migrate from XML to xml2 a series of packages i'm maintaining. Although for some dealing with single namespace, the task is relatively easy (i started with geosapi, i'm now looking at packages where XML schemas include various namespaces, such as atom4R (as starter) to then move towards more complex ones like geometa.

In this context, the practice is to use prefixed element names instead of element names made of local parts only coupled with repeating xmlns attributes.

I didn't find the way to do that in xml2, although it's possible with XML with xmlOutputDOM / nameSpace argument. I tried with xml2::xml_set_namespace but it doesn't have any effect.

Is it a missing feature? If not, could you give me an example.

Thanks a lot
Emmanuel

Ngôn ngữ chính
R
Star
227
Fork
86
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của r-lib/xml2

Tất cả issue của r-lib/xml2

Issue tương tự

Thêm issue về R

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.