I want to add an attribute to the tag, using xmllint. Can I do this is through xmllint?
相关问题
- Illegal to have multiple roots (start tag in epilo
- Newtonsoft DeserializeXNode expands internal array
- how to use special characters like '<'
- XML - XSLT - document() function inside count() fu
- convert logback.xml to log4j.properties
相关文章
- Creating XML Elements without namespace declaratio
- Get Attribute Value From Simple XML Using JQuery /
- Directly signing an Office Word document using XML
- When sending XML to JMS should I use TextMessage o
- Fragment Content Overlaps Toolbar and Bottom Navig
- Getting “Error: Missing Constraints in ConstraintL
- xslt localization
- Upgrading transaction.commit_manually() to Django
Xmllint in not made to edit XML, so I think the answer is “no, you can't”.
To edit XML, you can use XMLStarlet, the syntax to add an attribute into existing XML document is:
xmlstarlet ed -L -i xpath -t attr -n name -v value file