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.
我有一个 XML 文件,我想根据 XSD 文件中定义的模式在其中插入新数据,有没有办法在 PHP 中做到这一点?
你能再解释一下吗。您是否尝试向 XML 添加新节点?如果是这样,您可以使用 SimpleXMLElement::addChild。如果这不是您的意思,请提供更多详细信息。