Add the possibility of changing attributes #260
Replies: 2 comments 2 replies
-
Hi @Slavik36, thanks for dropping a note! I'm not totally opposed to making some of the objects public, but I'd want to think about what it might look like to expose the other "XML building" methods... for example, |
Beta Was this translation helpful? Give feedback.
-
@drmohundro, thanks for you quick response!
Thus, we can split mutating of the xml into the two parts (features): working with the attributes of the XMLElement and working with the whole XML document. |
Beta Was this translation helpful? Give feedback.
-
It will be greate to have the possibilty of changing/adding xml element attributes.
And if you'll declare init method of the
public struct XMLAttribute
as public - that's will be enough!Real example: in my case I have to edit html string and change some attributes of the specific xml elements in it:
Beta Was this translation helpful? Give feedback.
All reactions