Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Say i use DOM and i have an xml loaded into a Document object.
是否可以仅获取 xml 方案数据?
也许像xsd之类的东西?
可能重复: 从 xml 生成 xsd 从 xml 创建 xsd
可能重复:
从 xml 生成 xsd
从 xml 创建 xsd
通常,不可能从 XML 文件中获取 XSD 或就此而言的 DTD。您可以这样看:您的 XML 模式或 DTD 是一个通用定义或模板,如果您愿意,您的 XML 文件只是一个特殊实例,它符合该通用定义。通常,您无法从单个示例或实例中得出概括。但是,有一些工具可以发挥作用。