简体   繁体   English

在XML :: Simple中生成具有相同属性和元素名称的XML

[英]Generate XML with same attribute and element name in XML::Simple

Need to create a XML with the following format using perl XML::Simple module: 需要使用perl XML :: Simple模块以以下格式创建XML:

<module plugin="test"> 
 <plugin>production</plugin> 
</module>

That's one of the limitations of XML::Simple. 那是XML :: Simple的局限性之一。 It's not possible to have a child element with the same name as an attribute. 子元素不能与属性同名。 See https://stackoverflow.com/a/33273488/1030675 . 参见https://stackoverflow.com/a/33273488/1030675

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 通过xml-simple生成具有相同属性和元素名称的XML - Generate XML with same attribute and element name by xml-simple 具有相同元素和属性名称的RestKit XML映射 - RestKit XML Mapping with same element and attribute name 使用相同名称的XML元素和属性是否存在问题? - Are there problems with using the same name for an XML element and attribute? 如果xml元素名称相同,如何设置xml属性值更改 - how to set xml attribute value change if xml element name is same XML模式:父元素属性和子元素的名称相同 - XML schema: the same name of the parent element attribute and child element 简单XML反序列化具有相同名称的不同元素类型 - Simple XML deserializing different element types with the same name 使用属性和元素的相同名称在C#中反序列化XML-反射错误 - Deserialize XML in C# with the same name of attribute and element - reflection error 创建xml元素值以具有相同标签名称的属性 - creat xml element value to attribute with same tag name XML 文件 - 两个版本 - 相同数据 - 元素属性 + 名称更改 - XML File - Two versions - Same data - Attribute to Element + name change 如何使用 linq 查询具有相同元素和属性名称的 XML - How to query XML with the same element and attribute name using linq
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM