我需要创建一个XML模式来验证XML文档的树结构.我不确切知道树的出现或深度.
XML示例:
<?xml version="1.0" encoding="utf-8"?> <node> <attribute/> <node> <attribute/> <node/> </node> </node>
哪种验证方法最好?递归?
xsd
xsd ×1