Skip to content

Java saxreader技术解析xml解析与反解析需求 #27

@Maple-mxf

Description

@Maple-mxf

术语:xml解析为一个带有path路径的平级数据称为projector
一个带有path的平级数据解析为xml称为deProjector

xml需求示例

<student>
	<name id="001">张三</name>
	<sex>男</sex>
	<age>20</age>
</student>

projector的输入为上述xml字符串,输出如下:

  • student.name=张三
  • student.sex=男
  • student.age=20

deProjector输入为

  • student.name=张三
  • student.sex=男
  • student.age=20

输出为下

<student>
	<name id="001">张三</name>
	<sex>男</sex>
	<age>20</age>
</student>

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions